Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 12 files:
- arch/arm64/kvm/pmu-emul.c, line 740
- arch/riscv/kvm/vcpu_pmu.c, line 355
- arch/x86/kernel/cpu/resctrl/pseudo_lock.c
- arch/x86/kvm/pmu.c, line 316
- arch/x86/kvm/vmx/pmu_intel.c, line 282
- kernel/events/core.c, line 14432
- kernel/events/hw_breakpoint.c
- kernel/events/hw_breakpoint_test.c, line 42
- kernel/watchdog_perf.c
- lib/tests/slub_kunit.c, line 392
- tools/testing/selftests/bpf/test_kmods/bpf_test_rqspinlock.c, line 267
- tools/testing/selftests/net/bench/page_pool/time_bench.c, line 90
Smatch caller information:
arch/x86/kernel/cpu/resctrl/pseudo_lock.c measure_residency_fn() -> perf_event_create_kernel_counter()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | attr | 6503081716684750848 |
| PARAM_VALUE | 2 | task | 0 |
| PARAM_VALUE | 3 | overflow_handler | 0 |
| PARAM_VALUE | 4 | context | 0 |
| DATA_SOURCE | 0 | attr | $0 |
arch/x86/kernel/cpu/resctrl/pseudo_lock.c measure_residency_fn() -> perf_event_create_kernel_counter()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | attr | 6522776622012465152 |
| PARAM_VALUE | 2 | task | 0 |
| PARAM_VALUE | 3 | overflow_handler | 0 |
| PARAM_VALUE | 4 | context | 0 |
| DATA_SOURCE | 0 | attr | $1 |
lib/tests/slub_kunit.c enable_perf_events() -> perf_event_create_kernel_counter()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | attr | 6748251498394275840 |
| PARAM_VALUE | 1 | cpu | (-1) |
| PARAM_VALUE | 4 | context | 274837912455303168 |
| DATA_SOURCE | 4 | context | $0 |
arch/x86/kvm/pmu.c pmc_reprogram_counter() -> perf_event_create_kernel_counter()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | attr | 4999110587532197888 |
| PARAM_VALUE | 0 | attr->aux_action | 0 |
| PARAM_VALUE | 0 | attr->aux_output | 0 |
| PARAM_VALUE | 0 | attr->bp_addr | 0 |
| PARAM_VALUE | 0 | attr->bp_len | 0 |
| PARAM_VALUE | 0 | attr->bp_type | 0 |
| PARAM_VALUE | 0 | attr->build_id | 0 |
| PARAM_VALUE | 0 | attr->cgroup | 0 |
| PARAM_VALUE | 0 | attr->clockid | 0 |
| PARAM_VALUE | 0 | attr->comm | 0 |
| PARAM_VALUE | 0 | attr->config1 | 0 |
| PARAM_VALUE | 0 | attr->config2 | 0 |
| PARAM_VALUE | 0 | attr->config3 | 0 |
| PARAM_VALUE | 0 | attr->config4 | 0 |
| PARAM_VALUE | 0 | attr->disabled | 0 |
| PARAM_VALUE | 0 | attr->exclude_host | 1 |
| PARAM_VALUE | 0 | attr->exclude_idle | 1 |
| PARAM_VALUE | 0 | attr->freq | 0 |
| PARAM_VALUE | 0 | attr->inherit | 0 |
| PARAM_VALUE | 0 | attr->ksymbol | 0 |
| PARAM_VALUE | 0 | attr->mmap | 0 |
| PARAM_VALUE | 0 | attr->mmap2 | 0 |
| PARAM_VALUE | 0 | attr->pinned | 1 |
| PARAM_VALUE | 0 | attr->precise_ip | 0-1,3 |
| PARAM_VALUE | 0 | attr->sample_type | 0 |
| PARAM_VALUE | 0 | attr->sig_data | 0 |
| PARAM_VALUE | 0 | attr->sigtrap | 0 |
| PARAM_VALUE | 0 | attr->size | 144 |
| PARAM_VALUE | 0 | attr->task | 0 |
| PARAM_VALUE | 0 | attr->type | 4 |
| PARAM_VALUE | 1 | cpu | (-1) |
| PARAM_VALUE | 4 | context | 4096-ptr_max |
| DATA_SOURCE | 4 | context | $0 |
| PREEMPT_ADD | |||
| HALF_LOCKED2 | &vcpu->kvm->srcu | ||
| HALF_LOCKED2 | &vcpu->mutex |
arch/x86/kvm/vmx/pmu_intel.c intel_pmu_create_guest_lbr_event() -> perf_event_create_kernel_counter()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | attr | 2067216537988788224 |
| PARAM_VALUE | 0 | attr->aux_action | 0 |
| PARAM_VALUE | 0 | attr->aux_output | 0 |
| PARAM_VALUE | 0 | attr->bp_addr | 0 |
| PARAM_VALUE | 0 | attr->bp_len | 0 |
| PARAM_VALUE | 0 | attr->bp_type | 0 |
| PARAM_VALUE | 0 | attr->branch_sample_type | 2049 |
| PARAM_VALUE | 0 | attr->build_id | 0 |
| PARAM_VALUE | 0 | attr->cgroup | 0 |
| PARAM_VALUE | 0 | attr->clockid | 0 |
| PARAM_VALUE | 0 | attr->comm | 0 |
| PARAM_VALUE | 0 | attr->config | 6912 |
| PARAM_VALUE | 0 | attr->config1 | 0 |
| PARAM_VALUE | 0 | attr->config2 | 0 |
| PARAM_VALUE | 0 | attr->config3 | 0 |
| PARAM_VALUE | 0 | attr->config4 | 0 |
| PARAM_VALUE | 0 | attr->disabled | 0 |
| PARAM_VALUE | 0 | attr->exclude_host | 1 |
| PARAM_VALUE | 0 | attr->freq | 0 |
| PARAM_VALUE | 0 | attr->inherit | 0 |
| PARAM_VALUE | 0 | attr->ksymbol | 0 |
| PARAM_VALUE | 0 | attr->mmap | 0 |
| PARAM_VALUE | 0 | attr->mmap2 | 0 |
| PARAM_VALUE | 0 | attr->pinned | 1 |
| PARAM_VALUE | 0 | attr->sample_freq | 0 |
| PARAM_VALUE | 0 | attr->sample_period | 0 |
| PARAM_VALUE | 0 | attr->sample_type | 2048 |
| PARAM_VALUE | 0 | attr->sig_data | 0 |
| PARAM_VALUE | 0 | attr->sigtrap | 0 |
| PARAM_VALUE | 0 | attr->size | 144 |
| PARAM_VALUE | 0 | attr->task | 0 |
| PARAM_VALUE | 0 | attr->type | 4 |
| PARAM_VALUE | 1 | cpu | (-1) |
| PARAM_VALUE | 3 | overflow_handler | 0 |
| PARAM_VALUE | 4 | context | 0 |
kernel/events/hw_breakpoint.c register_user_hw_breakpoint() -> perf_event_create_kernel_counter()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | attr | 6427138724964331520 |
| PARAM_VALUE | 0 | attr->aux_action | 0 |
| PARAM_VALUE | 0 | attr->aux_output | 0 |
| PARAM_VALUE | 0 | attr->bp_len | 1-2,4,8 |
| PARAM_VALUE | 0 | attr->bp_type | 2-4 |
| PARAM_VALUE | 0 | attr->build_id | 0 |
| PARAM_VALUE | 0 | attr->cgroup | 0 |
| PARAM_VALUE | 0 | attr->clockid | 0 |
| PARAM_VALUE | 0 | attr->comm | 0 |
| PARAM_VALUE | 0 | attr->config | 0 |
| PARAM_VALUE | 0 | attr->config2 | 1-2,4,8 |
| PARAM_VALUE | 0 | attr->config3 | 0 |
| PARAM_VALUE | 0 | attr->config4 | 0 |
| PARAM_VALUE | 0 | attr->exclude_kernel | 1 |
| PARAM_VALUE | 0 | attr->freq | 0 |
| PARAM_VALUE | 0 | attr->inherit | 0 |
| PARAM_VALUE | 0 | attr->kprobe_addr | 1-2,4,8 |
| PARAM_VALUE | 0 | attr->ksymbol | 0 |
| PARAM_VALUE | 0 | attr->mmap | 0 |
| PARAM_VALUE | 0 | attr->mmap2 | 0 |
| PARAM_VALUE | 0 | attr->pinned | 1 |
| PARAM_VALUE | 0 | attr->probe_offset | 1-2,4,8 |
| PARAM_VALUE | 0 | attr->sample_freq | 1 |
| PARAM_VALUE | 0 | attr->sample_period | 1 |
| PARAM_VALUE | 0 | attr->sample_type | 0 |
| PARAM_VALUE | 0 | attr->sig_data | 0 |
| PARAM_VALUE | 0 | attr->sigtrap | 0 |
| PARAM_VALUE | 0 | attr->size | 144 |
| PARAM_VALUE | 0 | attr->task | 0 |
| PARAM_VALUE | 0 | attr->type | 5 |
| PARAM_VALUE | 1 | cpu | (-1) |
| PARAM_VALUE | 2 | task | 4096-ptr_max |
| PARAM_VALUE | 2 | task->thread.ptrace_bps | 4096-ptr_max |
| PARAM_VALUE | 4 | context | 0 |
| CAPPED_DATA | 2 | task | 1 |
| DATA_SOURCE | 0 | attr | $0 |
| DATA_SOURCE | 2 | task | $3 |
| DATA_SOURCE | 3 | overflow_handler | $1 |
| DATA_SOURCE | 4 | context | $2 |
| MEM_ZERO | 0 | attr | |
| USER_DATA | 0 | attr->bp_addr | 0-u64max |
| USER_DATA | 0 | attr->disabled | 0[c] |
| NO_OVERFLOW_SIMPLE | 2 | task->dl.pi_se->dl_runtime |
kernel/events/hw_breakpoint.c register_wide_hw_breakpoint() -> perf_event_create_kernel_counter()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | attr | 325239112437112832,3322140560918040576 |
| PARAM_VALUE | 0 | attr->aux_action | 0 |
| PARAM_VALUE | 0 | attr->aux_output | 0 |
| PARAM_VALUE | 0 | attr->bp_addr | 1-u64max |
| PARAM_VALUE | 0 | attr->bp_len | 1,4 |
| PARAM_VALUE | 0 | attr->bp_type | 2 |
| PARAM_VALUE | 0 | attr->build_id | 0 |
| PARAM_VALUE | 0 | attr->cgroup | 0 |
| PARAM_VALUE | 0 | attr->clockid | 0 |
| PARAM_VALUE | 0 | attr->comm | 0 |
| PARAM_VALUE | 0 | attr->config | 0 |
| PARAM_VALUE | 0 | attr->config1 | 1-u64max |
| PARAM_VALUE | 0 | attr->config2 | 1,4 |
| PARAM_VALUE | 0 | attr->config3 | 0 |
| PARAM_VALUE | 0 | attr->config4 | 0 |
| PARAM_VALUE | 0 | attr->freq | 0 |
| PARAM_VALUE | 0 | attr->inherit | 0 |
| PARAM_VALUE | 0 | attr->kprobe_addr | 1,4 |
| PARAM_VALUE | 0 | attr->kprobe_func | 1-u64max |
| PARAM_VALUE | 0 | attr->ksymbol | 0 |
| PARAM_VALUE | 0 | attr->mmap | 0 |
| PARAM_VALUE | 0 | attr->mmap2 | 0 |
| PARAM_VALUE | 0 | attr->pinned | 1 |
| PARAM_VALUE | 0 | attr->probe_offset | 1,4 |
| PARAM_VALUE | 0 | attr->sample_freq | 1 |
| PARAM_VALUE | 0 | attr->sample_period | 1 |
| PARAM_VALUE | 0 | attr->sample_type | 0 |
| PARAM_VALUE | 0 | attr->sig_data | 0 |
| PARAM_VALUE | 0 | attr->sigtrap | 0 |
| PARAM_VALUE | 0 | attr->size | 144 |
| PARAM_VALUE | 0 | attr->task | 0 |
| PARAM_VALUE | 0 | attr->type | 5 |
| PARAM_VALUE | 0 | attr->uprobe_path | 1-u64max |
| PARAM_VALUE | 1 | cpu | 0-64 |
| PARAM_VALUE | 2 | task | 0 |
| PARAM_VALUE | 4 | context | 0 |
| CAPPED_DATA | 1 | cpu | 1 |
| DATA_SOURCE | 0 | attr | $0 |
| DATA_SOURCE | 1 | cpu | r find_next_bit |
| DATA_SOURCE | 3 | overflow_handler | $1 |
| DATA_SOURCE | 4 | context | $2 |
| CONSTRAINT | 1 | cpu | <3035 |
| HARD_MAX | 0 | attr->bp_len | 4 |
| HARD_MAX | 0 | attr->config2 | 4 |
| HARD_MAX | 0 | attr->kprobe_addr | 4 |
| HARD_MAX | 0 | attr->probe_offset | 4 |
| MEM_ZERO | 0 | attr | |
| RX_PATH | |||
| TASK_NOT_RUNNING |
kernel/events/hw_breakpoint_test.c register_test_bp() -> perf_event_create_kernel_counter()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | attr | 6356552826542858240 |
| PARAM_VALUE | 0 | attr->aux_action | 0 |
| PARAM_VALUE | 0 | attr->aux_output | 0 |
| PARAM_VALUE | 0 | attr->bp_addr | 4096-18446744073709547520 |
| PARAM_VALUE | 0 | attr->bp_len | 1 |
| PARAM_VALUE | 0 | attr->bp_type | 3 |
| PARAM_VALUE | 0 | attr->build_id | 0 |
| PARAM_VALUE | 0 | attr->cgroup | 0 |
| PARAM_VALUE | 0 | attr->clockid | 0 |
| PARAM_VALUE | 0 | attr->comm | 0 |
| PARAM_VALUE | 0 | attr->config | 0 |
| PARAM_VALUE | 0 | attr->config1 | 4096-18446744073709547520 |
| PARAM_VALUE | 0 | attr->config2 | 1 |
| PARAM_VALUE | 0 | attr->config3 | 0 |
| PARAM_VALUE | 0 | attr->config4 | 0 |
| PARAM_VALUE | 0 | attr->disabled | 0 |
| PARAM_VALUE | 0 | attr->freq | 0 |
| PARAM_VALUE | 0 | attr->inherit | 0 |
| PARAM_VALUE | 0 | attr->kprobe_addr | 1 |
| PARAM_VALUE | 0 | attr->kprobe_func | 4096-18446744073709547520 |
| PARAM_VALUE | 0 | attr->ksymbol | 0 |
| PARAM_VALUE | 0 | attr->mmap | 0 |
| PARAM_VALUE | 0 | attr->mmap2 | 0 |
| PARAM_VALUE | 0 | attr->pinned | 1 |
| PARAM_VALUE | 0 | attr->probe_offset | 1 |
| PARAM_VALUE | 0 | attr->sample_freq | 1 |
| PARAM_VALUE | 0 | attr->sample_period | 1 |
| PARAM_VALUE | 0 | attr->sample_type | 0 |
| PARAM_VALUE | 0 | attr->sig_data | 0 |
| PARAM_VALUE | 0 | attr->sigtrap | 0 |
| PARAM_VALUE | 0 | attr->size | 144 |
| PARAM_VALUE | 0 | attr->task | 0 |
| PARAM_VALUE | 0 | attr->type | 5 |
| PARAM_VALUE | 0 | attr->uprobe_path | 4096-18446744073709547520 |
| PARAM_VALUE | 1 | cpu | (-1)-64 |
| PARAM_VALUE | 3 | overflow_handler | 0 |
| PARAM_VALUE | 4 | context | 0 |
| CAPPED_DATA | 1 | cpu | 1 |
| DATA_SOURCE | 1 | cpu | $0 |
| DATA_SOURCE | 2 | task | $1 |
| MEM_ZERO | 0 | attr |