Defined in 2 files as a function:
- include/linux/percpu_counter.h, line 92 (as a function)
- include/linux/percpu_counter.h, line 220 (as a function)
Referenced in 3 files:
Smatch caller information:
ipc/msg.c do_msgsnd() -> percpu_counter_add_local()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fbc | 4096-ptr_max |
| PARAM_VALUE | 1 | amount | 0-4294967295 |
| CAPPED_DATA | 1 | amount | 1 |
| DATA_SOURCE | 1 | amount | $3 |
| PREEMPT_ADD | <- disables preempt | ||
| NOCHECK_CALL | |||
| USER_DATA | 1 | amount | 1-s32max[c] |
| LOCK2 | &msq->q_perm.lock | ||
| LOCK2 | rcu_read | ||
| TYPE_LOCK | (struct kern_ipc_perm)->lock |
ipc/msg.c do_msgsnd() -> percpu_counter_add_local()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fbc | 4096-ptr_max |
| PARAM_VALUE | 1 | amount | 1 |
| PREEMPT_ADD | <- disables preempt | ||
| NOCHECK_CALL | |||
| LOCK2 | &msq->q_perm.lock | ||
| LOCK2 | rcu_read | ||
| TYPE_LOCK | (struct kern_ipc_perm)->lock |
ipc/msg.c percpu_counter_sub_local() -> percpu_counter_add_local()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fbc | 4096-ptr_max |
| PARAM_VALUE | 1 | amount | (-9223372036854775807)-s64max |
| DATA_SOURCE | 0 | fbc | $0 |
| PREEMPT_ADD | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &msq->q_perm.lock | ||
| HALF_LOCKED2 | rcu_read |
fs/nfsd/vfs.c nfsd_stats_io_read_add() -> percpu_counter_add_local()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fbc | 4096-ptr_max |
| PARAM_VALUE | 1 | amount | 0-s64max |
| BUF_SIZE | 0 | fbc | 8112 |
| DATA_SOURCE | 1 | amount | $2 |
| NOCHECK_CALL | |||
| UNITS | 1 | amount | unit_byte |
fs/nfsd/vfs.c nfsd_stats_io_read_add() -> percpu_counter_add_local()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fbc | 4096-ptr_max |
| PARAM_VALUE | 1 | amount | 0-s64max |
| BUF_SIZE | 0 | fbc | 208 |
| DATA_SOURCE | 1 | amount | $2 |
| NOCHECK_CALL | |||
| UNITS | 1 | amount | unit_byte |
fs/nfsd/vfs.c nfsd_stats_io_write_add() -> percpu_counter_add_local()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fbc | 4096-ptr_max |
| BUF_SIZE | 0 | fbc | 8008 |
| DATA_SOURCE | 1 | amount | $2 |
| NOCHECK_CALL |
fs/nfsd/vfs.c nfsd_stats_io_write_add() -> percpu_counter_add_local()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fbc | 4096-ptr_max |
| DATA_SOURCE | 1 | amount | $2 |
| NOCHECK_CALL |
fs/nfsd/nfscache.c nfsd_stats_drc_mem_usage_add() -> percpu_counter_add_local()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fbc | 4096-ptr_max |
| PARAM_VALUE | 1 | amount | 0,4-256 |
| BUF_SIZE | 0 | fbc | 8632 |
| DATA_SOURCE | 1 | amount | $1 |
| BIT_INFO | 1 | amount | 0x0,0x1fc |
| BIT_INFO | 1 | amount | 0x0,0x1fc |
| PREEMPT_ADD | |||
| NOCHECK_CALL | |||
| UNITS | 1 | amount | unit_byte |
| HALF_LOCKED2 | &b->cache_lock |
fs/nfsd/nfscache.c nfsd_stats_rc_hits_inc() -> percpu_counter_add_local()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fbc | 4096-ptr_max |
| PARAM_VALUE | 1 | amount | 1 |
| BUF_SIZE | 0 | fbc | 8528 |
| PREEMPT_ADD | |||
| NOCHECK_CALL | |||
| LOCK2 | &b->cache_lock | ||
| TYPE_LOCK | (struct nfsd_drc_bucket)->cache_lock |
fs/nfsd/nfscache.c nfsd_stats_rc_misses_inc() -> percpu_counter_add_local()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fbc | 4096-ptr_max |
| PARAM_VALUE | 1 | amount | 1 |
| BUF_SIZE | 0 | fbc | 8424 |
| NOCHECK_CALL |
fs/nfsd/nfscache.c nfsd_stats_rc_nocache_inc() -> percpu_counter_add_local()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fbc | 4096-ptr_max |
| PARAM_VALUE | 1 | amount | 1 |
| BUF_SIZE | 0 | fbc | 8320 |
| NOCHECK_CALL |
fs/nfsd/nfscache.c percpu_counter_sub_local() -> percpu_counter_add_local()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fbc | 4096-ptr_max |
| BUF_SIZE | 0 | fbc | 8632 |
| BUF_SIZE | 0 | fbc | 8632 |
| DATA_SOURCE | 0 | fbc | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &b->cache_lock |