diff options
author | 2021-03-24 18:51:36 -0700 | |
---|---|---|
committer | 2021-03-26 20:41:50 -0700 | |
commit | 34747c4120418143097d4343312a0ca96c986d86 (patch) | |
tree | f6fc4cfaf9e025ecaec86054623b53e583021402 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bpf: Simplify freeing logic in linfo and jited_linfo (diff) | |
download | wireguard-linux-34747c4120418143097d4343312a0ca96c986d86.tar.xz wireguard-linux-34747c4120418143097d4343312a0ca96c986d86.zip |
bpf: Refactor btf_check_func_arg_match
This patch moved the subprog specific logic from
btf_check_func_arg_match() to the new btf_check_subprog_arg_match().
The core logic is left in btf_check_func_arg_match() which
will be reused later to check the kernel function call.
The "if (!btf_type_is_ptr(t))" is checked first to improve the
indentation which will be useful for a later patch.
Some of the "btf_kind_str[]" usages is replaced with the shortcut
"btf_type_str(t)".
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20210325015136.1544504-1-kafai@fb.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions