Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

lib/kunit/user_alloc.c kunit_alloc_resource() -> __kunit_add_resource()

Type Parameter Key Value
PARAM_VALUE 0 test->last_seen.file 484267934179975168,1631314395305967616,1834859717821100032,8090938237943001088
PARAM_VALUE 0 test->last_seen.line 99,305,1059,2167
PARAM_VALUE 1 init 3844983433334386688
PARAM_VALUE 3 res 4096-ptr_max
PARAM_VALUE 3 res->should_kfree 1
PARAM_VALUE 4 data 5038186285981683712
BUF_SIZE 0 test->last_seen.file (-1),24,27
BUF_SIZE 0 test->priv (-1),24,400
BUF_SIZE 3 res 56
BUF_SIZE 4 data 48
BUF_SIZE 4 data 48
DATA_SOURCE 0 test $0
DATA_SOURCE 1 init $1
DATA_SOURCE 2 free $2
DATA_SOURCE 3 res r _kzalloc_noprof
DATA_SOURCE 4 data $4
STR_LEN 0 test->last_seen.file (-1),23,26
HARD_MAX 0 test->last_seen.line 2167

drivers/clk/clk-fixed-rate_test.c kunit_alloc_resource() -> __kunit_add_resource()

Type Parameter Key Value
PARAM_VALUE 1 init 0,7994000554384408576
PARAM_VALUE 3 res 4096-ptr_max
PARAM_VALUE 3 res->should_kfree 1
BUF_SIZE 0 test->last_seen.file (-1),34
BUF_SIZE 3 res 56
DATA_SOURCE 0 test $0
DATA_SOURCE 1 init $1
DATA_SOURCE 2 free $2
DATA_SOURCE 3 res r _kzalloc_noprof
DATA_SOURCE 4 data $4
STR_LEN 0 test->last_seen.file (-1),33

lib/kunit/static_stub.c kunit_alloc_resource() -> __kunit_add_resource()

Type Parameter Key Value
PARAM_VALUE 0 test 4096-ptr_max
PARAM_VALUE 0 test->last_seen.file 3265352354559807488
PARAM_VALUE 0 test->last_seen.line 115
PARAM_VALUE 0 test->lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 init 0
PARAM_VALUE 2 free 1592523802097278976
PARAM_VALUE 3 res 4096-ptr_max
PARAM_VALUE 3 res->should_kfree 1
PARAM_VALUE 4 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
BUF_SIZE 3 res 56
BUF_SIZE 4 data 16
BUF_SIZE 4 data 16
DATA_SOURCE 0 test $0
DATA_SOURCE 1 init $1
DATA_SOURCE 2 free $2
DATA_SOURCE 3 res r _kzalloc_noprof
DATA_SOURCE 4 data $4
STR_LEN 0 test->last_seen.file 23
STR_LEN 0 test->name (-1)

lib/kunit/platform.c kunit_alloc_resource() -> __kunit_add_resource()

Type Parameter Key Value
PARAM_VALUE 1 init 7978053800922914816
PARAM_VALUE 3 res 4096-ptr_max
PARAM_VALUE 3 res->should_kfree 1
PARAM_VALUE 4 data 577557316877299712
BUF_SIZE 0 test->last_seen.file (-1),26,29,33,40
BUF_SIZE 0 test->priv (-1),144
BUF_SIZE 3 res 56
BUF_SIZE 4 data 16
BUF_SIZE 4 data 16
DATA_SOURCE 0 test $0
DATA_SOURCE 1 init $1
DATA_SOURCE 2 free $2
DATA_SOURCE 3 res r _kzalloc_noprof
DATA_SOURCE 4 data $4
STR_LEN 0 test 4,12,14,18-20,23,25,27
STR_LEN 0 test 4,12,14,18-20,23,25,27
STR_LEN 0 test->last_seen.file (-1),25,28,32,39

lib/tests/slub_kunit.c kunit_add_named_resource() -> __kunit_add_resource()

Type Parameter Key Value
PARAM_VALUE 0 test 4096-ptr_max
PARAM_VALUE 0 test->lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 init 0
PARAM_VALUE 2 free 0
PARAM_VALUE 3 res 4055327899438047232
PARAM_VALUE 3 res->name 2934209966350745600
PARAM_VALUE 3 res->should_kfree 0
PARAM_VALUE 4 data 6787974134457024512
PARAM_VALUE 4 *data 0
BUF_SIZE 3 res->name 12
BUF_SIZE 4 data 4
BUF_SIZE 4 data 4
DATA_SOURCE 0 test $0
DATA_SOURCE 1 init $1
DATA_SOURCE 2 free $2
DATA_SOURCE 3 res $3
DATA_SOURCE 4 data $5
STR_LEN 0 test 11
STR_LEN 0 test 11
TERMINATED 3 res->name 1

