Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 2 files as a function:
Referenced in 6 files:
- include/linux/memcontrol.h
- include/trace/events/memcg.h, line 70
- mm/folio.c
- mm/memcontrol-v1.c
- mm/migrate.c, line 2772
- mm/vmscan.c, line 2144
Smatch caller information:
mm/huge_memory.c count_memcg_events_mm() -> count_memcg_events()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | memcg | 1-u64max |
| PARAM_VALUE | 1 | idx | 70 |
| PARAM_VALUE | 2 | count | 1 |
| DATA_SOURCE | 1 | idx | $1 |
| DATA_SOURCE | 2 | count | $2 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | rcu_read | ||
| LOCK2 | vmf->ptl | ||
| HALF_LOCKED2 | &mm->mmap_lock |
fs/dax.c count_memcg_events_mm() -> count_memcg_events()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | memcg | 1-u64max |
| PARAM_VALUE | 1 | idx | 24 |
| PARAM_VALUE | 2 | count | 1 |
| DATA_SOURCE | 1 | idx | $1 |
| DATA_SOURCE | 2 | count | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | &inode->i_mapping->invalidate_lock | ||
| HALF_LOCKED2 | &mapping->invalidate_lock |
mm/page_io.c count_memcg_folio_events() -> count_memcg_events()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | idx | 2-3,90 |
| PARAM_VALUE | 2 | count | 0-u32max |
| DATA_SOURCE | 0 | memcg | r folio_memcg |
| DATA_SOURCE | 1 | idx | $1 |
| DATA_SOURCE | 2 | count | $2 |
| HARD_MAX | 1 | idx | 90 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | rcu_read |
mm/page_io.c count_objcg_events() -> count_memcg_events()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | idx | 101-102 |
| PARAM_VALUE | 2 | count | 0-s32max,18446744071562067968-u64max |
| CAPPED_DATA | 2 | count | 1 |
| CAPPED_DATA | 2 | count | 1 |
| DATA_SOURCE | 1 | idx | $1 |
| DATA_SOURCE | 2 | count | $2 |
| HARD_MAX | 1 | idx | 102 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | rcu_read |
mm/zswap.c count_objcg_events() -> count_memcg_events()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | idx | 105-107 |
| PARAM_VALUE | 2 | count | 0-u32max |
| CAPPED_DATA | 2 | count | 1 |
| CAPPED_DATA | 2 | count | 1 |
| DATA_SOURCE | 1 | idx | $1 |
| DATA_SOURCE | 2 | count | $2 |
| HARD_MAX | 1 | idx | 107 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | rcu_read |
mm/shmem.c count_memcg_events_mm() -> count_memcg_events()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | memcg | 1-u64max |
| PARAM_VALUE | 1 | idx | 24 |
| PARAM_VALUE | 2 | count | 1 |
| DATA_SOURCE | 1 | idx | $1 |
| DATA_SOURCE | 2 | count | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | &inode->i_rwsem |
mm/shmem.c count_memcg_folio_events() -> count_memcg_events()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | idx | 91 |
| PARAM_VALUE | 2 | count | 1 |
| DATA_SOURCE | 0 | memcg | r folio_memcg |
| DATA_SOURCE | 1 | idx | $1 |
| DATA_SOURCE | 2 | count | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | rcu_read |
mm/folio.c lru_activate() -> count_memcg_events()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | idx | 20 |
| PARAM_VALUE | 2 | count | 0-u32max |
| DATA_SOURCE | 2 | count | r folio_nr_pages |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | rcu_read |
mm/folio.c lru_deactivate() -> count_memcg_events()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | idx | 21 |
| PARAM_VALUE | 2 | count | 0-u32max |
| DATA_SOURCE | 2 | count | r folio_nr_pages |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | rcu_read |
mm/folio.c lru_deactivate_file() -> count_memcg_events()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | idx | 21 |
| PARAM_VALUE | 2 | count | 0-u32max |
| DATA_SOURCE | 2 | count | r folio_nr_pages |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | rcu_read |
mm/folio.c lru_lazyfree() -> count_memcg_events()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | idx | 22 |
| PARAM_VALUE | 2 | count | 0-u32max |
| DATA_SOURCE | 2 | count | r folio_nr_pages |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | rcu_read |
mm/filemap.c count_memcg_events_mm() -> count_memcg_events()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | memcg | 1-u64max |
| PARAM_VALUE | 1 | idx | 24 |
| PARAM_VALUE | 2 | count | 1 |
| DATA_SOURCE | 1 | idx | $1 |
| DATA_SOURCE | 2 | count | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | rcu_read |
mm/migrate_device.c count_memcg_events_mm() -> count_memcg_events()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | memcg | 1-u64max |
| PARAM_VALUE | 1 | idx | 70 |
| PARAM_VALUE | 2 | count | 1 |
| DATA_SOURCE | 1 | idx | $1 |
| DATA_SOURCE | 2 | count | $2 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | &drm->dmem->mutex |
mm/vmscan.c count_memcg_folio_events() -> count_memcg_events()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | idx | 20,25,91 |
| DATA_SOURCE | 0 | memcg | r folio_memcg |
| DATA_SOURCE | 1 | idx | $1 |
| DATA_SOURCE | 2 | count | $2 |
| HARD_MAX | 1 | idx | 91 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | rcu_read |
mm/vmscan.c shrink_active_list() -> count_memcg_events()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | idx | 21 |
| DATA_SOURCE | 2 | count | r move_folios_to_lru |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
mm/memory.c count_memcg_events_mm() -> count_memcg_events()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | memcg | 1-u64max |
| PARAM_VALUE | 1 | idx | 23-24 |
| PARAM_VALUE | 2 | count | 1 |
| DATA_SOURCE | 1 | idx | $1 |
| DATA_SOURCE | 2 | count | $2 |
| HARD_MAX | 1 | idx | 24 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | &mm->mmap_lock |
mm/memory.c count_memcg_folio_events() -> count_memcg_events()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | idx | 42 |
| PARAM_VALUE | 2 | count | 1 |
| DATA_SOURCE | 0 | memcg | r folio_memcg |
| DATA_SOURCE | 1 | idx | $1 |
| DATA_SOURCE | 2 | count | $2 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | &mm->mmap_lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | vmf->ptl |
mm/mempolicy.c count_memcg_events_mm() -> count_memcg_events()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | memcg | 1-u64max |
| PARAM_VALUE | 1 | idx | 40 |
| PARAM_VALUE | 2 | count | 1-9223372036854775807 |
| DATA_SOURCE | 1 | idx | $1 |
| DATA_SOURCE | 2 | count | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &mm->mmap_lock | ||
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | rcu | ||
| TYPE_LOCK | (struct mm_struct)->mmap_lock |
mm/migrate.c migrate_misplaced_folio() -> count_memcg_events()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | memcg | 0,4096-ptr_max |
| PARAM_VALUE | 1 | idx | 44 |
| PARAM_VALUE | 2 | count | 1-u32max |
| DATA_SOURCE | 0 | memcg | r get_mem_cgroup_from_folio |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &mm->mmap_lock | ||
| HALF_LOCKED2 | &pool->lock |
mm/khugepaged.c count_memcg_folio_events() -> count_memcg_events()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | idx | 73 |
| PARAM_VALUE | 2 | count | 1 |
| DATA_SOURCE | 0 | memcg | r folio_memcg |
| DATA_SOURCE | 1 | idx | $1 |
| DATA_SOURCE | 2 | count | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | &mm->mmap_lock |
mm/memcontrol-v1.c memcg1_charge_statistics() -> count_memcg_events()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | idx | 0 |
| PARAM_VALUE | 2 | count | 1 |
| DATA_SOURCE | 0 | memcg | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | irq | ||
| HALF_LOCKED2 | rcu_read |
mm/memcontrol-v1.c memcg1_charge_statistics() -> count_memcg_events()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | idx | 1 |
| PARAM_VALUE | 2 | count | 1 |
| DATA_SOURCE | 0 | memcg | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | irq | ||
| HALF_LOCKED2 | rcu_read |
mm/memcontrol-v1.c memcg1_uncharge_batch() -> count_memcg_events()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | idx | 1 |
| DATA_SOURCE | 0 | memcg | $0 |
| DATA_SOURCE | 2 | count | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | flags | ||
| LOCK2 | rcu_read |