diff options
author | Stanislav Fomichev <[email protected]> | 2022-01-25 16:13:40 -0800 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2022-01-25 19:27:28 -0800 |
commit | c446fdacb10dcb3b9a9ed3b91d91e72d71d94b03 (patch) | |
tree | 86d43c751f9b7a7114cbfe7f0f4aeec68db461cd /tools/perf/scripts/python/net_dropmonitor.py | |
parent | fc1ca95585aa4f51e9776f01dffedc1591458c31 (diff) |
bpf: fix register_btf_kfunc_id_set for !CONFIG_DEBUG_INFO_BTF
Commit dee872e124e8 ("bpf: Populate kfunc BTF ID sets in struct btf")
breaks loading of some modules when CONFIG_DEBUG_INFO_BTF is not set.
register_btf_kfunc_id_set returns -ENOENT to the callers when
there is no module btf. Let's return 0 (success) instead to let
those modules work in !CONFIG_DEBUG_INFO_BTF cases.
Acked-by: Kumar Kartikeya Dwivedi <[email protected]>
Fixes: dee872e124e8 ("bpf: Populate kfunc BTF ID sets in struct btf")
Signed-off-by: Stanislav Fomichev <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions