diff options
author | Andrii Nakryiko <[email protected]> | 2024-08-13 13:34:09 -0700 |
---|---|---|
committer | Masami Hiramatsu (Google) <[email protected]> | 2024-09-25 20:10:38 +0900 |
commit | 10cdb82aa77f313dcfe947a17f7fc12c5affb38e (patch) | |
tree | 335925a98652d17945f7a3d1c4b6ec49701f31a5 /lib/crypto/mpi/mpi-sub-ui.c | |
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/[email protected]/
Reviewed-by: Oleg Nesterov <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Masami Hiramatsu (Google) <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions