Function report | 
Source Code:arch\x86\kernel\hw_breakpoint.c | 
Create Date:2022-07-28 07:45:41 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:arch_build_bp_info
Proto:static int arch_build_bp_info(struct perf_event *bp, const struct perf_event_attr *attr, struct arch_hw_breakpoint *hw)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct perf_event * | bp | |
| const struct perf_event_attr * | attr | |
| struct arch_hw_breakpoint * | hw | 
| 235 | mask = 0 | 
| 239 | Case bp_type == HW_BREAKPOINT_W | 
| 240 | type = rigger on memory write | 
| 241 | Break | 
| 242 | Case bp_type == HW_BREAKPOINT_W | HW_BREAKPOINT_R | 
| 244 | Break | 
| 245 | Case bp_type == HW_BREAKPOINT_X | 
| 251 | If bp_addr >= TASK_SIZE_MAX Then | 
| 252 | If within_kprobe_blacklist(bp_addr) Then Return -EINVAL | 
| 264 | Return 0 | 
| 267 | Default | 
| 268 | Return -EINVAL | 
| 273 | Case bp_len == HW_BREAKPOINT_LEN_1 | 
| 274 | len = X86_BREAKPOINT_LEN_1 | 
| 275 | Break | 
| 276 | Case bp_len == HW_BREAKPOINT_LEN_2 | 
| 277 | len = X86_BREAKPOINT_LEN_2 | 
| 278 | Break | 
| 279 | Case bp_len == HW_BREAKPOINT_LEN_4 | 
| 280 | len = X86_BREAKPOINT_LEN_4 | 
| 281 | Break | 
| 283 | Case bp_len == HW_BREAKPOINT_LEN_8 | 
| 284 | len = X86_BREAKPOINT_LEN_8 | 
| 285 | Break | 
| 287 | Default | 
| 294 | If Not boot_cpu_has(Data breakpoint extension ) Then Return -EOPNOTSUPP | 
| 305 | len = X86_BREAKPOINT_LEN_1 | 
| 308 | Return 0 | 
| Name | Describe | 
|---|---|
| hw_breakpoint_arch_parse | Validate the arch-specific HW Breakpoint register settings | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |