diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2024-08-13 13:34:09 -0700 |
---|---|---|
committer | Masami Hiramatsu (Google) <mhiramat@kernel.org> | 2024-09-25 20:10:38 +0900 |
commit | 10cdb82aa77f313dcfe947a17f7fc12c5affb38e (patch) | |
tree | 335925a98652d17945f7a3d1c4b6ec49701f31a5 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | da3ea35007d0af457a0afc87e84fddaebc4e0b63 (diff) |
uprobes: turn trace_uprobe's nhit counter to be per-CPU one
trace_uprobe->nhit counter is not incremented atomically, so its value
is questionable in when uprobe is hit on multiple CPUs simultaneously.
Also, doing this shared counter increment across many CPUs causes heavy
cache line bouncing, limiting uprobe/uretprobe performance scaling with
number of CPUs.
Solve both problems by making this a per-CPU counter.
Link: https://lore.kernel.org/all/20240813203409.3985398-1-andrii@kernel.org/
Reviewed-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions