Searched hist:"763 af200d6160b2f79f45cbf9a85b8dc6e20f2c7" (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/samples/bpf/ |
H A D | ibumad_user.c | diff 763af200d6160b2f79f45cbf9a85b8dc6e20f2c7 Tue Nov 24 03:03:07 CST 2020 Daniel T. Lee <danieltimlee@gmail.com> samples: bpf: Refactor ibumad program with libbpf
This commit refactors the existing ibumad program with libbpf bpf loader. Attach/detach of Tracepoint bpf programs has been managed with the generic bpf_program__attach() and bpf_link__destroy() from the libbpf.
Also, instead of using the previous BPF MAP definition, this commit refactors ibumad MAP definition with the new BTF-defined MAP format.
To verify that this bpf program works without an infiniband device, try loading ib_umad kernel module and test the program as follows:
# modprobe ib_umad # ./ibumad
Moreover, TRACE_HELPERS has been removed from the Makefile since it is not used on this program.
Signed-off-by: Daniel T. Lee <danieltimlee@gmail.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20201124090310.24374-5-danieltimlee@gmail.com
|
H A D | ibumad_kern.c | diff 763af200d6160b2f79f45cbf9a85b8dc6e20f2c7 Tue Nov 24 03:03:07 CST 2020 Daniel T. Lee <danieltimlee@gmail.com> samples: bpf: Refactor ibumad program with libbpf
This commit refactors the existing ibumad program with libbpf bpf loader. Attach/detach of Tracepoint bpf programs has been managed with the generic bpf_program__attach() and bpf_link__destroy() from the libbpf.
Also, instead of using the previous BPF MAP definition, this commit refactors ibumad MAP definition with the new BTF-defined MAP format.
To verify that this bpf program works without an infiniband device, try loading ib_umad kernel module and test the program as follows:
# modprobe ib_umad # ./ibumad
Moreover, TRACE_HELPERS has been removed from the Makefile since it is not used on this program.
Signed-off-by: Daniel T. Lee <danieltimlee@gmail.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20201124090310.24374-5-danieltimlee@gmail.com
|
H A D | Makefile | diff 763af200d6160b2f79f45cbf9a85b8dc6e20f2c7 Tue Nov 24 03:03:07 CST 2020 Daniel T. Lee <danieltimlee@gmail.com> samples: bpf: Refactor ibumad program with libbpf
This commit refactors the existing ibumad program with libbpf bpf loader. Attach/detach of Tracepoint bpf programs has been managed with the generic bpf_program__attach() and bpf_link__destroy() from the libbpf.
Also, instead of using the previous BPF MAP definition, this commit refactors ibumad MAP definition with the new BTF-defined MAP format.
To verify that this bpf program works without an infiniband device, try loading ib_umad kernel module and test the program as follows:
# modprobe ib_umad # ./ibumad
Moreover, TRACE_HELPERS has been removed from the Makefile since it is not used on this program.
Signed-off-by: Daniel T. Lee <danieltimlee@gmail.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20201124090310.24374-5-danieltimlee@gmail.com
|