Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
fs/resctrl/monitor.c rdtgroup_alloc_assign_cntr() -> rdtgroup_assign_cntr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | r | 4096-ptr_max |
| PARAM_VALUE | 0 | r->mon.num_mbm_cntrs | 1-s32max |
| PARAM_VALUE | 5 | cntr_id | 0-s32max |
| PARAM_VALUE | 6 | assign | 1 |
| BUF_SIZE | 0 | r | (-1),136 |
| BUF_SIZE | 0 | r | (-1),136 |
| CAPPED_DATA | 5 | cntr_id | 1 |
| DATA_SOURCE | 0 | r | $0 |
| DATA_SOURCE | 1 | d | $1 |
| DATA_SOURCE | 5 | cntr_id | r mbm_cntr_alloc |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | global &rdtgroup_mutex | ||
| HALF_LOCKED2 | &of->mutex |
fs/resctrl/monitor.c rdtgroup_free_unassign_cntr() -> rdtgroup_assign_cntr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | r | 4096-ptr_max |
| PARAM_VALUE | 0 | r->mon.mbm_cntr_assignable | 1 |
| PARAM_VALUE | 0 | r->mon.num_mbm_cntrs | 1-s32max |
| PARAM_VALUE | 2 | evtid | 2-3 |
| PARAM_VALUE | 5 | cntr_id | 0-s32max |
| PARAM_VALUE | 6 | assign | 0 |
| BUF_SIZE | 0 | r | (-1),136 |
| BUF_SIZE | 0 | r | (-1),136 |
| CAPPED_DATA | 2 | evtid | 1 |
| CAPPED_DATA | 5 | cntr_id | 1 |
| DATA_SOURCE | 0 | r | $0 |
| DATA_SOURCE | 1 | d | $1 |
| DATA_SOURCE | 5 | cntr_id | r mbm_cntr_get |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | global &rdtgroup_mutex | ||
| HALF_LOCKED2 | &of->mutex |
fs/resctrl/monitor.c rdtgroup_update_cntr_event() -> rdtgroup_assign_cntr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | r | 4096-ptr_max |
| PARAM_VALUE | 0 | r->mon.mbm_cntr_assignable | 1 |
| PARAM_VALUE | 0 | r->mon.num_mbm_cntrs | 1-s32max |
| PARAM_VALUE | 2 | evtid | 2-3 |
| PARAM_VALUE | 5 | cntr_id | 0-s32max |
| PARAM_VALUE | 6 | assign | 1 |
| BUF_SIZE | 0 | r | (-1),136 |
| BUF_SIZE | 0 | r | (-1),136 |
| CAPPED_DATA | 2 | evtid | 1 |
| CAPPED_DATA | 5 | cntr_id | 1 |
| DATA_SOURCE | 0 | r | $0 |
| DATA_SOURCE | 2 | evtid | $2 |
| DATA_SOURCE | 5 | cntr_id | r mbm_cntr_get |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &of->mutex | ||
| LOCK2 | global &rdtgroup_mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |