summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorAmery Hung <ameryhung@gmail.com>2026-07-14 23:40:43 -0700
committerKumar Kartikeya Dwivedi <memxor@gmail.com>2026-07-15 11:00:46 +0200
commit77a4974c17493b0e0bcd5010dc2ec9ad749d1a07 (patch)
treeba5595f9c7071a9dd87e0acc714cfd701560b051 /tools/perf/scripts/python/bin
parent92ec8b1b6b24381611600162536b8b5b6a9e7323 (diff)
bpf: Pass argno to callees in check_func_arg() instead of argno_from_reg(regno)
check_func_arg() only ever handles register arguments (the caller loops over the first MAX_BPF_FUNC_REG_ARGS arguments), so a single argno_t built from the register number identifies the argument for every callee. Remove the duplicated argno_from_reg() calls to simplify check_func_arg(). 'regno' is still kept for the few places that need the raw register number directly (register reads, verbose R%d messages) and for referring to the neighbouring size/memory argument in the ARG_CONST_SIZE{,_OR_ZERO} cases. No functional change intended. Suggested-by: Eduard Zingerman <eddyz87@gmail.com> Signed-off-by: Amery Hung <ameryhung@gmail.com> Link: https://lore.kernel.org/bpf/20260715064047.1793790-4-ameryhung@gmail.com Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions