Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
kernel/events/core.c __perf_pmu_sched_task() -> perf_ctx_lock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cpuctx | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | ctx | unit_byte |
| HALF_LOCKED2 | irq |
kernel/events/core.c class_perf_ctx_lock_constructor() -> perf_ctx_lock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cpuctx | 4096-ptr_max |
| DATA_SOURCE | 0 | cpuctx | $0 |
| DATA_SOURCE | 1 | ctx | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | ctx | unit_byte |
| HALF_LOCKED2 | &vcpu->mutex | ||
| HALF_LOCKED2 | irq |
kernel/events/core.c event_function() -> perf_ctx_lock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cpuctx | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | ctx | unit_byte |
| HALF_LOCKED2 | flags |
kernel/events/core.c event_function_call() -> perf_ctx_lock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | ctx | 4096-ptr_max |
| PARAM_VALUE | 1 | ctx->task | 1-18446744073709551614 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | ctx | unit_byte |
| LOCK2 | irq |
kernel/events/core.c event_function_local() -> perf_ctx_lock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | ctx->task | 1-18446744073709551614 |
| NOCHECK_CALL | |||
| UNITS | 1 | ctx | unit_byte |
kernel/events/core.c perf_event_context_sched_in() -> perf_ctx_lock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cpuctx | 4096-ptr_max |
| PARAM_VALUE | 0 | cpuctx->task_ctx | 1-u64max |
| PARAM_VALUE | 1 | ctx | 1-u64max |
| CAPPED_DATA | 0 | cpuctx->task_ctx | 1 |
| CAPPED_DATA | 1 | ctx | 1 |
| PARAM_COMPARE | 0 | cpuctx->task_ctx | == $1 |
| PARAM_COMPARE | 1 | ctx | == $0->task_ctx |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | ctx | unit_byte |
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | irq |
kernel/events/core.c perf_event_context_sched_in() -> perf_ctx_lock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cpuctx | 4096-ptr_max |
| PARAM_VALUE | 1 | ctx | 1-u64max |
| PARAM_COMPARE | 0 | cpuctx->task_ctx | != $1 |
| PARAM_COMPARE | 1 | ctx | != $0->task_ctx |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | ctx | unit_byte |
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | irq |
kernel/events/core.c perf_event_enable_on_exec() -> perf_ctx_lock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | ctx | 4096-ptr_max |
| PARAM_VALUE | 1 | ctx->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | ctx->lock.owner | (-1) |
| PARAM_VALUE | 1 | ctx->lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | ctx->nr_events | s32min-(-1),1-s32max |
| CAPPED_DATA | 1 | ctx | 1 |
| DATA_SOURCE | 1 | ctx | $0 |
| BIT_INFO | 1 | ctx | 0x0,0x0 |
| NOCHECK_CALL | |||
| LOCK2 | &tsk->signal->exec_update_lock | ||
| LOCK2 | flags |
kernel/events/core.c perf_pmu_resched() -> perf_ctx_lock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cpuctx | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | ctx | unit_byte |
| HALF_LOCKED2 | flags |
kernel/events/core.c perf_rotate_context() -> perf_ctx_lock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cpuctx | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | ctx | unit_byte |
| HALF_LOCKED2 | irq |