diff options
| author | Jiri Olsa <[email protected]> | 2023-01-20 13:21:48 +0100 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2023-01-20 08:19:56 -0800 |
| commit | 74bc3a5acc82f020d2e126f56c535d02d1e74e37 (patch) | |
| tree | 54751e4c47f82e1aa7942cd875b8faf269731ef7 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace | |
| parent | 2eecf81e149cd718754f52a4b688b237d2a8244d (diff) | |
bpf: Add missing btf_put to register_btf_id_dtor_kfuncs
We take the BTF reference before we register dtors and we need
to put it back when it's done.
We probably won't se a problem with kernel BTF, but module BTF
would stay loaded (because of the extra ref) even when its module
is removed.
Cc: Kumar Kartikeya Dwivedi <[email protected]>
Fixes: 5ce937d613a4 ("bpf: Populate pairs of btf_id and destructor kfunc in btf")
Acked-by: Kumar Kartikeya Dwivedi <[email protected]>
Signed-off-by: Jiri Olsa <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace')
0 files changed, 0 insertions, 0 deletions