Defined in 2 files as a prototype:
- tools/testing/selftests/arm64/signal/test_signals_utils.h, line 16 (as a prototype)
- tools/testing/selftests/bpf/prog_tests/test_xsk.h, line 231 (as a prototype)
Defined in 19 files as a function:
- drivers/iommu/generic_pt/kunit_generic_pt.h, line 136 (as a function)
- drivers/net/wireless/zydas/zd1211rw/zd_chip.c, line 971 (as a function)
- drivers/rtc/rtc-test.c, line 151 (as a function)
- drivers/soc/fsl/qbman/bman_test.c, line 37 (as a function)
- drivers/soc/fsl/qbman/qman_test.c, line 37 (as a function)
- kernel/events/hw_breakpoint_test.c, line 294 (as a function)
- kernel/irq/refcount_interrupt_test.c, line 87 (as a function)
- kernel/kcsan/kcsan_test.c, line 1511 (as a function)
- lib/math/test_mul_u64_u64_div_u64.c, line 137 (as a function)
- lib/tests/slub_kunit.c, line 468 (as a function)
- mm/kfence/kfence_test.c, line 821 (as a function)
- mm/kmsan/kmsan_test.c, line 767 (as a function)
- tools/testing/selftests/arm64/signal/test_signals_utils.c, line 311 (as a function)
- tools/testing/selftests/bpf/prog_tests/test_ima.c, line 55 (as a function)
- tools/testing/selftests/bpf/prog_tests/test_xsk.c, line 272 (as a function)
- tools/testing/selftests/kvm/s390/keyop.c, line 147 (as a function)
- tools/testing/selftests/net/tcp_ao/lib/aolib.h, line 256 (as a function)
- tools/usb/ffs-aio-example/multibuff/host_app/test.c, line 59 (as a function)
- tools/usb/ffs-aio-example/simple/host_app/test.c, line 59 (as a function)
Referenced in 30 files:
- drivers/iommu/generic_pt/kunit_generic_pt.h, line 785
- drivers/net/wireless/zydas/zd1211rw/zd_chip.c
- drivers/rtc/rtc-test.c, line 200
- drivers/soc/fsl/qbman/bman_test.c, line 52
- drivers/soc/fsl/qbman/qman_test.c, line 61
- kernel/events/hw_breakpoint_test.c, line 326
- kernel/irq/refcount_interrupt_test.c, line 102
- kernel/kcsan/kcsan_test.c, line 1615
- lib/math/test_mul_u64_u64_div_u64.c, line 186
- lib/tests/slub_kunit.c, line 503
- mm/kfence/kfence_test.c, line 864
- mm/kmsan/kmsan_test.c, line 804
- tools/testing/selftests/arm64/signal/test_signals.c, line 34
- tools/testing/selftests/bpf/prog_tests/test_ima.c
- tools/testing/selftests/bpf/prog_tests/xsk.c
- tools/testing/selftests/bpf/xskxceiver.c
- tools/testing/selftests/kvm/s390/keyop.c, line 252
- tools/testing/selftests/net/tcp_ao/bench-lookups.c, line 358
- tools/testing/selftests/net/tcp_ao/connect-deny.c, line 289
- tools/testing/selftests/net/tcp_ao/connect.c, line 88
- tools/testing/selftests/net/tcp_ao/icmps-discard.c, line 446
- tools/testing/selftests/net/tcp_ao/key-management.c, line 1161
- tools/testing/selftests/net/tcp_ao/restore.c, line 249
- tools/testing/selftests/net/tcp_ao/rst.c, line 457
- tools/testing/selftests/net/tcp_ao/self-connect.c, line 189
- tools/testing/selftests/net/tcp_ao/seq-ext.c, line 253
- tools/testing/selftests/net/tcp_ao/setsockopt-closed.c, line 1009
- tools/testing/selftests/net/tcp_ao/unsigned-md5.c, line 770
- tools/usb/ffs-aio-example/multibuff/host_app/test.c, line 161
- tools/usb/ffs-aio-example/simple/host_app/test.c, line 161
Smatch caller information:
drivers/net/wireless/zydas/zd1211rw/zd_chip.c zd_chip_init_hw() -> test_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | test | 4096-ptr_max |
| PARAM_VALUE | 0 | test->mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | test->mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | test->mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | test->mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | test->mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | test->mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | test->mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | test->usb.intf->dev.bus | 0,4096-ptr_max |
| PARAM_VALUE | 0 | test->usb.intf->dev.class | 0,4096-ptr_max |
| PARAM_VALUE | 0 | test->usb.intf->dev.driver | 0,4096-ptr_max |
| PARAM_VALUE | 0 | test->usb.intr.buffer->_refcount.counter | s32min-s32max |
| PARAM_VALUE | 0 | test->usb.intr.buffer->memcg_data | 0 |
| PARAM_VALUE | 0 | test->usb.intr.buffer->page_type | 0-4294967295 |
| PARAM_VALUE | 0 | test->usb.intr.urb | 1-u64max |
| PARAM_VALUE | 0 | test->usb.intr.urb->actual_length | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->anchor | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->anchor_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | test->usb.intr.urb->anchor_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | test->usb.intr.urb->complete | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->context | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->dev | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->ep | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->error_count | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->hcpriv | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->interval | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->kref.refcount.refs.counter | 1 |
| PARAM_VALUE | 0 | test->usb.intr.urb->num_mapped_sgs | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->num_sgs | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->number_of_packets | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->pipe | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->reject.counter | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->setup_dma | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->setup_packet | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->sg | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->sgt | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->start_frame | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->status | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->stream_id | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->transfer_buffer | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->transfer_dma | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->transfer_flags | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->unlinked | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->urb_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | test->usb.intr.urb->urb_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | test->usb.intr.urb->use_count.counter | 0 |
| BUF_SIZE | 0 | test | 11488 |
| CAPPED_DATA | 0 | &test->mutex | 1 |
| DATA_SOURCE | 0 | test | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &test->mutex | |
| HALF_LOCKED2 | global &rtnl_mutex | ||
| TYPE_LOCK | (struct zd_chip)->mutex |
drivers/net/wireless/zydas/zd1211rw/zd_chip.c zd_chip_init_hw() -> test_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | test | 4096-ptr_max |
| PARAM_VALUE | 0 | test->link_led | 256,512 |
| PARAM_VALUE | 0 | test->mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | test->mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | test->mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | test->mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | test->mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | test->mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | test->mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | test->rf.clear | 4640763419657256960 |
| PARAM_VALUE | 0 | test->rf.init_hw | 191639324082380800,683579104439828480,3175127961984827392,3789186460024942592,5948949571527630848,6419143068271198208 |
| PARAM_VALUE | 0 | test->rf.patch_6m_band_edge | 1368419233801830400,5294670021798080512 |
| PARAM_VALUE | 0 | test->rf.patch_cck_gain | 1 |
| PARAM_VALUE | 0 | test->rf.priv | 0,4096-ptr_max |
| PARAM_VALUE | 0 | test->rf.set_channel | 385617390378946560,1189643966619267072,1758069356519157760,6127668483850022912,7971369793276039168,8010869700997873664 |
| PARAM_VALUE | 0 | test->rf.switch_radio_off | 1023191654482182144,4355745994574712832,7625130924074020864,7915431356892585984 |
| PARAM_VALUE | 0 | test->rf.switch_radio_on | 987315557398704128,1009977159819563008,2039106418737258496,4584925769674436608,6869676960969863168,7740819538205278208 |
| PARAM_VALUE | 0 | test->rf.type | 4-5,8-10,13 |
| PARAM_VALUE | 0 | test->rf.update_channel_int | 0 |
| PARAM_VALUE | 0 | test->usb->req_buf->addr | 0-u16max |
| PARAM_VALUE | 0 | test->usb->urb_async_waiting->setup_packet | 0-255 |
| PARAM_VALUE | 0 | test->usb.cmd_error | 0 |
| PARAM_VALUE | 0 | test->usb.in_async | 0 |
| PARAM_VALUE | 0 | test->usb.intf->dev.bus | 0,4096-ptr_max |
| PARAM_VALUE | 0 | test->usb.intf->dev.class | 0,4096-ptr_max |
| PARAM_VALUE | 0 | test->usb.intf->dev.driver | 0,4096-ptr_max |
| PARAM_VALUE | 0 | test->usb.intr.buffer->_refcount.counter | s32min-s32max |
| PARAM_VALUE | 0 | test->usb.intr.buffer->memcg_data | 0 |
| PARAM_VALUE | 0 | test->usb.intr.buffer->page_type | 0-4294967295 |
| PARAM_VALUE | 0 | test->usb.intr.read_regs.completion.done | 0-4294967293,u32max |
| PARAM_VALUE | 0 | test->usb.intr.read_regs.length | 2-64 |
| PARAM_VALUE | 0 | test->usb.intr.read_regs.req | 4096-ptr_max |
| PARAM_VALUE | 0 | test->usb.intr.read_regs.req->id | 34 |
| PARAM_VALUE | 0 | test->usb.intr.read_regs.req_count | 1-14 |
| PARAM_VALUE | 0 | test->usb.intr.read_regs_enabled.counter | 1 |
| PARAM_VALUE | 0 | test->usb.intr.read_regs_int_overridden | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb | 1-u64max |
| PARAM_VALUE | 0 | test->usb.intr.urb->actual_length | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->anchor | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->anchor_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | test->usb.intr.urb->anchor_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | test->usb.intr.urb->complete | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->context | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->dev | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->ep | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->error_count | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->hcpriv | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->interval | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->kref.refcount.refs.counter | 1 |
| PARAM_VALUE | 0 | test->usb.intr.urb->num_mapped_sgs | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->num_sgs | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->number_of_packets | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->pipe | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->reject.counter | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->setup_dma | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->setup_packet | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->sg | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->sgt | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->start_frame | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->status | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->stream_id | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->transfer_buffer | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->transfer_dma | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->transfer_flags | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->unlinked | 0 |
| PARAM_VALUE | 0 | test->usb.intr.urb->urb_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | test->usb.intr.urb->urb_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | test->usb.intr.urb->use_count.counter | 0 |
| PARAM_VALUE | 0 | test->usb.req_buf->id | 34 |
| PARAM_VALUE | 0 | test->usb.submitted_cmds.urb_list.prev->next | 40,4096-ptr_max |
| PARAM_VALUE | 0 | test->usb.submitted_cmds.urb_list.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | test->usb.urb_async_waiting | 0 |
| BUF_SIZE | 0 | test | 11488 |
| CAPPED_DATA | 0 | test->usb.intr.read_regs.length | 1 |
| CAPPED_DATA | 0 | &test->mutex | 1 |
| DATA_SOURCE | 0 | test | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &test->mutex | |
| HALF_LOCKED2 | global &rtnl_mutex | ||
| TYPE_LOCK | (struct zd_chip)->mutex |
lib/kunit/test.c kunit_run_case_internal() -> (struct kunit_suite)->init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | test | $0 |