summaryrefslogtreecommitdiff
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <andrii@kernel.org>2024-08-13 23:34:09 +0300
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>2024-09-25 14:10:38 +0300
commit10cdb82aa77f313dcfe947a17f7fc12c5affb38e (patch)
tree335925a98652d17945f7a3d1c4b6ec49701f31a5 /lib/debugobjects.c
parentda3ea35007d0af457a0afc87e84fddaebc4e0b63 (diff)
downloadlinux-10cdb82aa77f313dcfe947a17f7fc12c5affb38e.tar.xz
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 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions