mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 01:13:11 +00:00
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]>
13 lines
265 B
C
13 lines
265 B
C
/* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
|
|
|
|
#ifndef __DISASM_HELPERS_H
|
|
#define __DISASM_HELPERS_H
|
|
|
|
#include <stdlib.h>
|
|
|
|
struct bpf_insn;
|
|
|
|
struct bpf_insn *disasm_insn(struct bpf_insn *insn, char *buf, size_t buf_sz);
|
|
|
|
#endif /* __DISASM_HELPERS_H */
|