• Home
  • Raw
  • Download

Lines Matching +full:bpftool +full:-

1 .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 bpftool-btf
6 -------------------------------------------------------------------------------
8 -------------------------------------------------------------------------------
17 **bpftool** [*OPTIONS*] **btf** *COMMAND*
19 *OPTIONS* := { |COMMON_OPTIONS| | { **-B** | **--base-btf** } }
26 | **bpftool** **btf** { **show** | **list** } [**id** *BTF_ID*]
27 | **bpftool** **btf dump** *BTF_SRC* [**format** *FORMAT*]
28 | **bpftool** **btf help**
37 **bpftool btf { show | list }** [**id** *BTF_ID*]
43 Since Linux 5.8 bpftool is able to discover information about
45 objects. On such kernels bpftool will automatically emit this
48 **bpftool btf dump** *BTF_SRC*
66 .BTF section with well-defined BTF binary format data,
70 output format. Raw (**raw**) or C-syntax (**c**) output
73 **bpftool btf help**
80 -B, --base-btf *FILE*
89 module BTF to dump) is passed as a *FILE*, bpftool attempts
96 **# bpftool btf dump id 1226**
151 **$ bpftool btf dump file prog.o**
186 [20] VAR 'struct_global_var' type_id=4, linkage=global-alloc
187 [21] VAR 'global_var' type_id=3, linkage=global-alloc
198 **# bpftool btf dump map id 123 key**
204 **# bpftool btf dump map id 123 value**
210 **# bpftool btf dump map id 123 kv**
217 **# bpftool btf dump map id 123 all**
229 **# bpftool btf dump map id 123**
231 **# bpftool btf dump map pinned /sys/fs/bpf/map_name**
233 **# bpftool btf dump prog id 456**
235 **# bpftool btf dump prog tag b88e0a09b1d9759d**
237 **# bpftool btf dump prog pinned /sys/fs/bpf/prog_name**
240 | **# bpftool btf dump file /sys/kernel/btf/i2c_smbus**
242 | **# I2C_SMBUS_ID=$(bpftool btf show -p | jq '.[] | select(.name=="i2c_smbus").id')**
243 | **# bpftool btf dump id ${I2C_SMBUS_ID} -B /sys/kernel/btf/vmlinux**