diff options
| author | Shakeel Butt <[email protected]> | 2024-05-01 10:26:17 -0700 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-05-07 10:37:00 -0700 |
| commit | a94032b35e5f97dc1023030d92998418c9feb27b (patch) | |
| tree | b917fa1cd19bdce9453d0ff4d78c7af8645aa8d4 /tools/perf/scripts/python | |
| parent | acb5fe2f1aff090ff3d32328f3028c9fb72453ec (diff) | |
memcg: use proper type for mod_memcg_state
The memcg stats update functions can take arbitrary integer but the only
input which make sense is enum memcg_stat_item and we don't want these
functions to be called with arbitrary integer, so replace the parameter
type with enum memcg_stat_item and compiler will be able to warn if memcg
stat update functions are called with incorrect index value.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Shakeel Butt <[email protected]>
Reviewed-by: T.J. Mercier <[email protected]>
Reviewed-by: Roman Gushchin <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Muchun Song <[email protected]>
Cc: Yosry Ahmed <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions