Skip to content

Commit

Permalink
doc: eBPF LLVM disassemble support
Browse files Browse the repository at this point in the history
This section need more love... but it is a start,

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
  • Loading branch information
netoptimizer committed Mar 7, 2017
1 parent 0b31532 commit 8cec9ce
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions kernel/Documentation/bpf/troubleshooting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,20 @@ program sections, uses the maps section and relocation section (here
point to the correct map (which gets created during parsing of the
maps section, via standard bpf-syscall bpf_create_map).

LLVM disassemble support
------------------------

.. TODO:: Document what LLVM version this "-S" option got added

In newer versions of LLVM, the tool ``llvm-objdump``, supports showing
section names, asm code and original C code, if compiled with ``-g``. ::

llvm-objdump -S prog_kern.o

.. TODO:: What does the option -no-show-raw-insn do?

Until this section is improved, look at mailing list response:
https://www.spinics.net/lists/netdev/msg407045.html

Extracting eBPF-JIT code
========================
Expand Down

0 comments on commit 8cec9ce

Please sign in to comment.