diff options
author | Yonghong Song <[email protected]> | 2019-02-05 21:38:30 -0800 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2019-02-05 22:07:03 -0800 |
commit | f7748e2952387f1a67db3bc618050149427420c9 (patch) | |
tree | 47c27ec3ea03b2d914e6e813e19c3a67757e9003 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | a6c109a6b746509f5030d20d57b35e566cf3a04f (diff) |
tools/bpf: silence a libbpf unnecessary warning
Commit 96408c43447a ("tools/bpf: implement libbpf
btf__get_map_kv_tids() API function") refactored
function bpf_map_find_btf_info() and moved bulk of
implementation into btf.c as btf__get_map_kv_tids().
This change introduced a bug such that test_btf will
print out the following warning although the test passed:
BTF libbpf test[2] (test_btf_nokv.o): libbpf: map:btf_map
container_name:____btf_map_btf_map cannot be found
in BTF. Missing BPF_ANNOTATE_KV_PAIR?
Previously, the error message is guarded with pr_debug().
Commit 96408c43447a changed it to pr_warning() and
hence caused the warning.
Restoring to pr_debug() for the message fixed the issue.
Fixes: 96408c43447a ("tools/bpf: implement libbpf btf__get_map_kv_tids() API function")
Signed-off-by: Yonghong Song <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions