summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorShakeel Butt <shakeel.butt@linux.dev>2025-04-03 18:39:11 -0700
committerAndrew Morton <akpm@linux-foundation.org>2025-05-11 17:48:11 -0700
commit42a1910cfd23c46307a000a81127e02df247284c (patch)
tree88030ee7778d3fee3c89f05e9491323f10c34a1a /tools/perf/scripts/python/event_analyzing_sample.py
parentae51c775aa2b1fd4fbaf781740ec8762292bec3a (diff)
downloadlinux-42a1910cfd23c46307a000a81127e02df247284c.tar.gz
linux-42a1910cfd23c46307a000a81127e02df247284c.zip
memcg: use __mod_memcg_state in drain_obj_stock
For non-PREEMPT_RT kernels, drain_obj_stock() is always called with irq disabled, so we can use __mod_memcg_state() instead of mod_memcg_state(). For PREEMPT_RT, we need to add memcg_stats_[un]lock in __mod_memcg_state(). Link: https://lkml.kernel.org/r/20250404013913.1663035-8-shakeel.butt@linux.dev Signed-off-by: Shakeel Butt <shakeel.butt@linux.dev> Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Reviewed-by: Roman Gushchin <roman.gushchin@linux.dev> Acked-by: Vlastimil Babka <vbabka@suse.cz> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Michal Hocko <mhocko@kernel.org> Cc: Muchun Song <muchun.song@linux.dev> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions