函数逻辑报告 |
Source Code:arch\x86\kernel\hw_breakpoint.c |
Create Date:2022-07-27 08:45:30 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Install a perf counter breakpoint.* We seek a free debug address register and use it for this* breakpoint. Eventually we enable it in the debug control register.* Atomic: we hold the counter->ctx->lock and we only handle variables
函数原型:int arch_install_hw_breakpoint(struct perf_event *bp)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct perf_event * | bp |
96 | info等于counter_arch_bp(bp) |
101 | slot等于this_cpu_ptr( & Stores the breakpoints currently in use on each breakpoint address* register for each cpus[i]) |
103 | 如果非slot则 |
109 | 如果WARN_ONCE(i == Total number of available HW breakpoint registers , "Can't find any breakpoint slot")则返回:负EBUSY |
112 | set_debugreg(address, i) |
116 | dr7或等于Encode the length, type, Exact, and Enable bits for a particular breakpoint* as stored in debug register 7. |
118 | set_debugreg( * dr7, 7) |
119 | 如果mask则set_dr_addr_mask(mask, i) |
122 | 返回:0 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |