diff options
author | Eduard Zingerman <[email protected]> | 2024-07-22 16:38:38 -0700 |
---|---|---|
committer | Andrii Nakryiko <[email protected]> | 2024-07-29 15:05:05 -0700 |
commit | 424ebaa3678b0d7f653dffb08eae90424740e0f4 (patch) | |
tree | aef26d337e43594e74ff8c45d9e0f44b2f0c297d /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | 91b7fbf3936f5c27d1673264dc24a713290e2165 (diff) |
selftests/bpf: extract utility function for BPF disassembly
struct bpf_insn *disasm_insn(struct bpf_insn *insn, char *buf, size_t buf_sz);
Disassembles instruction 'insn' to a text buffer 'buf'.
Removes insn->code hex prefix added by kernel disassembly routine.
Returns a pointer to the next instruction
(increments insn by either 1 or 2).
Acked-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Eduard Zingerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions