Quentin Monnet | 49eb7ab | 2019-01-17 15:27:50 +0000 | [diff] [blame] | 1 | =============== |
| 2 | bpftool-feature |
| 3 | =============== |
| 4 | ------------------------------------------------------------------------------- |
| 5 | tool for inspection of eBPF-related parameters for Linux kernel or net device |
| 6 | ------------------------------------------------------------------------------- |
| 7 | |
| 8 | :Manual section: 8 |
| 9 | |
| 10 | SYNOPSIS |
| 11 | ======== |
| 12 | |
| 13 | **bpftool** [*OPTIONS*] **feature** *COMMAND* |
| 14 | |
| 15 | *OPTIONS* := { { **-j** | **--json** } [{ **-p** | **--pretty** }] } |
| 16 | |
| 17 | *COMMANDS* := { **probe** | **help** } |
| 18 | |
| 19 | MAP COMMANDS |
| 20 | ============= |
| 21 | |
| 22 | | **bpftool** **feature probe** [**kernel**] |
| 23 | | **bpftool** **feature help** |
| 24 | |
| 25 | DESCRIPTION |
| 26 | =========== |
| 27 | **bpftool feature probe** [**kernel**] |
| 28 | Probe the running kernel and dump a number of eBPF-related |
| 29 | parameters, such as availability of the **bpf()** system call. |
| 30 | |
| 31 | Keyword **kernel** can be omitted. |
| 32 | |
Quentin Monnet | 2d3ea5e | 2019-01-17 15:27:55 +0000 | [diff] [blame^] | 33 | Note that when probed, some eBPF helpers (e.g. |
| 34 | **bpf_trace_printk**\ () or **bpf_probe_write_user**\ ()) may |
| 35 | print warnings to kernel logs. |
| 36 | |
Quentin Monnet | 49eb7ab | 2019-01-17 15:27:50 +0000 | [diff] [blame] | 37 | **bpftool feature help** |
| 38 | Print short help message. |
| 39 | |
| 40 | OPTIONS |
| 41 | ======= |
| 42 | -h, --help |
| 43 | Print short generic help message (similar to **bpftool help**). |
| 44 | |
| 45 | -v, --version |
| 46 | Print version number (similar to **bpftool version**). |
| 47 | |
| 48 | -j, --json |
| 49 | Generate JSON output. For commands that cannot produce JSON, this |
| 50 | option has no effect. |
| 51 | |
| 52 | -p, --pretty |
| 53 | Generate human-readable JSON output. Implies **-j**. |
| 54 | |
| 55 | SEE ALSO |
| 56 | ======== |
| 57 | **bpf**\ (2), |
| 58 | **bpf-helpers**\ (7), |
| 59 | **bpftool**\ (8), |
| 60 | **bpftool-prog**\ (8), |
| 61 | **bpftool-map**\ (8), |
| 62 | **bpftool-cgroup**\ (8), |
| 63 | **bpftool-net**\ (8), |
| 64 | **bpftool-perf**\ (8) |