lib/kunit/kunit-example-test.c kunit_alloc_resource() -> __kunit_add_resource()

Type Parameter Key Value
PARAM_VALUE 0 test 267708468600430592
PARAM_VALUE 0 test->last_seen.file 0
PARAM_VALUE 0 test->last_seen.line 0
PARAM_VALUE 0 test->log 0,4096-ptr_max
PARAM_VALUE 0 test->param_index 0
PARAM_VALUE 0 test->params_array.elem_size 0
PARAM_VALUE 0 test->params_array.get_description 0
PARAM_VALUE 0 test->params_array.num_params 0
PARAM_VALUE 0 test->params_array.params 0
PARAM_VALUE 0 test->parent 0
PARAM_VALUE 0 test->priv 0
PARAM_VALUE 0 test->resources.next 4096-ptr_max
PARAM_VALUE 0 test->resources.prev 4096-ptr_max
PARAM_VALUE 0 test->status 0
PARAM_VALUE 1 init 8701379341119295488
PARAM_VALUE 3 res 4096-ptr_max
PARAM_VALUE 3 res->should_kfree 1
PARAM_VALUE 4 data 5064860734228496384
PARAM_VALUE 4 *data 3
BUF_SIZE 3 res 56
BUF_SIZE 4 data 4
BUF_SIZE 4 data 4
DATA_SOURCE 0 test $0
DATA_SOURCE 1 init $1
DATA_SOURCE 2 free $2
DATA_SOURCE 3 res r _kzalloc_noprof
DATA_SOURCE 4 data $4
TERMINATED 0 test->status_comment 1
LOCK2 global &kunit_run_lock

net/mac80211/tests/chan-mode.c kunit_alloc_resource() -> __kunit_add_resource()

Type Parameter Key Value
PARAM_VALUE 0 test 4096-ptr_max
PARAM_VALUE 1 init 3068377577140563968
PARAM_VALUE 3 res 4096-ptr_max
PARAM_VALUE 3 res->should_kfree 1
PARAM_VALUE 4 data 0
BUF_SIZE 3 res 56
DATA_SOURCE 0 test $0
DATA_SOURCE 1 init $1
DATA_SOURCE 2 free $2
DATA_SOURCE 3 res r _kzalloc_noprof
DATA_SOURCE 4 data $4

lib/kunit/resource.c kunit_add_action() -> __kunit_add_resource()

Type Parameter Key Value
PARAM_VALUE 0 test->last_seen.file 8090938237943001088
PARAM_VALUE 0 test->last_seen.line 99
PARAM_VALUE 1 init 0
PARAM_VALUE 3 res 4096-ptr_max
PARAM_VALUE 3 res->should_kfree 1
PARAM_VALUE 4 data 4096-ptr_max
BUF_SIZE 0 test->last_seen.file 21
BUF_SIZE 0 test->priv s32min,(-10),(-1),1-s32max
BUF_SIZE 4 data 72
DATA_SOURCE 0 test $0
DATA_SOURCE 4 data r _kzalloc_noprof
STR_LEN 0 test (-1)-3,5,7-9,11-17,19-23,27,31
STR_LEN 0 test (-1)-3,5,7-9,11-17,19-23,27,31
STR_LEN 0 test->last_seen.file 20
STR_LEN 0 test->name (-1)
RX_PATH
NOCHECK_CALL

net/wireless/tests/scan.c kunit_alloc_resource() -> __kunit_add_resource()

Type Parameter Key Value
PARAM_VALUE 1 init 5195471996546158592
PARAM_VALUE 3 res 4096-ptr_max
PARAM_VALUE 3 res->should_kfree 1
PARAM_VALUE 4 data 1490136116659294208,1593098538061729792,3986762451729534976
BUF_SIZE 3 res 56
BUF_SIZE 4 data 16
BUF_SIZE 4 data 16
DATA_SOURCE 0 test $0
DATA_SOURCE 1 init $1
DATA_SOURCE 2 free $2
DATA_SOURCE 3 res r _kzalloc_noprof
DATA_SOURCE 4 data $4

