Defined in 2 files as a function:
- drivers/gpu/drm/i915/i915_perf.c, line 463 (as a function)
- drivers/gpu/drm/xe/xe_oa.c, line 219 (as a function)
Referenced in 2 files:
Smatch caller information:
drivers/gpu/drm/xe/xe_oa.c xe_oa_buffer_check_unlocked() -> oa_report_id()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | stream | 4096-ptr_max |
| PARAM_VALUE | 0 | stream->oa_buffer.bo | 4096-ptr_max |
| PARAM_VALUE | 0 | stream->oa_buffer.format | 4096-ptr_max |
| PARAM_VALUE | 0 | stream->oa_buffer.format->header | 0-1 |
| BUF_SIZE | 0 | stream | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | stream | s32min-(-1),1-s32max |
| CAPPED_DATA | 0 | stream->gt->mmio.adj_limit | 1 |
| CAPPED_DATA | 0 | stream->oa_buffer.tail | 1 |
| DATA_SOURCE | 0 | stream | $0 |
| NOSPEC | 0 | stream->num_syncs | |
| NOSPEC | 0 | stream->oa_unit->exclusive_stream->num_syncs | |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | stream->oa_buffer.tail | 0,64-u32max[c] |
| HOST_DATA | 0 | stream->oa_status | 0-u32max |
| HOST_DATA | 1 | report | 0,64-u32max |
| USER_DATA | 0 | stream->no_preempt | 0-1 |
| USER_DATA | 0 | stream->num_syncs | 0-1024[c] |
| USER_DATA | 0 | stream->oa_buffer.bo->flags | 0-u32max[u] |
| USER_DATA | 0 | stream->oa_buffer.bo->ttm.base.size | 0-u64max[c] |
| USER_DATA | 0 | stream->oa_buffer.bo->ttm.base.vma_node.vm_node.size | 1-s32max[c] |
| USER_DATA | 0 | stream->oa_buffer.bo->ttm.base.vma_node.vm_node.start | 0-s32max[c] |
| USER_DATA | 0 | stream->oa_buffer.bo->ttm.page_alignment | 1,16,512 |
| USER_DATA | 0 | stream->oa_buffer.circ_size | 130433-134217728 |
| USER_DATA | 0 | stream->oa_unit->exclusive_stream->no_preempt | 0-1 |
| USER_DATA | 0 | stream->oa_unit->exclusive_stream->num_syncs | 0-1024[c] |
| USER_DATA | 0 | stream->oa_unit->exclusive_stream->oa_buffer.circ_size | 130433-134217728 |
| USER_DATA | 0 | stream->oa_unit->exclusive_stream->period_exponent | 0-31 |
| USER_DATA | 0 | stream->oa_unit->exclusive_stream->periodic | 1[c] |
| USER_DATA | 0 | stream->oa_unit->exclusive_stream->sample | 0-1 |
| USER_DATA | 0 | stream->period_exponent | 0-31 |
| USER_DATA | 0 | stream->periodic | 1[c] |
| USER_DATA | 0 | stream->sample | 0-1 |
| NO_OVERFLOW_SIMPLE | 0 | stream->k_exec_q->entity->num_sched_list | |
| LOCK2 | flags | ||
| LOCK2 | 0 | &stream->oa_buffer.ptr_lock | |
| HALF_LOCKED2 | 0 | &stream->stream_lock | |
| TYPE_LOCK | (struct xe_oa_buffer)->ptr_lock |
drivers/gpu/drm/i915/i915_perf.c oa_buffer_check_unlocked() -> oa_report_id()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | stream | 4096-ptr_max |
| PARAM_VALUE | 0 | stream->oa_buffer.format | 4096-ptr_max |
| PARAM_VALUE | 0 | stream->oa_buffer.format->header | 0-1 |
| PARAM_VALUE | 1 | report | 4096-ptr_max |
| PARAM_VALUE | 1 | *report | 0-255 |
| BUF_SIZE | 0 | stream | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | stream | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | stream | $0 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | stream->oa_buffer.tail | 0-16777215 |
| HOST_DATA | 0 | stream->uncore->fifo_count | 0-127,u32max |
| LOCK2 | flags | ||
| LOCK2 | 0 | &stream->oa_buffer.ptr_lock | |
| TYPE_LOCK | (struct i915_perf_stream)->oa_buffer.ptr_lock |
drivers/gpu/drm/i915/i915_perf.c oa_report_ctx_invalid() -> oa_report_id()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | stream | 4096-ptr_max |
| PARAM_VALUE | 0 | stream->oa_buffer.format | 4096-ptr_max |
| PARAM_VALUE | 0 | stream->oa_buffer.format->header | 0-1 |
| PARAM_VALUE | 1 | report | 4096-ptr_max |
| BUF_SIZE | 0 | stream | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | stream | s32min-(-2),1-s32max |
| CAPPED_DATA | 0 | stream->oa_buffer.format->size | 1 |
| DATA_SOURCE | 0 | stream | $0 |
| DATA_SOURCE | 1 | report | $1 |
| BIT_INFO | 0 | stream->sample_flags | 0x1,0xffffffffffffffff |
| HOST_DATA | 0 | stream->oa_buffer.tail | 0-16777215 |
| HOST_DATA | 0 | stream->uncore->fifo_count | 0-127,u32max |
| LOCK2 | 0 | &stream->lock | |
| TYPE_LOCK | (struct i915_perf_stream)->lock |
drivers/gpu/drm/i915/i915_perf.c oa_report_reason() -> oa_report_id()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | stream | 4096-ptr_max |
| PARAM_VALUE | 0 | stream->oa_buffer.format | 4096-ptr_max |
| PARAM_VALUE | 0 | stream->oa_buffer.format->header | 0-1 |
| PARAM_VALUE | 1 | report | 4096-ptr_max |
| BUF_SIZE | 0 | stream | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | stream | s32min-(-2),1-s32max |
| CAPPED_DATA | 0 | stream->oa_buffer.format->size | 1 |
| DATA_SOURCE | 0 | stream | $0 |
| DATA_SOURCE | 1 | report | $1 |
| BIT_INFO | 0 | stream->sample_flags | 0x1,0xffffffffffffffff |
| HOST_DATA | 0 | stream->oa_buffer.tail | 0-16777215 |
| HOST_DATA | 0 | stream->uncore->fifo_count | 0-127,u32max |
| LOCK2 | 0 | &stream->lock | |
| TYPE_LOCK | (struct i915_perf_stream)->lock |