Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
kernel/events/core.c perf_cgroup_switch() -> perf_ctx_enable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 4096-ptr_max |
| PARAM_VALUE | 1 | event_type | 32 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | irq |
kernel/events/core.c perf_event_context_sched_in() -> perf_ctx_enable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 4096-ptr_max |
| PARAM_VALUE | 0 | ctx->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ctx->lock.owner_cpu | 0 |
| PARAM_VALUE | 0 | ctx->lock.raw_lock.val.counter | 0-s32max |
| PARAM_VALUE | 1 | event_type | 0 |
| CAPPED_DATA | 0 | ctx | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | ctx | unit_byte |
| LOCK2 | &cpuctx->ctx.lock | ||
| LOCK2 | rcu_read | ||
| LOCK2 | 0 | &ctx->lock | |
| HALF_LOCKED2 | irq | ||
| TYPE_LOCK | (struct perf_event_context)->lock |
kernel/events/core.c perf_event_context_sched_in() -> perf_ctx_enable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 4096-ptr_max |
| PARAM_VALUE | 0 | ctx->lock.raw_lock.val.counter | 0-s32max |
| PARAM_VALUE | 1 | event_type | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &cpuctx->ctx.lock | ||
| LOCK2 | &ctx->lock | ||
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | irq | ||
| TYPE_LOCK | (struct perf_event_context)->lock |
kernel/events/core.c perf_event_context_sched_in() -> perf_ctx_enable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 4096-ptr_max |
| PARAM_VALUE | 0 | ctx->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ctx->lock.owner_cpu | 0 |
| PARAM_VALUE | 0 | ctx->lock.raw_lock.val.counter | 0-s32max |
| PARAM_VALUE | 0 | ctx->nr_events | s32min-(-1),1-s32max |
| PARAM_VALUE | 1 | event_type | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | ctx | unit_byte |
| LOCK2 | &cpuctx->ctx.lock | ||
| LOCK2 | rcu_read | ||
| LOCK2 | 0 | &ctx->lock | |
| HALF_LOCKED2 | irq | ||
| TYPE_LOCK | (struct perf_event_context)->lock |
kernel/events/core.c perf_event_context_sched_out() -> perf_ctx_enable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 4096-ptr_max |
| PARAM_VALUE | 0 | ctx->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ctx->lock.owner_cpu | 0 |
| PARAM_VALUE | 0 | ctx->lock.raw_lock.val.counter | 0-s32max |
| PARAM_VALUE | 0 | ctx->pin_count | 0 |
| PARAM_VALUE | 0 | ctx->task | 4096-ptr_max |
| PARAM_VALUE | 0 | ctx->task->perf_event_ctxp | 4096-ptr_max |
| PARAM_VALUE | 0 | ctx->task->sched_info.last_queued | 0 |
| PARAM_VALUE | 0 | ctx->task->sched_info.max_run_delay | 1-u64max |
| PARAM_VALUE | 0 | ctx->task->sched_info.max_run_delay_ts.tv_nsec | 0-999999999 |
| PARAM_VALUE | 0 | ctx->task->sched_info.min_run_delay | 1-u64max |
| PARAM_VALUE | 1 | event_type | 0 |
| CAPPED_DATA | 0 | ctx | 1 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &next_ctx->lock | ||
| LOCK2 | irq | ||
| LOCK2 | rcu_read | ||
| LOCK2 | 0 | &ctx->lock | |
| TYPE_LOCK | (struct perf_event_context)->lock |
kernel/events/core.c perf_event_context_sched_out() -> perf_ctx_enable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 4096-ptr_max |
| PARAM_VALUE | 0 | ctx->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ctx->lock.owner_cpu | 0 |
| PARAM_VALUE | 0 | ctx->lock.raw_lock.val.counter | 0-s32max |
| PARAM_VALUE | 1 | event_type | 0 |
| CAPPED_DATA | 0 | ctx | 1 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | irq | ||
| LOCK2 | 0 | &ctx->lock |
kernel/events/core.c perf_load_guest_context() -> perf_ctx_enable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 4096-ptr_max |
| PARAM_VALUE | 1 | event_type | 64 |
| PREEMPT_ADD | |||
| NOCHECK_CALL | |||
| LOCK2 | &vcpu->mutex | ||
| LOCK2 | irq | ||
| TYPE_LOCK | (struct kvm_vcpu)->mutex |
kernel/events/core.c perf_load_guest_context() -> perf_ctx_enable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 4096-ptr_max |
| PARAM_VALUE | 1 | event_type | 64 |
| CAPPED_DATA | 0 | ctx | 1 |
| PREEMPT_ADD | |||
| NOCHECK_CALL | |||
| UNITS | 0 | ctx | unit_byte |
| LOCK2 | &vcpu->mutex | ||
| LOCK2 | irq | ||
| TYPE_LOCK | (struct kvm_vcpu)->mutex |
kernel/events/core.c perf_put_guest_context() -> perf_ctx_enable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 4096-ptr_max |
| PARAM_VALUE | 1 | event_type | 64 |
| PREEMPT_ADD | |||
| NOCHECK_CALL | |||
| UNITS | 0 | ctx | unit_byte |
| LOCK2 | &vcpu->mutex | ||
| LOCK2 | irq | ||
| TYPE_LOCK | (struct kvm_vcpu)->mutex |
kernel/events/core.c perf_put_guest_context() -> perf_ctx_enable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 4096-ptr_max |
| PARAM_VALUE | 1 | event_type | 64 |
| PREEMPT_ADD | |||
| NOCHECK_CALL | |||
| LOCK2 | &vcpu->mutex | ||
| LOCK2 | irq | ||
| TYPE_LOCK | (struct kvm_vcpu)->mutex |