Defined in 7 files as a prototype:
- arch/arm/include/asm/hw_breakpoint.h, line 136 (as a prototype)
- arch/arm64/include/asm/hw_breakpoint.h, line 121 (as a prototype)
- arch/loongarch/include/asm/hw_breakpoint.h, line 114 (as a prototype)
- arch/powerpc/include/asm/hw_breakpoint.h, line 85 (as a prototype)
- arch/sh/include/asm/hw_breakpoint.h, line 63 (as a prototype)
- arch/x86/include/asm/hw_breakpoint.h, line 61 (as a prototype)
- arch/xtensa/include/asm/hw_breakpoint.h, line 46 (as a prototype)
Defined in 7 files as a function:
- arch/arm/kernel/hw_breakpoint.c, line 326 (as a function)
- arch/arm64/kernel/hw_breakpoint.c, line 290 (as a function)
- arch/loongarch/kernel/hw_breakpoint.c, line 263 (as a function)
- arch/powerpc/kernel/hw_breakpoint.c, line 56 (as a function)
- arch/sh/kernel/hw_breakpoint.c, line 47 (as a function)
- arch/x86/kernel/hw_breakpoint.c, line 97 (as a function)
- arch/xtensa/kernel/hw_breakpoint.c, line 172 (as a function)
Referenced in 4 files:
- arch/arm/kernel/hw_breakpoint.c
- arch/loongarch/kernel/kgdb.c, line 658
- arch/x86/kernel/kgdb.c, line 218
- kernel/events/hw_breakpoint.c, line 979
Smatch caller information:
arch/x86/kernel/kgdb.c kgdb_correct_hw_break() -> arch_install_hw_breakpoint()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bp | 4096-ptr_max |
| PARAM_VALUE | 0 | bp->attr.bp_len | 64,68,72,76 |
| PARAM_VALUE | 0 | bp->attr.config2 | 0-s32max,18446744071562067968-u64max |
| PARAM_VALUE | 0 | bp->attr.disabled | 1 |
| PARAM_VALUE | 0 | bp->attr.kprobe_addr | 0-s32max,18446744071562067968-u64max |
| PARAM_VALUE | 0 | bp->attr.probe_offset | 0-s32max,18446744071562067968-u64max |
| BIT_INFO | 0 | bp->attr.bp_len | 0x0,0xffffffff |
| HALF_LOCKED2 | rcu_read |
kernel/events/hw_breakpoint.c hw_breakpoint_add() -> arch_install_hw_breakpoint()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bp | 4096-ptr_max |
| PARAM_VALUE | 0 | bp->pmu | 4096-ptr_max |
| PARAM_VALUE | 0 | bp->pmu_ctx->pmu | 4096-ptr_max |
| CAPPED_DATA | 0 | bp | 1 |
| DATA_SOURCE | 0 | bp | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &cpuctx->ctx.lock |