Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
net/devlink/trap.c devlink_nl_trap_get_doit() -> devlink_nl_trap_fill()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | msg | 4096-ptr_max |
| PARAM_VALUE | 1 | devlink | 4096-ptr_max |
| PARAM_VALUE | 2 | trap_item | 4096-ptr_max |
| PARAM_VALUE | 3 | cmd | 63 |
| PARAM_VALUE | 6 | flags | 0 |
| BUF_SIZE | 0 | msg | 0-s32max |
| BUF_SIZE | 0 | msg | 0-s32max |
| CAPPED_DATA | 1 | &devlink->trap_list | 1 |
| DATA_SOURCE | 0 | msg | r nlmsg_new |
| DATA_SOURCE | 2 | trap_item | r devlink_trap_item_get_from_info |
| PARAM_COMPARE | 1 | &devlink->trap_list | != $1->trap_list.next |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 5 | seq | 0-u32max[u] |
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &devlink->lock | ||
| HALF_LOCKED2 | &net->xfrm.xfrm_cfg_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | global &audit_cmd_mutex.lock | ||
| HALF_LOCKED2 | global &cb_lock | ||
| HALF_LOCKED2 | global &crypto_cfg_mutex | ||
| HALF_LOCKED2 | global &dpll_lock | ||
| HALF_LOCKED2 | global &hwsim_phys_lock | ||
| HALF_LOCKED2 | global &net_dm_mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | global &rx_queue_mutex | ||
| HALF_LOCKED2 | rcu_read |
net/devlink/trap.c devlink_nl_trap_get_dump_one() -> devlink_nl_trap_fill()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | msg | 4096-ptr_max |
| PARAM_VALUE | 0 | msg->data | 4096-ptr_max |
| PARAM_VALUE | 0 | msg->data_len | 0-1 |
| PARAM_VALUE | 0 | msg->destructor | 172217845709488128 |
| PARAM_VALUE | 0 | msg->sk | 4096-ptr_max |
| PARAM_VALUE | 1 | devlink | 4096-ptr_max |
| PARAM_VALUE | 1 | devlink->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | devlink->lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 1 | devlink->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 1 | devlink->lock.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 1 | devlink->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | devlink->ops->sb_pool_get | 0,4096-ptr_max |
| PARAM_VALUE | 1 | devlink->ops->sb_port_pool_get | 0,5080524251109040128,5500329137182081024,8058848025358356480 |
| PARAM_VALUE | 1 | devlink->ops->sb_tc_pool_bind_get | 0,557608487823060992,7803434078078054400,8622157503094607872 |
| PARAM_VALUE | 1 | devlink->ops->selftest_check | 0,8032679069814992896 |
| PARAM_VALUE | 2 | trap_item | 4096-ptr_max |
| PARAM_VALUE | 3 | cmd | 63 |
| PARAM_VALUE | 6 | flags | 2,34 |
| BUF_SIZE | 0 | msg | (-1)-s32max |
| BUF_SIZE | 0 | msg | (-1)-s32max |
| CAPPED_DATA | 0 | msg->data | 1 |
| CAPPED_DATA | 0 | msg->sk->__sk_common.skc_net.net | 1 |
| CAPPED_DATA | 1 | devlink->_net.net | 1 |
| CAPPED_DATA | 1 | &devlink->trap_list | 1 |
| CAPPED_DATA | 2 | &trap_item->list | 1 |
| DATA_SOURCE | 0 | msg | $0 |
| DATA_SOURCE | 1 | devlink | $1 |
| DATA_SOURCE | 6 | flags | $3 |
| HARD_MAX | 6 | flags | 34 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &nlk->nl_cb_mutex | ||
| HALF_LOCKED2 | 1 | &devlink->lock | |
| TYPE_LOCK | (struct netlink_sock)->nl_cb_mutex |
net/devlink/trap.c devlink_trap_notify() -> devlink_nl_trap_fill()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | msg | 4096-ptr_max |
| PARAM_VALUE | 1 | devlink | 4096-ptr_max |
| PARAM_VALUE | 1 | devlink->ops->reload_down | 0,4096-ptr_max |
| PARAM_VALUE | 1 | devlink->ops->reload_up | 0,4096-ptr_max |
| PARAM_VALUE | 1 | devlink->ops->trap_action_set | 0,262488898109276160,1231087875314417664,2819781707232804864,3957294255593287680,5660707409600446464 |
| PARAM_VALUE | 1 | devlink->ops->trap_fini | 0,4096-ptr_max |
| PARAM_VALUE | 1 | devlink->ops->trap_group_init | 0,4370573782860898304 |
| PARAM_VALUE | 1 | devlink->ops->trap_init | 0,621084343245131776,820864369514713088,1114326007562944512,8379681212193501184,8548560371378245632 |
| PARAM_VALUE | 2 | trap_item | 4096-ptr_max |
| PARAM_VALUE | 3 | cmd | 63-64 |
| PARAM_VALUE | 4 | portid | 0 |
| PARAM_VALUE | 5 | seq | 0 |
| PARAM_VALUE | 6 | flags | 0 |
| BUF_SIZE | 0 | msg | 0-s32max |
| BUF_SIZE | 0 | msg | 0-s32max |
| BUF_SIZE | 1 | devlink->_net.net | (-1),10624 |
| BUF_SIZE | 2 | trap_item | (-1),56 |
| BUF_SIZE | 2 | trap_item | (-1),56 |
| BUF_SIZE | 2 | trap_item->priv | (-1),2528 |
| BUF_SIZE | 2 | trap_item->stats | (-1),16 |
| CAPPED_DATA | 1 | devlink | 1 |
| CAPPED_DATA | 1 | devlink->_net.net | 1 |
| DATA_SOURCE | 0 | msg | r nlmsg_new |
| DATA_SOURCE | 1 | devlink | $0 |
| DATA_SOURCE | 2 | trap_item | $1 |
| DATA_SOURCE | 3 | cmd | $2 |
| HARD_MAX | 3 | cmd | 64 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | 1 | &devlink->lock |