Defined in 1 files as a macro:
Defined in 1 files as a function:
Referenced in 12 files:
- arch/s390/kernel/perf_cpum_cf.c
- arch/x86/events/amd/ibs.c, line 170
- arch/x86/events/core.c, line 148
- arch/x86/events/intel/cstate.c, line 339
- arch/x86/events/msr.c, line 177
- arch/x86/events/rapl.c, line 226
- drivers/dma/idxd/perfmon.c, line 220
- drivers/gpu/drm/amd/amdgpu/amdgpu_pmu.c, line 291
- drivers/gpu/drm/i915/i915_pmu.c, line 730
- drivers/gpu/drm/xe/xe_pmu.c, line 324
- drivers/powercap/intel_rapl_common.c, line 1238
- kernel/events/core.c, line 10924
Smatch caller information:
drivers/gpu/drm/amd/amdgpu/amdgpu_pmu.c amdgpu_perf_read() -> local64_try_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 1 | old | 3670860196433051648 |
| PARAM_VALUE | 2 | new | 0-281474976710654 |
arch/x86/events/intel/cstate.c cstate_pmu_event_update() -> local64_try_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 1 | old | 5002837794596667392 |
| CAPPED_DATA | 2 | new | 1 |
| DATA_SOURCE | 2 | new | r cstate_pmu_read_counter |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | l->a.a.counter | s64min-s64max |
| HOST_DATA | 2 | new | s64min-s64max |
| HALF_LOCKED2 | flags |
drivers/gpu/drm/xe/xe_pmu.c xe_pmu_event_update() -> local64_try_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 1 | old | 7023808137655988224 |
| DATA_SOURCE | 2 | new | r __xe_pmu_event_read |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | l->a.a.counter | s64min-s64max |
arch/x86/events/core.c x86_perf_event_update() -> local64_try_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 1 | old | 8934590463348047872 |
| CAPPED_DATA | 2 | new | 1 |
| DATA_SOURCE | 2 | new | r rdpmc |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/dma/idxd/perfmon.c perfmon_pmu_event_update() -> local64_try_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 1 | old | 419396552561602560 |
| DATA_SOURCE | 2 | new | r perfmon_pmu_read_counter |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | l->a.a.counter | s64min-s64max |
| HOST_DATA | 2 | new | s64min-s64max |
| HALF_LOCKED2 | flags |
arch/x86/events/amd/ibs.c perf_event_try_update() -> local64_try_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 1 | old | 146410432199254016 |
| PARAM_VALUE | 2 | new | 0-134217727 |
| DATA_SOURCE | 2 | new | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | l->a.a.counter | s64min-s64max |
| HALF_LOCKED2 | &event->child_mutex | ||
| HALF_LOCKED2 | rcu_read |
arch/x86/events/rapl.c rapl_event_update() -> local64_try_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 1 | old | 7456721443581812736 |
| CAPPED_DATA | 2 | new | 1 |
| DATA_SOURCE | 2 | new | r paravirt_read_msr |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | l->a.a.counter | s64min-s64max |
| HOST_DATA | 2 | new | s64min-s64max |
| HALF_LOCKED2 | &rapl_pmu->lock | ||
| HALF_LOCKED2 | flags |
kernel/events/core.c perf_swevent_set_period() -> local64_try_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | old | 5131117933393649664 |
| PARAM_VALUE | 1 | *old | 0-s64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | _T->flags |
drivers/powercap/intel_rapl_common.c rapl_event_update() -> local64_try_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 1 | old | 1995881958406692864 |
| DATA_SOURCE | 2 | new | r event_read_counter |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | l->a.a.counter | s64min-s64max |
| HOST_DATA | 2 | new | 0-s64max[c] |
| HALF_LOCKED2 | &data->lock | ||
| HALF_LOCKED2 | flags |
arch/x86/events/msr.c msr_event_update() -> local64_try_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 1 | old | 3935173910008541184 |
| DATA_SOURCE | 2 | new | r msr_read_counter |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | l->a.a.counter | s64min-s64max |
| HOST_DATA | 2 | new | 0-s64max[c] |
| HALF_LOCKED2 | flags |
drivers/gpu/drm/i915/i915_pmu.c i915_pmu_event_read() -> local64_try_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 1 | old | 8996040743096504320 |
| DATA_SOURCE | 2 | new | r __i915_pmu_event_read |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | l->a.a.counter | s64min-s64max |
| HALF_LOCKED2 | flags |