Documented in 1 files:
Defined in 1 files as a function:
Referenced in 5 files:
- include/kunit/resource.h, line 354
- lib/kunit/kunit-example-test.c, line 377
- lib/kunit/platform.c
- lib/kunit/resource.c
- lib/kunit/static_stub.c
Smatch caller information:
mm/slub.c kunit_find_named_resource() -> kunit_find_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | match_data | 2934209966350745600 |
| BUF_SIZE | 2 | match_data | 12 |
| BUF_SIZE | 2 | match_data | 12 |
| DATA_SOURCE | 0 | test | $0 |
| DATA_SOURCE | 2 | match_data | $1 |
| STR_LEN | 0 | test | 11 |
| STR_LEN | 0 | test | 11 |
| TERMINATED | 2 | match_data | 1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &slab_mutex |
lib/kunit/static_stub.c __kunit_activate_static_stub() -> kunit_find_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | test->last_seen.file | 3265352354559807488 |
| PARAM_VALUE | 0 | test->last_seen.line | 94 |
| PARAM_VALUE | 2 | match_data | 4096-ptr_max |
| BUF_SIZE | 0 | test | (-1),496 |
| BUF_SIZE | 0 | test | (-1),496 |
| BUF_SIZE | 0 | test->last_seen.file | 24 |
| BUF_SIZE | 0 | test->priv | s32min,(-10),(-1),1-s32max |
| DATA_SOURCE | 0 | test | $0 |
| DATA_SOURCE | 2 | match_data | $1 |
| STR_LEN | 0 | test->last_seen.file | 23 |
| STR_LEN | 0 | test->name | (-1) |
lib/kunit/static_stub.c __kunit_get_static_stub_address_impl() -> kunit_find_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | test | 1-u64max |
| PARAM_VALUE | 2 | match_data | 4096-ptr_max |
| BUF_SIZE | 2 | match_data | 8 |
| BUF_SIZE | 2 | match_data | 8 |
| DATA_SOURCE | 0 | test | $0 |
| DATA_SOURCE | 2 | match_data | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | rcu_read |
lib/kunit/static_stub.c kunit_deactivate_static_stub() -> kunit_find_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | test->last_seen.file | 3265352354559807488 |
| PARAM_VALUE | 0 | test->last_seen.line | 64 |
| PARAM_VALUE | 2 | match_data | 4096-ptr_max |
| BUF_SIZE | 0 | test | (-1),496 |
| BUF_SIZE | 0 | test | (-1),496 |
| BUF_SIZE | 0 | test->last_seen.file | 24 |
| BUF_SIZE | 0 | test->priv | s32min,(-10),(-1),1-s32max |
| DATA_SOURCE | 0 | test | $0 |
| DATA_SOURCE | 2 | match_data | $1 |
| STR_LEN | 0 | test->last_seen.file | 23 |
| STR_LEN | 0 | test->name | (-1) |
lib/kunit/platform.c kunit_platform_device_add() -> kunit_find_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | test->last_seen.file | 626550868778676224,3113111990925307904,3816104602900295680,4521726187253084160,5633985818145140736,8065063714399641600,8090938237943001088 |
| PARAM_VALUE | 0 | test->last_seen.line | 31,50,54,99,101,157,186,229,232,299,302,651,3450 |
| PARAM_VALUE | 2 | match_data | 4096-ptr_max |
| BUF_SIZE | 0 | test->last_seen.file | (-1),23,26,29,33,40-41 |
| BUF_SIZE | 0 | test->priv | (-1),144 |
| BUF_SIZE | 2 | match_data | s32min,(-10),1-s32max |
| DATA_SOURCE | 0 | test | $0 |
| DATA_SOURCE | 2 | match_data | $1 |
| STR_LEN | 0 | test->last_seen.file | (-1),22,25,28,32,39-40 |
lib/kunit/platform.c kunit_platform_device_unregister() -> kunit_find_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | test->last_seen.file | 3113111990925307904,4521726187253084160,8090938237943001088 |
| PARAM_VALUE | 0 | test->last_seen.line | 99,312,513,662 |
| PARAM_VALUE | 0 | test->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 2 | match_data | 4096-ptr_max |
| BUF_SIZE | 0 | test->last_seen.file | (-1),29,40 |
| BUF_SIZE | 2 | match_data | s32min,(-10),1-s32max |
| DATA_SOURCE | 0 | test | $0 |
| DATA_SOURCE | 2 | match_data | $1 |
| FUZZY_MAX | 0 | test->last_seen.line | 312 |
| STR_LEN | 0 | test->last_seen.file | (-1),28,39 |
| TASK_NOT_RUNNING |
lib/tests/slub_kunit.c kunit_find_named_resource() -> kunit_find_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | match_data | 2934209966350745600 |
| BUF_SIZE | 2 | match_data | 12 |
| BUF_SIZE | 2 | match_data | 12 |
| DATA_SOURCE | 0 | test | $0 |
| DATA_SOURCE | 2 | match_data | $1 |
| STR_LEN | 0 | test | 11 |
| STR_LEN | 0 | test | 11 |
| TERMINATED | 2 | match_data | 1 |
lib/kunit/kunit-example-test.c example_params_test_with_init() -> kunit_find_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | match_data | 0 |
lib/kunit/resource.c kunit_destroy_resource() -> kunit_find_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | match_data | 1-u64max |
| BUF_SIZE | 0 | test->last_seen.file | (-1),23 |
| BUF_SIZE | 2 | match_data | s32min,(-10),1-s32max |
| BUF_SIZE | 2 | match_data | s32min,(-10),1-s32max |
| DATA_SOURCE | 0 | test | $0 |
| DATA_SOURCE | 1 | match | $1 |
| DATA_SOURCE | 2 | match_data | $2 |
| STR_LEN | 0 | test | (-1),10 |
| STR_LEN | 0 | test | (-1),10 |
| STR_LEN | 0 | test->last_seen.file | (-1),22 |
lib/kunit/resource.c kunit_release_action() -> kunit_find_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | match_data | 3748626472037462016 |
| BUF_SIZE | 0 | test->last_seen.file | (-1),23,31-33,35,38-41,43,47-48,53-54,57 |
| BUF_SIZE | 0 | test->priv | (-1),8,16,24,32,776,1344,3048 |
| BUF_SIZE | 2 | match_data | 72 |
| DATA_SOURCE | 0 | test | $0 |
| STR_LEN | 0 | test | (-1),8-9,11-16,19-23,27 |
| STR_LEN | 0 | test | (-1),8-9,11-16,19-23,27 |
| STR_LEN | 0 | test->last_seen.file | (-1),22,30-32,34,37-40,42,46-47,52-53,56 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
lib/kunit/resource.c kunit_remove_action() -> kunit_find_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | match_data | 2813284062274162688 |
| BUF_SIZE | 0 | test->last_seen.file | (-1),23,29,40,43 |
| BUF_SIZE | 2 | match_data | 72 |
| DATA_SOURCE | 0 | test | $0 |
| STR_LEN | 0 | test->last_seen.file | (-1),22,28,39,42 |
| TASK_NOT_RUNNING |
lib/tests/fortify_kunit.c kunit_find_named_resource() -> kunit_find_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | match_data | 3764042470920536064,5220579600775200768 |
| BUF_SIZE | 2 | match_data | 23-24 |
| BUF_SIZE | 2 | match_data | 23-24 |
| DATA_SOURCE | 0 | test | $0 |
| DATA_SOURCE | 2 | match_data | $1 |
| STR_LEN | 0 | test | 22-23 |
| STR_LEN | 0 | test | 22-23 |
| TERMINATED | 2 | match_data | 1 |
lib/kunit/kunit-test.c kunit_find_named_resource() -> kunit_find_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | match_data | 5494723978747338752,8913745866167984128 |
| BUF_SIZE | 0 | test->last_seen.file | (-1),23 |
| BUF_SIZE | 2 | match_data | 11 |
| BUF_SIZE | 2 | match_data | 11 |
| DATA_SOURCE | 0 | test | $0 |
| DATA_SOURCE | 2 | match_data | $1 |
| STR_LEN | 0 | test | 10 |
| STR_LEN | 0 | test | 10 |
| STR_LEN | 0 | test->last_seen.file | (-1),22 |
| TERMINATED | 2 | match_data | 1 |