diff options
| author | Quentin Monnet <[email protected]> | 2021-07-29 16:20:25 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2021-07-30 00:23:52 +0000 |
| commit | 86f4b7f2578f69284fa782be54e700c42c757897 (patch) | |
| tree | 9944eb0e0bfd66dae5ccbe9d91b8c0beed0ace82 /net/unix/unix_bpf.c | |
| parent | tools: Free BTF objects at various locations (diff) | |
| download | kernel-86f4b7f2578f69284fa782be54e700c42c757897.tar.gz kernel-86f4b7f2578f69284fa782be54e700c42c757897.zip | |
tools: Replace btf__get_from_id() with btf__load_from_kernel_by_id()
Replace the calls to function btf__get_from_id(), which we plan to
deprecate before the library reaches v1.0, with calls to
btf__load_from_kernel_by_id() in tools/ (bpftool, perf, selftests).
Update the surrounding code accordingly (instead of passing a pointer to
the btf struct, get it as a return value from the function).
Signed-off-by: Quentin Monnet <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Acked-by: John Fastabend <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions
