Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
kernel/events/core.c __perf_install_in_context() -> add_event_to_ctx()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | event | 4096-ptr_max |
| PARAM_VALUE | 0 | event->ctx | 4096-ptr_max |
| PARAM_VALUE | 0 | event->ctx->is_active | (-2147483640)-s32max |
| PARAM_VALUE | 0 | event->ctx->task | 0,4096-ptr_max |
| PARAM_VALUE | 1 | ctx | 4096-ptr_max |
| PARAM_VALUE | 1 | ctx->is_active | (-2147483640)-s32max |
| PARAM_VALUE | 1 | ctx->task | 0,4096-ptr_max |
| BUF_SIZE | 0 | event | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | event | s32min-(-2),1-s32max |
| CAPPED_DATA | 1 | ctx | 1 |
| CAPPED_DATA | 1 | ctx->task | 1 |
| DATA_SOURCE | 0 | event | $0 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | ctx | unit_byte |
| LOCK2 | &cpuctx->ctx.lock | ||
| HALF_LOCKED2 | &task_ctx->lock | ||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | 1 | &ctx->lock | |
| TYPE_LOCK | (struct perf_event_context)->lock |
kernel/events/core.c __perf_install_in_context() -> add_event_to_ctx()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | event | 4096-ptr_max |
| PARAM_VALUE | 0 | event->ctx | 4096-ptr_max |
| PARAM_VALUE | 0 | event->ctx->task | 0,4096-ptr_max |
| PARAM_VALUE | 1 | ctx | 4096-ptr_max |
| PARAM_VALUE | 1 | ctx->task | 0,4096-ptr_max |
| BUF_SIZE | 0 | event | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | event | s32min-(-2),1-s32max |
| CAPPED_DATA | 1 | ctx | 1 |
| CAPPED_DATA | 1 | ctx->task | 1 |
| DATA_SOURCE | 0 | event | $0 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | ctx | unit_byte |
| LOCK2 | &cpuctx->ctx.lock | ||
| HALF_LOCKED2 | &task_ctx->lock | ||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | 1 | &ctx->lock | |
| TYPE_LOCK | (struct perf_event_context)->lock |
kernel/events/core.c inherit_event() -> add_event_to_ctx()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | event | 4096-ptr_max |
| PARAM_VALUE | 0 | event->ctx | 4096-ptr_max |
| PARAM_VALUE | 0 | event->ctx->event_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | event->ctx->event_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | event->ctx->lock.owner | (-1) |
| PARAM_VALUE | 0 | event->ctx->lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | event->ctx->pmu_ctx_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | event->ctx->task | 4096-ptr_max |
| PARAM_VALUE | 0 | event->group_leader | 4096-ptr_max |
| PARAM_VALUE | 0 | event->id_header_size | 0,8,16,24,32,40,48 |
| PARAM_VALUE | 0 | event->pmu_ctx | 4096-ptr_max |
| PARAM_VALUE | 0 | event->pmu_ctx->ctx | 4096-ptr_max |
| PARAM_VALUE | 0 | event->pmu_ctx->pmu_ctx_entry.next | 4096-ptr_max |
| PARAM_VALUE | 0 | event->pmu_ctx->pmu_ctx_entry.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | event->state | (-1)-0 |
| PARAM_VALUE | 1 | ctx | 4096-ptr_max |
| PARAM_VALUE | 1 | ctx->event_list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | ctx->event_list.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | ctx->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | ctx->lock.owner_cpu | 0 |
| PARAM_VALUE | 1 | ctx->lock.raw_lock.val.counter | 0-s32max |
| PARAM_VALUE | 1 | ctx->pmu_ctx_list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | ctx->pmu_ctx_list.prev->next | 4096-ptr_max |
| PARAM_VALUE | 1 | ctx->pmu_ctx_list.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | ctx->task | 4096-ptr_max |
| BUF_SIZE | 0 | event->ctx | (-1),432 |
| BUF_SIZE | 0 | event->pmu_ctx | (-1),112 |
| BUF_SIZE | 1 | ctx | (-1),432 |
| BUF_SIZE | 1 | ctx | (-1),432 |
| BUF_SIZE | 1 | ctx->task | (-1),1-s32max |
| CAPPED_DATA | 1 | ctx | 1 |
| DATA_SOURCE | 0 | event | r perf_event_alloc |
| DATA_SOURCE | 1 | ctx | $5 |
| FUZZY_MAX | 0 | event->state | 0 |
| HARD_MAX | 0 | event->state | 0 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | ctx | unit_byte |
| LOCK2 | &parent_ctx->mutex | ||
| LOCK2 | &parent_event->child_mutex | ||
| LOCK2 | _T->lock | ||
| LOCK2 | flags | ||
| LOCK2 | 1 | &ctx->lock | |
| TYPE_LOCK | (struct perf_event)->child_mutex | ||
| TYPE_LOCK | (struct perf_event_context)->lock | ||
| TYPE_LOCK | (struct perf_event_context)->mutex |
kernel/events/core.c perf_install_in_context() -> add_event_to_ctx()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | event | 4096-ptr_max |
| PARAM_VALUE | 0 | event->cgrp | 0 |
| PARAM_VALUE | 0 | event->ctx | 4096-ptr_max |
| PARAM_VALUE | 0 | event->ctx->mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | event->ctx->mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | event->ctx->mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | event->ctx->mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | event->ctx->task | 0-18446744073709551614 |
| PARAM_VALUE | 0 | event->group_leader | 4096-ptr_max |
| PARAM_VALUE | 0 | event->pmu | 4096-ptr_max |
| PARAM_VALUE | 0 | event->pmu_ctx | 4096-ptr_max,(-12) |
| PARAM_VALUE | 1 | ctx | 4096-ptr_max |
| PARAM_VALUE | 1 | ctx->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | ctx->lock.owner_cpu | 0 |
| PARAM_VALUE | 1 | ctx->lock.raw_lock.val.counter | 0-s32max |
| PARAM_VALUE | 1 | ctx->mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | ctx->mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 1 | ctx->mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 1 | ctx->mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | ctx->mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | ctx->mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 1 | ctx->mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | ctx->nr_events | s32min-(-1),1-s32max |
| PARAM_VALUE | 1 | ctx->task | 0-18446744073709551614 |
| BUF_SIZE | 0 | event->ctx | (-1)-0,432 |
| BUF_SIZE | 0 | event->pmu_ctx | (-1),112 |
| BUF_SIZE | 1 | ctx | (-1)-0,432 |
| BUF_SIZE | 1 | ctx | (-1)-0,432 |
| CAPPED_DATA | 0 | event->cpu | 1 |
| CAPPED_DATA | 0 | event->pmu | 1 |
| CAPPED_DATA | 1 | ctx | 1 |
| DATA_SOURCE | 0 | event | $1 |
| DATA_SOURCE | 1 | ctx | $0 |
| STR_LEN | 0 | event | (-1),8-9,11-29,31-34,38 |
| STR_LEN | 0 | event->ctx | (-1),8-9,11-29,31-34,38 |
| STR_LEN | 1 | ctx | (-1),8-9,11-29,31-34,38 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | event | unit_byte |
| LOCK2 | irq | ||
| LOCK2 | 1 | &ctx->lock | |
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | 1 | &ctx->mutex | |
| TYPE_LOCK | (struct perf_event_context)->lock |
kernel/events/core.c perf_install_in_context() -> add_event_to_ctx()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | event | 4096-ptr_max |
| PARAM_VALUE | 0 | event->ctx | 4096-ptr_max |
| PARAM_VALUE | 0 | event->ctx->mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | event->ctx->mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | event->ctx->mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | event->ctx->mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | event->ctx->task | 1-18446744073709551614 |
| PARAM_VALUE | 0 | event->group_leader | 4096-ptr_max |
| PARAM_VALUE | 0 | event->pmu | 4096-ptr_max |
| PARAM_VALUE | 0 | event->pmu_ctx | 4096-ptr_max,(-12) |
| PARAM_VALUE | 1 | ctx | 4096-ptr_max |
| PARAM_VALUE | 1 | ctx->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | ctx->lock.owner_cpu | 0 |
| PARAM_VALUE | 1 | ctx->lock.raw_lock.val.counter | 0-s32max |
| PARAM_VALUE | 1 | ctx->mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | ctx->mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 1 | ctx->mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 1 | ctx->mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | ctx->mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | ctx->mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 1 | ctx->mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | ctx->task | 4096-ptr_max |
| BUF_SIZE | 0 | event->ctx | (-1)-0,432 |
| BUF_SIZE | 0 | event->pmu_ctx | (-1),112 |
| BUF_SIZE | 1 | ctx | (-1)-0,432 |
| BUF_SIZE | 1 | ctx | (-1)-0,432 |
| CAPPED_DATA | 0 | event->cpu | 1 |
| CAPPED_DATA | 0 | event->pmu | 1 |
| CAPPED_DATA | 1 | ctx | 1 |
| DATA_SOURCE | 0 | event | $1 |
| DATA_SOURCE | 1 | ctx | $0 |
| STR_LEN | 0 | event | (-1),8-9,11-29,31-34,38 |
| STR_LEN | 0 | event->ctx | (-1),8-9,11-29,31-34,38 |
| STR_LEN | 1 | ctx | (-1),8-9,11-29,31-34,38 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | event | unit_byte |
| LOCK2 | irq | ||
| LOCK2 | 1 | &ctx->lock | |
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | 1 | &ctx->mutex | |
| TYPE_LOCK | (struct perf_event_context)->lock |