]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf ftrace: Use atomic inc to update histogram in BPF
authorNamhyung Kim <namhyung@kernel.org>
Thu, 27 Feb 2025 19:12:23 +0000 (11:12 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 13 Mar 2025 07:18:10 +0000 (00:18 -0700)
commite1cde2d5e92f6728a022754650b9cb1e38358d50
tree82d20a9ab544e34252064dd621af199fc2badc82
parent79056b3fe8878fa77ea8e9cbe062e428d2845982
perf ftrace: Use atomic inc to update histogram in BPF

It should use an atomic instruction to update even if the histogram is
keyed by delta as it's also used for stats.

Cc: Gabriele Monaco <gmonaco@redhat.com>
Link: https://lore.kernel.org/r/20250227191223.1288473-3-namhyung@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/bpf_skel/func_latency.bpf.c