Lines Matching refs:bpftool

4 bpftool-prog
17 **bpftool** [*OPTIONS*] **prog** *COMMAND*
30 | **bpftool** **prog** { **show** | **list** } [*PROG*]
31 | **bpftool** **prog dump xlated** *PROG* [{ **file** *FILE* | [**opcodes**] [**linum**] [**visual*…
32 | **bpftool** **prog dump jited** *PROG* [{ **file** *FILE* | [**opcodes**] [**linum**] }]
33 | **bpftool** **prog pin** *PROG* *FILE*
34 | **bpftool** **prog** { **load** | **loadall** } *OBJ* *PATH* [**type** *TYPE*] [**map** { **idx**…
35 | **bpftool** **prog attach** *PROG* *ATTACH_TYPE* [*MAP*]
36 | **bpftool** **prog detach** *PROG* *ATTACH_TYPE* [*MAP*]
37 | **bpftool** **prog tracelog**
38 | **bpftool** **prog tracelog** [ { **stdout** | **stderr** } *PROG* ]
39 | **bpftool** **prog run** *PROG* **data_in** *FILE* [**data_out** *FILE* [**data_size_out** *L*]] …
40 | **bpftool** **prog profile** *PROG* [**duration** *DURATION*] *METRICs*
41 | **bpftool** **prog help**
71 bpftool prog { show | list } [*PROG*]
82 run). If available, bpftool shows such statistics. However, the kernel does
87 Since Linux 5.8 bpftool is able to discover information about processes
89 bpftool will automatically emit this information as well.
91 bpftool prog dump xlated *PROG* [{ file *FILE* | [opcodes] [linum] [visual] }]
112 bpftool prog dump jited *PROG* [{ file *FILE* | [opcodes] [linum] }]
125 bpftool prog pin *PROG* *FILE*
131 bpftool prog { load | loadall } *OBJ* *PATH* [type *TYPE*] [map { idx *IDX* | name *NAME* } *MAP*] …
132 Load bpf program(s) from binary *OBJ* and pin as *PATH*. **bpftool prog
133 load** pins only the first program from the *OBJ* as *PATH*. **bpftool prog
136 names. By default bpftool will create new maps as declared in the ELF
150 pinned, not the program as such, so the path won't show in **bpftool prog
151 show -f**, only show in **bpftool link show -f**. Also, this only works
152 when bpftool (libbpf) is able to infer all necessary information from the
154 program does not support autoattach, bpftool falls back to regular pinning
166 bpftool prog attach *PROG* *ATTACH_TYPE* [*MAP*]
171 bpftool prog detach *PROG* *ATTACH_TYPE* [*MAP*]
176 bpftool prog tracelog
181 perf events (see also **bpftool-map**\ (8)).
183 bpftool prog tracelog { stdout | stderr } *PROG*
189 bpftool prog run *PROG* data_in *FILE* [data_out *FILE* [data_size_out *L*]] [ctx_in *FILE* [ctx_ou…
214 them can take the **ctx_in**/**ctx_out** arguments. bpftool does not
217 bpftool prog profile *PROG* [duration *DURATION*] *METRICs*
222 bpftool prog help
241 of such programs. When this option is in use, bpftool attempts to load the
248 creating the maps, and loading the programs (see **bpftool prog tracelog**
253 **# bpftool prog show**
262 **# bpftool --json --pretty prog show**
290 | **# bpftool prog dump xlated id 10 file /tmp/t**
297 **# bpftool prog dump jited tag 005a3d2123620c8b**
309 | **# bpftool prog pin id 10 /sys/fs/bpf/prog**
310 | **# bpftool prog load ./my_prog.o /sys/fs/bpf/prog2**
318 **# bpftool prog dump jited pinned /sys/fs/bpf/prog opcodes**
334 | **# bpftool prog load xdp1_kern.o /sys/fs/bpf/xdp1 type xdp map name rxcnt id 7**
335 | **# bpftool prog show pinned /sys/fs/bpf/xdp1**
346 | **# bpftool prog profile id 337 duration 10 cycles instructions llc_misses**
358 | **# bpftool prog tracelog**
359 | **# bpftool prog load -L -d file.o**
363 bpftool-620059 [004] d... 2634685.517903: bpf_trace_printk: btf_load size 665 r=5
364bpftool-620059 [004] d... 2634685.517912: bpf_trace_printk: map_create sample_map idx 0 type 2 va…
365 bpftool-620059 [004] d... 2634685.517997: bpf_trace_printk: prog_load sample insn_cnt 13 r=7
366 bpftool-620059 [004] d... 2634685.517999: bpf_trace_printk: close(5) = 0