Defined in 1 files as a prototype:
Defined in 2 files as a function:
- include/linux/perf_event.h, line 1961 (as a function)
- kernel/events/core.c, line 4890 (as a function)
Referenced in 3 files:
Smatch caller information:
arch/x86/kernel/cpu/resctrl/pseudo_lock.c measure_residency_fn() -> perf_event_read_local()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | event | 4096-ptr_max |
| PARAM_VALUE | 0 | event->ctx | 4096-ptr_max |
| PARAM_VALUE | 0 | event->group_leader | 4096-ptr_max |
| PARAM_VALUE | 0 | event->owner | (-1) |
| PARAM_VALUE | 0 | event->pmu | 4096-ptr_max |
| PARAM_VALUE | 0 | event->pmu_ctx | 4096-ptr_max |
| PARAM_VALUE | 1 | value | 6152904606761603072 |
| PARAM_VALUE | 2 | enabled | 0 |
| PARAM_VALUE | 3 | running | 0 |
| CAPPED_DATA | 0 | event | 1 |
| CAPPED_DATA | 0 | event->cpu | 1 |
| CAPPED_DATA | 0 | event->group_leader | 1 |
| CAPPED_DATA | 0 | event->pmu | 1 |
| DATA_SOURCE | 0 | event | r perf_event_create_kernel_counter |
| LOCK2 | irq |
arch/x86/kernel/cpu/resctrl/pseudo_lock.c measure_residency_fn() -> perf_event_read_local()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | event | 4096-ptr_max |
| PARAM_VALUE | 0 | event->ctx | 4096-ptr_max |
| PARAM_VALUE | 0 | event->group_leader | 4096-ptr_max |
| PARAM_VALUE | 0 | event->owner | (-1) |
| PARAM_VALUE | 0 | event->pmu | 4096-ptr_max |
| PARAM_VALUE | 0 | event->pmu_ctx | 4096-ptr_max |
| PARAM_VALUE | 1 | value | 6152904606761603072 |
| PARAM_VALUE | 2 | enabled | 0 |
| PARAM_VALUE | 3 | running | 0 |
| CAPPED_DATA | 0 | event | 1 |
| CAPPED_DATA | 0 | event->cpu | 1 |
| CAPPED_DATA | 0 | event->group_leader | 1 |
| CAPPED_DATA | 0 | event->pmu | 1 |
| DATA_SOURCE | 0 | event | r perf_event_create_kernel_counter |
| LOCK2 | irq |
kernel/bpf/arraymap.c perf_event_fd_array_get_ptr() -> perf_event_read_local()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | value | 8838730730108182528 |
| PARAM_VALUE | 2 | enabled | 0 |
| PARAM_VALUE | 3 | running | 0 |
| BUF_SIZE | 0 | event | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | event | s32min-(-2),1-s32max |
kernel/trace/bpf_trace.c ____bpf_perf_prog_read_value() -> perf_event_read_local()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | enabled | 4096-ptr_max |
| PARAM_VALUE | 3 | running | 4096-ptr_max |
| UNITS | 0 | event | unit_byte |
kernel/trace/bpf_trace.c get_map_perf_counter() -> perf_event_read_local()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | enabled | 0,4096-ptr_max |
| PARAM_VALUE | 3 | running | 0,4096-ptr_max |
| DATA_SOURCE | 1 | value | $2 |
| DATA_SOURCE | 2 | enabled | $3 |
| DATA_SOURCE | 3 | running | $4 |