Skip to content

Commit 8cec9ce

Browse files
committed
doc: eBPF LLVM disassemble support
This section need more love... but it is a start, Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
1 parent 0b31532 commit 8cec9ce

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

kernel/Documentation/bpf/troubleshooting.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,20 @@ program sections, uses the maps section and relocation section (here
6060
point to the correct map (which gets created during parsing of the
6161
maps section, via standard bpf-syscall bpf_create_map).
6262

63+
LLVM disassemble support
64+
------------------------
65+
66+
.. TODO:: Document what LLVM version this "-S" option got added
67+
68+
In newer versions of LLVM, the tool ``llvm-objdump``, supports showing
69+
section names, asm code and original C code, if compiled with ``-g``. ::
70+
71+
llvm-objdump -S prog_kern.o
72+
73+
.. TODO:: What does the option -no-show-raw-insn do?
74+
75+
Until this section is improved, look at mailing list response:
76+
https://www.spinics.net/lists/netdev/msg407045.html
6377

6478
Extracting eBPF-JIT code
6579
========================

0 commit comments

Comments
 (0)