]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf ftrace: Remove an unnecessary condition check in BPF
authorNamhyung Kim <namhyung@kernel.org>
Thu, 27 Feb 2025 19:12:22 +0000 (11:12 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 13 Mar 2025 07:18:10 +0000 (00:18 -0700)
commit79056b3fe8878fa77ea8e9cbe062e428d2845982
tree12dc795fbfabaf418945ed24f4356479913174dc
parent9c3344141866b83e1e339ab2dc2006e03c6e6cf2
perf ftrace: Remove an unnecessary condition check in BPF

The bucket_num is set based on the {max,min}_latency already in
cmd_ftrace(), so no need to check it again in BPF.  Also I found
that it didn't pass the max_latency to BPF. :)

No functional changes intended.

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