lib/tests/fortify_kunit.c kunit_add_named_resource() -> __kunit_add_resource()

Type Parameter Key Value
PARAM_VALUE 0 test 4096-ptr_max
PARAM_VALUE 0 test->lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 init 0
PARAM_VALUE 2 free 0
PARAM_VALUE 3 res 720928824410845184,6097838846292918272
PARAM_VALUE 3 res->name 3764042470920536064,5220579600775200768
PARAM_VALUE 3 res->should_kfree 0
PARAM_VALUE 4 data 7765549746160295936,8253391524369956864
PARAM_VALUE 4 *data 0
BUF_SIZE 3 res->name 23-24
BUF_SIZE 4 data 4
BUF_SIZE 4 data 4
DATA_SOURCE 0 test $0
DATA_SOURCE 1 init $1
DATA_SOURCE 2 free $2
DATA_SOURCE 3 res $3
DATA_SOURCE 4 data $5
STR_LEN 0 test 22-23
STR_LEN 0 test 22-23
TERMINATED 3 res->name 1

drivers/thunderbolt/test.c kunit_alloc_resource() -> __kunit_add_resource()

Type Parameter Key Value
PARAM_VALUE 0 test->last_seen.file 8090938237943001088
PARAM_VALUE 0 test->last_seen.line 99
PARAM_VALUE 1 init 5362473912551522304
PARAM_VALUE 3 res 4096-ptr_max
PARAM_VALUE 3 res->should_kfree 1
PARAM_VALUE 4 data 4096-ptr_max
BUF_SIZE 3 res 56
DATA_SOURCE 0 test $0
DATA_SOURCE 1 init $1
DATA_SOURCE 2 free $2
DATA_SOURCE 3 res r _kzalloc_noprof
DATA_SOURCE 4 data $4

lib/kunit/kunit-test.c kunit_add_named_resource() -> __kunit_add_resource()

Type Parameter Key Value
PARAM_VALUE 0 test 4096-ptr_max
PARAM_VALUE 0 test->lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 init 0
PARAM_VALUE 2 free 0
PARAM_VALUE 3 res 8203936689950793728,8234562891060428800
PARAM_VALUE 3 res->name 5494723978747338752,8913745866167984128
PARAM_VALUE 3 res->should_kfree 0
PARAM_VALUE 4 data 3072906330294747136
BUF_SIZE 0 test->last_seen.file (-1),23
BUF_SIZE 3 res->name 11
BUF_SIZE 4 data 528
BUF_SIZE 4 data 528
DATA_SOURCE 0 test $0
DATA_SOURCE 1 init $1
DATA_SOURCE 2 free $2
DATA_SOURCE 3 res $3
DATA_SOURCE 4 data $5
STR_LEN 0 test 10
STR_LEN 0 test 10
STR_LEN 0 test->last_seen.file (-1),22
TERMINATED 3 res->name 1

lib/kunit/kunit-test.c kunit_add_resource() -> __kunit_add_resource()

Type Parameter Key Value
PARAM_VALUE 1 init 0
PARAM_VALUE 2 free 0
PARAM_VALUE 3 res 7682213833563320320
PARAM_VALUE 3 res->should_kfree 0
PARAM_VALUE 4 data 7668702494091468800
BUF_SIZE 4 data 528
BUF_SIZE 4 data 528
DATA_SOURCE 0 test $0
DATA_SOURCE 1 init $1
DATA_SOURCE 2 free $2
DATA_SOURCE 3 res $3
DATA_SOURCE 4 data $4

lib/kunit/kunit-test.c kunit_alloc_and_get_resource() -> __kunit_add_resource()

Type Parameter Key Value
PARAM_VALUE 1 init 1921278298577195008,2770585301032566784,4462253415241826304
PARAM_VALUE 3 res 4096-ptr_max
PARAM_VALUE 3 res->should_kfree 1
BUF_SIZE 3 res 56
BUF_SIZE 4 data s32min,(-10),(-1),1-s32max
BUF_SIZE 4 data s32min,(-10),(-1),1-s32max
DATA_SOURCE 0 test $0
DATA_SOURCE 1 init $1
DATA_SOURCE 2 free $2
DATA_SOURCE 3 res r _kzalloc_noprof
DATA_SOURCE 4 data $4
RX_PATH