1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/tools/bpf/bpftool/Documentation
Daniel Borkmann bec981a4ad bpftool: Extend net dump with netkit progs
Add support to dump BPF programs on netkit via bpftool. This includes both
the BPF link and attach ops programs. Dumped information contain the attach
location, function entry name, program ID and link ID when applicable.

Example with tc BPF link:

  # ./bpftool net
  xdp:

  tc:
  nk1(22) netkit/peer tc1 prog_id 43 link_id 12

  [...]

Example with json dump:

  # ./bpftool net --json | jq
  [
    {
      "xdp": [],
      "tc": [
        {
          "devname": "nk1",
          "ifindex": 18,
          "kind": "netkit/primary",
          "name": "tc1",
          "prog_id": 29,
          "prog_flags": [],
          "link_id": 8,
          "link_flags": []
        }
      ],
      "flow_dissector": [],
      "netfilter": []
    }
  ]

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Quentin Monnet <quentin@isovalent.com>
Acked-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://lore.kernel.org/r/20231024214904.29825-6-daniel@iogearbox.net
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
2023-10-24 16:07:32 -07:00
..
bpftool-btf.rst bpftool: Update doc (use susbtitutions) and test_bpftool_synctypes.py 2021-11-16 13:56:22 +01:00
bpftool-cgroup.rst bpftool: Add support for cgroup unix socket address hooks 2023-10-11 17:27:55 -07:00
bpftool-feature.rst bpftool: Rename "bpftool feature list" into "... feature list_builtins" 2022-07-05 11:53:54 +02:00
bpftool-gen.rst bpf: Replace deprecated -target with --target= for Clang 2023-06-29 15:46:17 +02:00
bpftool-iter.rst bpftool: Update doc (use susbtitutions) and test_bpftool_synctypes.py 2021-11-16 13:56:22 +01:00
bpftool-link.rst bpftool: Update doc (use susbtitutions) and test_bpftool_synctypes.py 2021-11-16 13:56:22 +01:00
bpftool-map.rst bpftool: Specify XDP Hints ifname when loading program 2023-05-23 16:55:06 +02:00
bpftool-net.rst bpftool: Extend net dump with netkit progs 2023-10-24 16:07:32 -07:00
bpftool-perf.rst bpftool: Update doc (use susbtitutions) and test_bpftool_synctypes.py 2021-11-16 13:56:22 +01:00
bpftool-prog.rst bpftool: Add support for cgroup unix socket address hooks 2023-10-11 17:27:55 -07:00
bpftool-struct_ops.rst bpftool: Update doc to explain struct_ops register subcommand. 2023-04-21 11:10:10 -07:00
bpftool.rst bpftool: man: Add missing top level docs 2022-03-15 15:51:41 -07:00
common_options.rst bpftool: remove support of --legacy option for bpftool 2022-11-20 16:17:46 -08:00
Makefile bpftool: Add SPDX tags to RST documentation files 2021-11-16 13:56:22 +01:00
substitutions.rst bpftool: remove support of --legacy option for bpftool 2022-11-20 16:17:46 -08:00