Defined in 1 files as a macro:
Defined in 5 files as a function:
- arch/alpha/include/asm/local.h, line 60 (as a function)
- arch/loongarch/include/asm/local.h, line 101 (as a function)
- arch/mips/include/asm/local.h, line 102 (as a function)
- arch/powerpc/include/asm/local.h, line 93 (as a function)
- arch/x86/include/asm/local.h, line 128 (as a function)
Referenced in 7 files:
- arch/alpha/include/asm/local.h, line 84
- arch/loongarch/include/asm/local.h, line 126
- arch/mips/include/asm/local.h, line 127
- arch/x86/include/asm/local.h
- include/asm-generic/local64.h, line 52
- kernel/events/ring_buffer.c, line 226
- kernel/trace/ring_buffer.c, line 4149
Smatch caller information:
drivers/perf/arm-cmn.c local_xchg() -> local_try_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 1 | old | 8497995418782306304 |
| DATA_SOURCE | 0 | l | $0 |
| DATA_SOURCE | 2 | new | $1 |
drivers/gpu/drm/amd/amdgpu/amdgpu_pmu.c local64_try_cmpxchg() -> local_try_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 1 | old | 3670860196433051648 |
| PARAM_VALUE | 2 | new | 0-281474976710654 |
| DATA_SOURCE | 1 | old | $1 |
| DATA_SOURCE | 2 | new | $2 |
arch/x86/events/intel/cstate.c local64_try_cmpxchg() -> local_try_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 1 | old | 5002837794596667392 |
| CAPPED_DATA | 2 | new | 1 |
| CAPPED_DATA | 2 | new | 1 |
| DATA_SOURCE | 1 | old | $1 |
| DATA_SOURCE | 2 | new | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | l->a.counter | s64min-s64max |
| HOST_DATA | 2 | new | s64min-s64max |
| HALF_LOCKED2 | flags |
drivers/gpu/drm/xe/xe_pmu.c local64_try_cmpxchg() -> local_try_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 1 | old | 7023808137655988224 |
| DATA_SOURCE | 1 | old | $1 |
| DATA_SOURCE | 2 | new | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | l->a.counter | s64min-s64max |
drivers/devfreq/event/rockchip-dfi.c local_xchg() -> local_try_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 1 | old | 8011606109201580032 |
| DATA_SOURCE | 0 | l | $0 |
| DATA_SOURCE | 2 | new | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | flags |
arch/x86/events/core.c local64_try_cmpxchg() -> local_try_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 1 | old | 8934590463348047872 |
| CAPPED_DATA | 2 | new | 1 |
| CAPPED_DATA | 2 | new | 1 |
| DATA_SOURCE | 1 | old | $1 |
| DATA_SOURCE | 2 | new | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/perf/arm-ccn.c local_xchg() -> local_try_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 1 | old | 6470766471354372096 |
| DATA_SOURCE | 0 | l | $0 |
| DATA_SOURCE | 2 | new | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 2 | new | s64min-s64max |
drivers/perf/thunderx2_pmu.c local_xchg() -> local_try_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 1 | old | 7577929986712039424 |
| DATA_SOURCE | 0 | l | $0 |
| DATA_SOURCE | 2 | new | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 2 | new | s64min-s64max |
arch/x86/events/intel/bts.c local_xchg() -> local_try_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 1 | old | 2979388647077285888 |
| DATA_SOURCE | 0 | l | $0 |
| DATA_SOURCE | 2 | new | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | new | unit_byte |
arch/x86/events/intel/pt.c local_xchg() -> local_try_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 1 | old | 7828768140727648256 |
| DATA_SOURCE | 0 | l | $0 |
| DATA_SOURCE | 2 | new | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | new | unit_byte |
drivers/dma/idxd/perfmon.c local64_try_cmpxchg() -> local_try_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 1 | old | 419396552561602560 |
| DATA_SOURCE | 1 | old | $1 |
| DATA_SOURCE | 2 | new | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | l->a.counter | s64min-s64max |
| HOST_DATA | 2 | new | s64min-s64max |
| HALF_LOCKED2 | flags |
arch/x86/events/amd/ibs.c local64_try_cmpxchg() -> local_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 | 1 | old | $1 |
| DATA_SOURCE | 2 | new | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | l->a.counter | s64min-s64max |
| HALF_LOCKED2 | &event->child_mutex | ||
| HALF_LOCKED2 | rcu_read |
arch/x86/events/rapl.c local64_try_cmpxchg() -> local_try_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 1 | old | 7456721443581812736 |
| CAPPED_DATA | 2 | new | 1 |
| CAPPED_DATA | 2 | new | 1 |
| DATA_SOURCE | 1 | old | $1 |
| DATA_SOURCE | 2 | new | $2 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | l->a.counter | s64min-s64max |
| HOST_DATA | 2 | new | s64min-s64max |
| HALF_LOCKED2 | &rapl_pmu->lock | ||
| HALF_LOCKED2 | flags |
kernel/events/core.c local64_try_cmpxchg() -> local_try_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | old | 5131117933393649664 |
| PARAM_VALUE | 1 | *old | 0-s64max |
| DATA_SOURCE | 1 | old | $1 |
| DATA_SOURCE | 2 | new | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | _T->flags |
kernel/events/core.c local_xchg() -> local_try_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 1 | old | 5069902069154881536 |
| DATA_SOURCE | 0 | l | $0 |
| DATA_SOURCE | 2 | new | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &ctx->lock | ||
| HALF_LOCKED2 | &next_ctx->lock | ||
| HALF_LOCKED2 | irq | ||
| HALF_LOCKED2 | rcu_read |
drivers/powercap/intel_rapl_common.c local64_try_cmpxchg() -> local_try_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 1 | old | 1995881958406692864 |
| PARAM_VALUE | 2 | new | 0 |
| DATA_SOURCE | 1 | old | $1 |
| DATA_SOURCE | 2 | new | $2 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | l->a.counter | s64min-s64max |
| HALF_LOCKED2 | &data->lock | ||
| HALF_LOCKED2 | flags |
arch/x86/events/msr.c local64_try_cmpxchg() -> local_try_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 1 | old | 3935173910008541184 |
| DATA_SOURCE | 1 | old | $1 |
| DATA_SOURCE | 2 | new | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | l->a.counter | s64min-s64max |
| HOST_DATA | 2 | new | 0-s64max[c] |
| HALF_LOCKED2 | flags |
drivers/perf/marvell_cn10k_ddr_pmu.c local_xchg() -> local_try_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 1 | old | 1642751875258261504 |
| DATA_SOURCE | 0 | l | $0 |
| DATA_SOURCE | 2 | new | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 2 | new | s64min-s64max |
| HALF_LOCKED2 | flags |
drivers/perf/marvell_pem_pmu.c local_xchg() -> local_try_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 1 | old | 4923325410809425920 |
| DATA_SOURCE | 0 | l | $0 |
| DATA_SOURCE | 2 | new | $1 |
| HOST_DATA | 2 | new | s64min-s64max |
kernel/events/ring_buffer.c __perf_output_begin() -> local_try_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 1 | old | 2963253990062497792 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | rcu_read |
kernel/events/ring_buffer.c local_xchg() -> local_try_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 1 | old | 1115364984578600960 |
| PARAM_VALUE | 2 | new | 0 |
| DATA_SOURCE | 0 | l | $0 |
| DATA_SOURCE | 2 | new | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | rcu_read |
drivers/iommu/intel/perfmon.c local_xchg() -> local_try_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 1 | old | 8511821311660838912 |
| DATA_SOURCE | 0 | l | $0 |
| DATA_SOURCE | 2 | new | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 2 | new | s64min-s64max |
| HALF_LOCKED2 | flags |
drivers/gpu/drm/i915/i915_pmu.c local64_try_cmpxchg() -> local_try_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 1 | old | 8996040743096504320 |
| DATA_SOURCE | 1 | old | $1 |
| DATA_SOURCE | 2 | new | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | l->a.counter | s64min-s64max |
| HALF_LOCKED2 | flags |
kernel/trace/ring_buffer.c rb_try_to_discard() -> local_try_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 1 | old | 6866452697053392896 |
| PARAM_VALUE | 1 | *old | 0-s64max |
| PARAM_VALUE | 2 | new | s64min-(-9223372032560857089),0-s64max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING |
arch/x86/events/intel/uncore.c local_xchg() -> local_try_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 1 | old | 5773742230438379520 |
| DATA_SOURCE | 0 | l | $0 |
| DATA_SOURCE | 2 | new | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 2 | new | s64min-s64max |