diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2022-12-07 11:55:34 -0800 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2022-12-07 22:58:41 +0100 |
commit | dcb2288b1fd9a8cdf2f3b8c0c7b3763346ef515f (patch) | |
tree | 28ea7ba7bbc0febb78c45291636701a2117d5f57 /tools/testing | |
parent | 0a6ea1ce8260f08079b0940350a21e4ad95c2378 (diff) |
bpf: Remove unused insn_cnt argument from visit_[func_call_]insn()
Number of total instructions in BPF program (including subprogs) can and
is accessed from env->prog->len. visit_func_call_insn() doesn't do any
checks against insn_cnt anymore, relying on push_insn() to do this check
internally. So remove unnecessary insn_cnt input argument from
visit_func_call_insn() and visit_insn() functions.
Suggested-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20221207195534.2866030-1-andrii@kernel.org
Diffstat (limited to 'tools/testing')
0 files changed, 0 insertions, 0 deletions