summaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorSuren Baghdasaryan <surenb@google.com>2024-12-27 00:16:39 +0300
committerAndrew Morton <akpm@linux-foundation.org>2025-01-16 08:15:43 +0300
commit05c82ee363f64c64b87a0cfd744298e9333475f5 (patch)
tree4fc27c669a22bd8e3aaee5898a51d57918a20484 /tools/perf/util/scripting-engines/trace-event-python.c
parent9726891fe753910b8d7db712781438ad229091b3 (diff)
downloadlinux-05c82ee363f64c64b87a0cfd744298e9333475f5.tar.xz
alloc_tag: skip pgalloc_tag_swap if profiling is disabled
When memory allocation profiling is disabled, there is no need to swap allocation tags during migration. Skip it to avoid unnecessary overhead. Once I added these checks, the overhead of the mode when memory profiling is enabled but turned off went down by about 50%. Link: https://lkml.kernel.org/r/20241226211639.1357704-2-surenb@google.com Fixes: e0a955bf7f61 ("mm/codetag: add pgalloc_tag_copy()") Signed-off-by: Suren Baghdasaryan <surenb@google.com> Cc: David Wang <00107082@163.com> Cc: Kent Overstreet <kent.overstreet@linux.dev> Cc: Yu Zhao <yuzhao@google.com> Cc: Zhenhua Huang <quic_zhenhuah@quicinc.com> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions