Skip to content

Commit

Permalink
docs: add more links to Cilium's reference guide
Browse files Browse the repository at this point in the history
Daniels desc is much better and more complete than mine.
Point people in that direction.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
  • Loading branch information
netoptimizer committed May 3, 2017
1 parent ddae7c4 commit 3d1cc0e
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions kernel/Documentation/bpf/troubleshooting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ JITs that are supported by the kernel via::
arch/sparc/Kconfig: select HAVE_CBPF_JIT
arch/x86/Kconfig: select HAVE_EBPF_JIT if X86_64

Also see Cilium `JIT`_ section and `BPF sysctl`_ section.

.. _JIT: http://cilium.readthedocs.io/en/latest/bpf/#jit

.. _BPF sysctl: http://cilium.readthedocs.io/en/latest/bpf/#bpf-sysctls.

ELF binary
==========
Expand Down Expand Up @@ -95,12 +100,17 @@ section names, asm code and original C code, if compiled with ``-g``. ::

.. 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
See Cilium `Toolchain LLVM`_ section for more details.

.. _Toolchain LLVM: http://cilium.readthedocs.io/en/latest/bpf/#jit-debugging

Extracting eBPF-JIT code
========================

Also see Cilium `JIT Debugging`_.

.. _JIT Debugging: http://cilium.readthedocs.io/en/latest/bpf/#jit-debugging

For debugging/seeing the generated JIT code, is it possible to change
this proc sysctl::

Expand Down

0 comments on commit 3d1cc0e

Please sign in to comment.