Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 10 files:
- drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_colorop_test.c
- drivers/gpu/drm/xe/tests/xe_guc_g2g_test.c, line 323
- drivers/of/of_kunit_helpers.c, line 85
- drivers/platform/wmi/tests/marshalling_kunit.c
- lib/kunit/assert_test.c, line 46
- lib/kunit/device.c
- lib/kunit/executor_test.c, line 278
- lib/kunit/kunit-test.c
- lib/kunit/resource.c
- lib/kunit/string-stream-test.c
Smatch caller information:
lib/kunit/assert_test.c get_str_from_stream() -> kunit_add_action()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | test->last_seen.file | 4064155701385715712 |
| PARAM_VALUE | 0 | test->last_seen.line | 45 |
| PARAM_VALUE | 0 | test->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 2 | ctx | 16,4096-ptr_max |
| BUF_SIZE | 0 | test->last_seen.file | 24 |
| BUF_SIZE | 2 | ctx | s32min-s32max |
| DATA_SOURCE | 0 | test | $0 |
| DATA_SOURCE | 2 | ctx | r string_stream_get_string |
| STR_LEN | 0 | test | (-1)-1,3,5,7-8,11-12,17,31 |
| STR_LEN | 0 | test | (-1)-1,3,5,7-8,11-12,17,31 |
| STR_LEN | 0 | test->last_seen.file | 23 |
| NOCHECK_CALL |
drivers/platform/wmi/tests/marshalling_kunit.c wmi_marshal_string_test() -> kunit_add_action()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | test | 4096-ptr_max |
| PARAM_VALUE | 0 | test->param_value | 4096-ptr_max |
| PARAM_VALUE | 2 | ctx | 4096-ptr_max |
| BUF_SIZE | 2 | ctx | s32min,(-10),1-s32max |
| DATA_SOURCE | 0 | test | $0 |
| NOCHECK_CALL | |||
| UNITS | 2 | ctx | unit_byte |
drivers/platform/wmi/tests/marshalling_kunit.c wmi_unmarshal_acpi_object_test() -> kunit_add_action()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | test | 4096-ptr_max |
| PARAM_VALUE | 0 | test->param_value | 4096-ptr_max |
| PARAM_VALUE | 2 | ctx | 16,4096-ptr_max |
| BUF_SIZE | 2 | ctx | 4-5,8,16,32,36 |
| DATA_SOURCE | 0 | test | $0 |
| NOCHECK_CALL |
lib/kunit/executor.c free_suite_set_at_end() -> kunit_add_action()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | test->last_seen.file | 4513971111700492288 |
| PARAM_VALUE | 0 | test->last_seen.line | 58,84,111,174,202,224 |
| PARAM_VALUE | 2 | ctx | 4096-ptr_max |
| BUF_SIZE | 0 | test->last_seen.file | 26 |
| BUF_SIZE | 2 | ctx | 16 |
| BUF_SIZE | 2 | ctx | 16 |
| DATA_SOURCE | 0 | test | $0 |
| DATA_SOURCE | 2 | ctx | r _kzalloc_noprof |
| STR_LEN | 0 | test->last_seen.file | 25 |
| HARD_MAX | 0 | test->last_seen.line | 224 |
| NOCHECK_CALL |
lib/kunit/device.c kunit_device_register_internal() -> kunit_add_action()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | test | 4096-ptr_max |
| PARAM_VALUE | 0 | test->last_seen.file | 5560335205197934592,8090938237943001088 |
| PARAM_VALUE | 0 | test->last_seen.line | 99,817,839 |
| PARAM_VALUE | 2 | ctx | 4096-ptr_max |
| BUF_SIZE | 0 | test->last_seen.file | (-1),23 |
| BUF_SIZE | 0 | test->priv | (-1),8,16,24,32,776,1344,3048 |
| BUF_SIZE | 2 | ctx | 1616 |
| DATA_SOURCE | 0 | test | $0 |
| STR_LEN | 0 | test | 8-9,11-16,19-23,27 |
| STR_LEN | 0 | test | 8-9,11-16,19-23,27 |
| STR_LEN | 0 | test->last_seen.file | (-1),22 |
| HARD_MAX | 0 | test->last_seen.line | 839 |
| RX_PATH | |||
| NOCHECK_CALL |
lib/kunit/device.c kunit_driver_create() -> kunit_add_action()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | test->last_seen.file | 8090938237943001088 |
| PARAM_VALUE | 0 | test->last_seen.line | 99 |
| PARAM_VALUE | 0 | test->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 2 | ctx | 4096-ptr_max |
| BUF_SIZE | 0 | test->priv | (-1),8,16,24,32,776,1344,3048 |
| BUF_SIZE | 2 | ctx | 152 |
| DATA_SOURCE | 0 | test | $0 |
| DATA_SOURCE | 2 | ctx | r kunit_kzalloc |
| STR_LEN | 0 | test | 8-9,11-16,19-23,27 |
| STR_LEN | 0 | test | 8-9,11-16,19-23,27 |
| STR_LEN | 0 | test->last_seen.file | (-1) |
| RX_PATH | |||
| NOCHECK_CALL |
lib/kunit/resource.c kunit_add_action_or_reset() -> kunit_add_action()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | test | (-1),496 |
| BUF_SIZE | 0 | test | (-1),496 |
| BUF_SIZE | 0 | test->last_seen.file | (-1),20,23-27,29-41,43-48,50-51,54,57,75,77,81 |
| BUF_SIZE | 0 | test->priv | s32min,(-10),(-1),1-s32max |
| BUF_SIZE | 2 | ctx | s32min,(-10),(-1)-s32max |
| BUF_SIZE | 2 | ctx | s32min,(-10),(-1)-s32max |
| DATA_SOURCE | 0 | test | $0 |
| DATA_SOURCE | 1 | action | $1 |
| DATA_SOURCE | 2 | ctx | $2 |
| STR_LEN | 0 | test | (-1),2,9,17,19,22 |
| STR_LEN | 0 | test | (-1),2,9,17,19,22 |
| STR_LEN | 0 | test->last_seen.file | (-1),19,22-26,28-40,42-47,49-50,53,56,74,76,80 |
| STR_LEN | 0 | test->name | (-1) |
| RX_PATH | |||
| HALF_LOCKED2 | &dev->mutex |
lib/kunit/string-stream-test.c get_concatenated_string() -> kunit_add_action()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | test->last_seen.file | 9137709962381012992 |
| PARAM_VALUE | 0 | test->last_seen.line | 35 |
| PARAM_VALUE | 0 | test->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 2 | ctx | 16,4096-ptr_max |
| BUF_SIZE | 0 | test->last_seen.file | 31 |
| BUF_SIZE | 2 | ctx | s32min-s32max |
| DATA_SOURCE | 0 | test | $0 |
| DATA_SOURCE | 2 | ctx | r string_stream_get_string |
| STR_LEN | 0 | test->last_seen.file | 30 |
| NOCHECK_CALL |
lib/kunit/string-stream-test.c string_stream_unmanaged_init_test() -> kunit_add_action()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | test->last_seen.file | 9137709962381012992 |
| PARAM_VALUE | 0 | test->last_seen.line | 63 |
| PARAM_VALUE | 2 | ctx | 4096-ptr_max |
| BUF_SIZE | 0 | test->last_seen.file | 31 |
| BUF_SIZE | 2 | ctx | 104 |
| DATA_SOURCE | 0 | test | $0 |
| DATA_SOURCE | 2 | ctx | r alloc_string_stream |
| STR_LEN | 0 | test->last_seen.file | 30 |
| NOCHECK_CALL |
drivers/gpu/drm/xe/xe_guc.c g2g_run_test() -> kunit_add_action()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | test | 4096-ptr_max |
| PARAM_VALUE | 0 | test->last_seen.file | 6919878298328936448 |
| PARAM_VALUE | 0 | test->last_seen.line | 314 |
| PARAM_VALUE | 0 | test->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | test->log->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | test->priv | 4096-ptr_max |
| PARAM_VALUE | 0 | test->priv->drm.dev->power.deferred_resume | 0-1 |
| PARAM_VALUE | 0 | test->priv->drm.dev->power.idle_notification | 0-1 |
| PARAM_VALUE | 0 | test->priv->drm.dev->power.request | 0-4 |
| PARAM_VALUE | 0 | test->priv->drm.dev->power.request_pending | 0-1 |
| PARAM_VALUE | 0 | test->priv->drm.dev->power.runtime_error | s32min-(-17),(-15)-(-14),(-12),(-10)-s32max |
| PARAM_VALUE | 0 | test->priv->drm.dev->power.runtime_status | s32min-s32max |
| PARAM_VALUE | 0 | test->priv->drm.dev->power.timer_autosuspends | 0-1 |
| PARAM_VALUE | 0 | test->priv->drm.dev->power.usage_count.counter | s32min-s32max |
| PARAM_VALUE | 0 | test->priv->drm.dev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | test->priv->info.gt_count | 2-255 |
| PARAM_VALUE | 0 | test->priv->sriov.__mode | 0-2,4-4294967295 |
| PARAM_VALUE | 2 | ctx | 4096-ptr_max |
| BUF_SIZE | 0 | test->last_seen.file | 43 |
| BUF_SIZE | 2 | ctx | s32min,(-10),1-s32max |
| DATA_SOURCE | 0 | test | $0 |
| DATA_SOURCE | 2 | ctx | $1 |
| STR_LEN | 0 | test->last_seen.file | 42 |
drivers/of/of_kunit_helpers.c of_node_put_kunit() -> kunit_add_action()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | test->last_seen.file | 626550868778676224,5208582162074968064,8090938237943001088 |
| PARAM_VALUE | 0 | test->last_seen.line | 41,99,3161,3191,3498 |
| PARAM_VALUE | 2 | ctx | 0,4096-ptr_max |
| BUF_SIZE | 0 | test->last_seen.file | (-1),23,26 |
| BUF_SIZE | 0 | test->priv | (-1),32,64 |
| DATA_SOURCE | 0 | test | $0 |
| DATA_SOURCE | 2 | ctx | $1 |
| STR_LEN | 0 | test->last_seen.file | (-1),22,25 |
| HARD_MAX | 0 | test->last_seen.line | 3498 |
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/tests/amdgpu_dm_colorop_test.c dm_test_initialize_default_pipeline() -> kunit_add_action()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | test | 4096-ptr_max |
| PARAM_VALUE | 0 | test->last_seen.file | 5286552369138880512 |
| PARAM_VALUE | 0 | test->last_seen.line | 200 |
| PARAM_VALUE | 0 | test->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 2 | ctx | 4096-ptr_max |
| BUF_SIZE | 0 | test->last_seen.file | 79 |
| DATA_SOURCE | 0 | test | $0 |
| DATA_SOURCE | 2 | ctx | r __drm_kunit_helper_alloc_drm_device |
| STR_LEN | 0 | test->last_seen.file | 78 |
| NOCHECK_CALL |
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/tests/amdgpu_dm_colorop_test.c dm_test_initialize_default_pipeline_caps() -> kunit_add_action()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | test | 4096-ptr_max |
| PARAM_VALUE | 0 | test->last_seen.file | 5286552369138880512 |
| PARAM_VALUE | 0 | test->last_seen.line | 240 |
| PARAM_VALUE | 0 | test->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 2 | ctx | 4096-ptr_max |
| BUF_SIZE | 0 | test->last_seen.file | 79 |
| BUF_SIZE | 2 | ctx | 3696 |
| DATA_SOURCE | 0 | test | $0 |
| STR_LEN | 0 | test->last_seen.file | 78 |
| NOCHECK_CALL |
lib/kunit/kunit-test.c kunit_log_newline_test() -> kunit_add_action()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | test | 4096-ptr_max |
| PARAM_VALUE | 0 | test->log | 4096-ptr_max |
| PARAM_VALUE | 0 | test->log->fragments.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | test->log->fragments.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | test->log->fragments.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | test->log->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 2 | ctx | 0,16,4096-ptr_max |
| DATA_SOURCE | 0 | test | $0 |
| DATA_SOURCE | 2 | ctx | r string_stream_get_string |
| NOCHECK_CALL |
lib/kunit/kunit-test.c kunit_log_test() -> kunit_add_action()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | test | 4096-ptr_max |
| PARAM_VALUE | 0 | test->last_seen.file | 5560335205197934592,8090938237943001088 |
| PARAM_VALUE | 0 | test->last_seen.line | 99,608 |
| PARAM_VALUE | 0 | test->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | test->log | 4096-ptr_max |
| PARAM_VALUE | 0 | test->log->fragments.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | test->log->fragments.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | test->log->fragments.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | test->log->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | test->status | 1 |
| PARAM_VALUE | 2 | ctx | 0,16,4096-ptr_max |
| BUF_SIZE | 0 | test->last_seen.file | (-1),23 |
| DATA_SOURCE | 0 | test | $0 |
| DATA_SOURCE | 2 | ctx | r string_stream_get_string |
| FUZZY_MAX | 0 | test->last_seen.line | 608 |
| STR_LEN | 0 | test->last_seen.file | (-1),22 |
| NOCHECK_CALL |
lib/kunit/kunit-test.c kunit_log_test() -> kunit_add_action()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | test | 4096-ptr_max |
| PARAM_VALUE | 0 | test->last_seen.file | 5560335205197934592,8090938237943001088 |
| PARAM_VALUE | 0 | test->last_seen.line | 99,614 |
| PARAM_VALUE | 0 | test->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | test->log | 4096-ptr_max |
| PARAM_VALUE | 0 | test->log->fragments.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | test->log->fragments.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | test->log->fragments.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | test->log->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | test->status | 1 |
| PARAM_VALUE | 1 | action | 1-u64max |
| PARAM_VALUE | 2 | ctx | 0,16,4096-ptr_max |
| BUF_SIZE | 0 | test->last_seen.file | (-1),23 |
| DATA_SOURCE | 0 | test | $0 |
| DATA_SOURCE | 2 | ctx | r string_stream_get_string |
| FUZZY_MAX | 0 | test->last_seen.line | 614 |
| STR_LEN | 0 | test->last_seen.file | (-1),22 |
| NOCHECK_CALL |
lib/kunit/kunit-test.c kunit_resource_test_action() -> kunit_add_action()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | ctx | 4521942812036145152 |
| PARAM_VALUE | 2 | *ctx | 0 |
| BUF_SIZE | 2 | ctx | 4 |
| DATA_SOURCE | 0 | test | $0 |
| NOCHECK_CALL |
lib/kunit/kunit-test.c kunit_resource_test_action() -> kunit_add_action()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | test | 4096-ptr_max |
| PARAM_VALUE | 0 | test->last_seen.file | 5560335205197934592,8090938237943001088 |
| PARAM_VALUE | 0 | test->last_seen.line | 99,474 |
| PARAM_VALUE | 0 | test->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | test->log->fragments.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | test->log->fragments.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | test->log->fragments.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | test->log->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | test->resources.next | 4096-ptr_max |
| PARAM_VALUE | 0 | test->status | 1 |
| PARAM_VALUE | 1 | action | 1-u64max |
| PARAM_VALUE | 2 | ctx | 4521942812036145152 |
| PARAM_VALUE | 2 | *ctx | 0 |
| BUF_SIZE | 0 | test->last_seen.file | (-1),23 |
| BUF_SIZE | 2 | ctx | 4 |
| DATA_SOURCE | 0 | test | $0 |
| FUZZY_MAX | 0 | test->last_seen.line | 474 |
| STR_LEN | 0 | test->last_seen.file | (-1),22 |
| PARAM_COMPARE | 0 | &test->resources | == $0->resources.next |
| NOCHECK_CALL |
lib/kunit/kunit-test.c kunit_resource_test_action() -> kunit_add_action()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | test | 4096-ptr_max |
| PARAM_VALUE | 0 | test->last_seen.file | 8090938237943001088 |
| PARAM_VALUE | 0 | test->last_seen.line | 99 |
| PARAM_VALUE | 0 | test->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | test->log->fragments.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | test->log->fragments.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | test->log->fragments.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | test->log->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | test->resources.next | 4096-ptr_max |
| PARAM_VALUE | 0 | test->status | 1 |
| PARAM_VALUE | 1 | action | 1-u64max |
| PARAM_VALUE | 2 | ctx | 4521942812036145152 |
| PARAM_VALUE | 2 | *ctx | 0 |
| BUF_SIZE | 2 | ctx | 4 |
| DATA_SOURCE | 0 | test | $0 |
| STR_LEN | 0 | test->last_seen.file | (-1) |
| PARAM_COMPARE | 0 | &test->resources | == $0->resources.next |
| NOCHECK_CALL |
lib/kunit/kunit-test.c kunit_resource_test_action_ordering() -> kunit_add_action()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | test | 4096-ptr_max |
| BUF_SIZE | 2 | ctx | s32min,(-10),1-s32max |
| DATA_SOURCE | 0 | test | $0 |
| NOCHECK_CALL |
lib/kunit/kunit-test.c kunit_resource_test_action_ordering() -> kunit_add_action()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | test | 4096-ptr_max |
| PARAM_VALUE | 0 | test->last_seen.file | 8090938237943001088 |
| PARAM_VALUE | 0 | test->last_seen.line | 99 |
| BUF_SIZE | 2 | ctx | s32min,(-10),1-s32max |
| DATA_SOURCE | 0 | test | $0 |
| NOCHECK_CALL |
lib/kunit/kunit-test.c kunit_resource_test_action_ordering() -> kunit_add_action()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | test | 4096-ptr_max |
| PARAM_VALUE | 0 | test->last_seen.file | 8090938237943001088 |
| PARAM_VALUE | 0 | test->last_seen.line | 99 |
| PARAM_VALUE | 1 | action | 1-u64max |
| BUF_SIZE | 2 | ctx | s32min,(-10),1-s32max |
| DATA_SOURCE | 0 | test | $0 |
| NOCHECK_CALL |
lib/kunit/kunit-test.c kunit_resource_test_action_ordering() -> kunit_add_action()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | test | 4096-ptr_max |
| PARAM_VALUE | 0 | test->last_seen.file | 8090938237943001088 |
| PARAM_VALUE | 0 | test->last_seen.line | 99 |
| PARAM_VALUE | 1 | action | 1-u64max |
| BUF_SIZE | 2 | ctx | s32min,(-10),1-s32max |
| DATA_SOURCE | 0 | test | $0 |
| NOCHECK_CALL |
lib/kunit/kunit-test.c kunit_resource_test_release_action() -> kunit_add_action()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | ctx | 5812227955419033600 |
| PARAM_VALUE | 2 | *ctx | 0 |
| BUF_SIZE | 2 | ctx | 4 |
| DATA_SOURCE | 0 | test | $0 |
| NOCHECK_CALL |
lib/kunit/kunit-test.c kunit_resource_test_remove_action() -> kunit_add_action()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | ctx | 8432208157069045760 |
| PARAM_VALUE | 2 | *ctx | 0 |
| BUF_SIZE | 2 | ctx | 4 |
| DATA_SOURCE | 0 | test | $0 |
| NOCHECK_CALL |