]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Remove recursion call in btf_struct_access
authorJiri Olsa <jolsa@kernel.org>
Tue, 25 Aug 2020 19:21:16 +0000 (21:21 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 25 Aug 2020 22:37:41 +0000 (15:37 -0700)
commit3086d0f48e9127b25260386abfa5f8133433ee60
treec46799d9c81e5e9622d8b7d19d6e46ad33a1e1de
parentcc0268cde7e54a997522ec2f3b4e9dbaee6edca3
bpf: Remove recursion call in btf_struct_access

Andrii suggested we can simply jump to again label
instead of making recursion call.

Suggested-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20200825192124.710397-7-jolsa@kernel.org
kernel/bpf/btf.c