Home
last modified time | relevance | path

Searched refs:bpftool (Results 1 – 25 of 37) sorted by relevance

12

/kernel/linux/linux-5.10/tools/bpf/bpftool/Documentation/
Dbpftool-map.rst2 bpftool-map
13 **bpftool** [*OPTIONS*] **map** *COMMAND*
24 | **bpftool** **map** { **show** | **list** } [*MAP*]
25 | **bpftool** **map create** *FILE* **type** *TYPE* **key** *KEY_SIZE* **value** *VALUE_SIZE* \
28 | **bpftool** **map dump** *MAP*
29 | **bpftool** **map update** *MAP* [**key** *DATA*] [**value** *VALUE*] [*UPDATE_FLAGS*]
30 | **bpftool** **map lookup** *MAP* [**key** *DATA*]
31 | **bpftool** **map getnext** *MAP* [**key** *DATA*]
32 | **bpftool** **map delete** *MAP* **key** *DATA*
33 | **bpftool** **map pin** *MAP* *FILE*
[all …]
Dbpftool-struct_ops.rst2 bpftool-struct_ops
13 **bpftool** [*OPTIONS*] **struct_ops** *COMMAND*
23 | **bpftool** **struct_ops { show | list }** [*STRUCT_OPS_MAP*]
24 | **bpftool** **struct_ops dump** [*STRUCT_OPS_MAP*]
25 | **bpftool** **struct_ops register** *OBJ*
26 | **bpftool** **struct_ops unregister** *STRUCT_OPS_MAP*
27 | **bpftool** **struct_ops help**
35 **bpftool struct_ops { show | list }** [*STRUCT_OPS_MAP*]
44 **bpftool struct_ops dump** [*STRUCT_OPS_MAP*]
50 **bpftool struct_ops register** *OBJ*
[all …]
Dbpftool-link.rst2 bpftool-link
13 **bpftool** [*OPTIONS*] **link** *COMMAND*
22 | **bpftool** **link { show | list }** [*LINK*]
23 | **bpftool** **link pin** *LINK* *FILE*
24 | **bpftool** **link detach** *LINK*
25 | **bpftool** **link help**
32 **bpftool link { show | list }** [*LINK*]
41 Since Linux 5.8 bpftool is able to discover information about
43 links. On such kernels bpftool will automatically emit this
46 **bpftool link pin** *LINK* *FILE*
[all …]
Dbpftool-net.rst2 bpftool-net
13 **bpftool** [*OPTIONS*] **net** *COMMAND*
23 | **bpftool** **net** { **show** | **list** } [ **dev** *NAME* ]
24 | **bpftool** **net attach** *ATTACH_TYPE* *PROG* **dev** *NAME* [ **overwrite** ]
25 | **bpftool** **net detach** *ATTACH_TYPE* **dev** *NAME*
26 | **bpftool** **net help**
33 **bpftool net { show | list }** [ **dev** *NAME* ]
43 users can use **bpftool cgroup** to dump cgroup attachments.
55 **bpftool** **net attach** *ATTACH_TYPE* *PROG* **dev** *NAME* [ **overwrite** ]
67 **bpftool** **net detach** *ATTACH_TYPE* **dev** *NAME*
[all …]
Dbpftool-btf.rst2 bpftool-btf
13 **bpftool** [*OPTIONS*] **btf** *COMMAND*
22 | **bpftool** **btf** { **show** | **list** } [**id** *BTF_ID*]
23 | **bpftool** **btf dump** *BTF_SRC* [**format** *FORMAT*]
24 | **bpftool** **btf help**
33 **bpftool btf { show | list }** [**id** *BTF_ID*]
39 Since Linux 5.8 bpftool is able to discover information about
41 objects. On such kernels bpftool will automatically emit this
44 **bpftool btf dump** *BTF_SRC*
69 **bpftool btf help**
[all …]
Dbpftool-prog.rst2 bpftool-prog
13 **bpftool** [*OPTIONS*] **prog** *COMMAND*
24 | **bpftool** **prog** { **show** | **list** } [*PROG*]
25 | **bpftool** **prog dump xlated** *PROG* [{**file** *FILE* | **opcodes** | **visual** | **linum**}]
26 | **bpftool** **prog dump jited** *PROG* [{**file** *FILE* | **opcodes** | **linum**}]
27 | **bpftool** **prog pin** *PROG* *FILE*
28 | **bpftool** **prog** { **load** | **loadall** } *OBJ* *PATH* [**type** *TYPE*] [**map** {**idx** …
29 | **bpftool** **prog attach** *PROG* *ATTACH_TYPE* [*MAP*]
30 | **bpftool** **prog detach** *PROG* *ATTACH_TYPE* [*MAP*]
31 | **bpftool** **prog tracelog**
[all …]
Dbpftool-cgroup.rst2 bpftool-cgroup
13 **bpftool** [*OPTIONS*] **cgroup** *COMMAND*
23 | **bpftool** **cgroup** { **show** | **list** } *CGROUP* [**effective**]
24 | **bpftool** **cgroup tree** [*CGROUP_ROOT*] [**effective**]
25 | **bpftool** **cgroup attach** *CGROUP* *ATTACH_TYPE* *PROG* [*ATTACH_FLAGS*]
26 | **bpftool** **cgroup detach** *CGROUP* *ATTACH_TYPE* *PROG*
27 | **bpftool** **cgroup help**
39 **bpftool cgroup { show | list }** *CGROUP* [**effective**]
49 **bpftool cgroup tree** [*CGROUP_ROOT*] [**effective**]
52 bpftool uses cgroup v2 mountpoint.
[all …]
Dbpftool-feature.rst2 bpftool-feature
13 **bpftool** [*OPTIONS*] **feature** *COMMAND*
22 | **bpftool** **feature probe** [*COMPONENT*] [**full**] [**unprivileged**] [**macros** [**prefix**…
23 | **bpftool** **feature help**
29 **bpftool feature probe** [**kernel**] [**full**] [**macros** [**prefix** *PREFIX*]]
35 By default, bpftool **does not run probes** for
52 When the **unprivileged** keyword is used, bpftool will dump
58 bpftool is inadvertently run as non-root, for example. This
59 keyword is unavailable if bpftool was compiled without
62 **bpftool feature probe dev** *NAME* [**full**] [**macros** [**prefix** *PREFIX*]]
[all …]
Dbpftool-perf.rst2 bpftool-perf
13 **bpftool** [*OPTIONS*] **perf** *COMMAND*
23 | **bpftool** **perf** { **show** | **list** }
24 | **bpftool** **perf help**
28 **bpftool perf { show | list }**
38 **bpftool perf help**
48 | **# bpftool perf**
58 | **# bpftool -j perf**
Dbpftool-iter.rst2 bpftool-iter
13 **bpftool** [*OPTIONS*] **iter** *COMMAND*
20 | **bpftool** **iter pin** *OBJ* *PATH* [**map** *MAP*]
21 | **bpftool** **iter help**
28 **bpftool iter pin** *OBJ* *PATH* [**map** *MAP*]
49 **bpftool iter help**
58 **# bpftool iter pin bpf_iter_netlink.o /sys/fs/bpf/my_netlink**
65 **# bpftool iter pin bpf_iter_hashmap.o /sys/fs/bpf/my_hashmap map id 20**
Dcommon_options.rst2 Print short help message (similar to **bpftool help**).
5 Print version number (similar to **bpftool version**), and optional
6 features that were included when bpftool was compiled. Optional
8 for JIT-ted programs (**bpftool prog dump jited**) and usage of BPF
9 skeletons (some features like **bpftool prog profile** or showing
Dbpftool.rst13 **bpftool** [*OPTIONS*] *OBJECT* { *COMMAND* | **help** }
15 **bpftool** **batch file** *FILE*
17 **bpftool** **version**
41 *bpftool* allows for inspection and simple modification of BPF objects
Dbpftool-gen.rst2 bpftool-gen
13 **bpftool** [*OPTIONS*] **gen** *COMMAND*
22 | **bpftool** **gen skeleton** *FILE*
23 | **bpftool** **gen help**
27 **bpftool gen skeleton** *FILE*
124 **bpftool gen help**
175 **$ bpftool gen skeleton example.o**
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
Dtest_bpftool_metadata.sh45 if ! bpftool version > /dev/null 2>&1; then
58 bpftool prog load metadata_unused.o $BPF_DIR/unused
64 bpftool prog --json | grep '"metadata":{"a":"foo","b":1}' > /dev/null
66 bpftool map | grep 'metadata.rodata' > /dev/null
70 bpftool prog load metadata_used.o $BPF_DIR/used
76 bpftool prog --json | grep '"metadata":{"a":"bar","b":2}' > /dev/null
78 bpftool map | grep 'metadata.rodata' > /dev/null
Dtest_bpftool_build.sh23 if [ ! -e tools/bpf/bpftool/Makefile ]; then
45 find $dir -type f -executable -name bpftool -print -exec false {} + && \
126 make_and_clean -C tools/bpf/bpftool
128 make_with_tmpdir -C tools/bpf/bpftool OUTPUT
130 make_with_tmpdir -C tools/bpf/bpftool O
158 cd bpf/bpftool
Dtest_flow_dissector.sh22 if bpftool="$(which bpftool)"; then
25 $bpftool prog loadall ./bpf_flow.o /sys/fs/bpf/flow \
28 if ! unshare --net $bpftool prog attach pinned \
34 $bpftool prog attach pinned /sys/fs/bpf/flow/flow_dissector \
37 if unshare --net $bpftool prog attach pinned \
43 if ! $bpftool prog detach pinned \
Dtest_xdp_veth.sh71 if ! bpftool version > /dev/null 2>&1; then
100 bpftool prog loadall \
103 bpftool map update pinned $BPF_DIR/maps/tx_port key 0 0 0 0 value 122 0 0 0
104 bpftool map update pinned $BPF_DIR/maps/tx_port key 1 0 0 0 value 133 0 0 0
105 bpftool map update pinned $BPF_DIR/maps/tx_port key 2 0 0 0 value 111 0 0 0
Dtest_offload.py168 def bpftool(args, JSON=True, ns="", fail=True, include_stderr=False): function
173 _, progs = bpftool("prog show", JSON=True, ns=ns, fail=True)
185 _, maps = bpftool("map show", JSON=True, ns=ns, fail=True)
220 res = bpftool(args, fail=fail, include_stderr=include_stderr)
600 bpftool("prog pin id %d %s" % (prog["id"], file_name))
608 bpftool("map pin id %d %s" % (m["id"], file_name))
615 ret, err = bpftool("prog show pin %s" % (prog_file), fail=False)
622 ret, err = bpftool("map show pin %s" % (map_file), fail=False)
767 ret, progs = bpftool("prog", fail=False)
770 _, base_maps = bpftool("map")
[all …]
Dtest_tc_redirect.sh32 command -v bpftool >/dev/null 2>&1 || \
193 progs=$(ip netns exec ${NS_FWD} bpftool net --json | jq -r '.[] | .tc | map(.id) | .[]')
195 map=$(bpftool prog show id $prog --json | jq -r '.map_ids | .? | .[]')
197 bpftool map update id $map key hex $(hex_mem_str 0) value hex $(hex_mem_str $veth_src)
198 bpftool map update id $map key hex $(hex_mem_str 1) value hex $(hex_mem_str $veth_dst)
/kernel/linux/linux-5.10/tools/bpf/bpftool/
DMakefile63 FEATURE_USER = .bpftool
101 all: $(OUTPUT)bpftool
120 BPFTOOL_BOOTSTRAP := $(if $(OUTPUT),$(OUTPUT)bpftool-bootstrap,./bpftool-bootstrap)
172 $(OUTPUT)bpftool: $(OBJS) $(LIBBPF)
183 $(call QUIET_CLEAN, bpftool)
184 $(Q)$(RM) -- $(OUTPUT)bpftool $(OUTPUT)*.o $(OUTPUT)*.d
188 $(Q)$(RM) -- $(OUTPUT)FEATURE-DUMP.bpftool
191 install: $(OUTPUT)bpftool
192 $(call QUIET_INSTALL, bpftool)
194 $(Q)$(INSTALL) $(OUTPUT)bpftool $(DESTDIR)$(prefix)/sbin/bpftool
[all …]
D.gitignore3 /bpftool-bootstrap
4 /bpftool
5 bpftool*.8
7 FEATURE-DUMP.bpftool
/kernel/linux/linux-5.10/samples/bpf/
Dtcp_bpf.readme14 bpftool prog load tcp_basertt_kern.o /sys/fs/bpf/tcp_prog
15 bpftool cgroup attach /tmp/cgroupv2/foo sock_ops pinned /sys/fs/bpf/tcp_prog
16 bpftool prog tracelog
18 "bpftool prog tracelog" will continue to run printing the BPF log buffer.
28 bpftool cgroup detach /tmp/cgroupv2/foo sock_ops pinned /sys/fs/bpf/tcp_prog
/kernel/linux/linux-5.10/tools/bpf/
DMakefile76 all: $(PROGS) bpftool runqslower
109 bpftool: target
110 $(call descend,bpftool)
113 $(call descend,bpftool,install)
116 $(call descend,bpftool,clean)
130 .PHONY: all install clean bpftool bpftool_install bpftool_clean \
/kernel/linux/linux-5.10/tools/bpf/bpftool/bash-completion/
Dbpftool1 # bpftool(8) bash completion -*- shell-script -*-
49 COMPREPLY+=( $( compgen -W "$( bpftool -jp map 2>&1 | \
57 COMPREPLY+=( $( compgen -W "$( bpftool -jp map 2>&1 | \
64 COMPREPLY+=( $( compgen -W "$( bpftool -jp map 2>&1 | \
72 COMPREPLY+=( $( compgen -W "$( bpftool -jp map 2>&1 | \
79 COMPREPLY+=( $( compgen -W "$( bpftool -jp prog 2>&1 | \
85 COMPREPLY+=( $( compgen -W "$( bpftool -jp prog 2>&1 | \
91 COMPREPLY+=( $( compgen -W "$( bpftool -jp prog 2>&1 | \
97 COMPREPLY+=( $( compgen -W "$( bpftool -jp btf 2>&1 | \
103 COMPREPLY+=( $( compgen -W "$( bpftool -jp link 2>&1 | \
[all …]
/kernel/linux/linux-5.10/kernel/bpf/preload/iterators/
DMakefile6 DEFAULT_BPFTOOL := $(OUTPUT)/sbin/bpftool
56 $(Q)$(MAKE) $(submake_extras) -C ../../../../tools/bpf/bpftool \

12