Home
last modified time | relevance | path

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

12

/linux-6.3-rc2/tools/bpf/bpftool/Documentation/
A Dbpftool-map.rst4 bpftool-map
45 | **bpftool** **map help**
92 **bpftool map dump** *MAP*
141 **bpftool map peek** *MAP*
147 **bpftool map pop** *MAP*
156 **bpftool map freeze** *MAP*
164 **bpftool map help**
180 **# bpftool map show**
202 **# bpftool map dump id 10**
237 | **# bpftool prog --bpffs**
[all …]
A Dbpftool-struct_ops.rst4 bpftool-struct_ops
17 **bpftool** [*OPTIONS*] **struct_ops** *COMMAND*
28 | **bpftool** **struct_ops dump** [*STRUCT_OPS_MAP*]
29 | **bpftool** **struct_ops register** *OBJ*
31 | **bpftool** **struct_ops help**
48 **bpftool struct_ops dump** [*STRUCT_OPS_MAP*]
54 **bpftool struct_ops register** *OBJ*
62 **bpftool struct_ops help**
71 **# bpftool struct_ops show**
78 **# bpftool struct_ops unregister id 105**
[all …]
A Dbpftool-link.rst4 bpftool-link
17 **bpftool** [*OPTIONS*] **link** *COMMAND*
27 | **bpftool** **link pin** *LINK* *FILE*
28 | **bpftool** **link detach** *LINK*
29 | **bpftool** **link help**
36 **bpftool link { show | list }** [*LINK*]
50 **bpftool link pin** *LINK* *FILE*
57 **bpftool link detach** *LINK*
64 **bpftool link help**
81 **# bpftool link show**
[all …]
A Dbpftool-net.rst4 bpftool-net
17 **bpftool** [*OPTIONS*] **net** *COMMAND*
30 | **bpftool** **net help**
37 **bpftool net { show | list }** [ **dev** *NAME* ]
77 **bpftool net help**
87 | **# bpftool net**
102 | **# bpftool -jp net**
154 | **# bpftool net**
164 | **# bpftool net**
173 | **# bpftool net detach xdpdrv dev enp6s0np0**
[all …]
A Dbpftool-prog.rst4 bpftool-prog
17 **bpftool** [*OPTIONS*] **prog** *COMMAND*
33 | **bpftool** **prog pin** *PROG* *FILE*
37 | **bpftool** **prog tracelog**
40 | **bpftool** **prog help**
127 **bpftool prog pin** *PROG* *FILE*
180 **bpftool prog tracelog**
227 **bpftool prog help**
261 **# bpftool prog show**
366 | **# bpftool prog tracelog**
[all …]
A Dbpftool-feature.rst4 bpftool-feature
17 **bpftool** [*OPTIONS*] **feature** *COMMAND*
27 | **bpftool** **feature list_builtins** *GROUP*
28 | **bpftool** **feature help**
41 By default, bpftool **does not run probes** for
58 When the **unprivileged** keyword is used, bpftool will dump
64 bpftool is inadvertently run as non-root, for example. This
65 keyword is unavailable if bpftool was compiled without
75 **bpftool feature list_builtins** *GROUP*
76 List items known to bpftool. These can be BPF program types
[all …]
A Dbpftool-btf.rst4 bpftool-btf
17 **bpftool** [*OPTIONS*] **btf** *COMMAND*
28 | **bpftool** **btf help**
48 **bpftool btf dump** *BTF_SRC*
73 **bpftool btf help**
96 **# bpftool btf dump id 1226**
151 **$ bpftool btf dump file prog.o**
198 **# bpftool btf dump map id 123 key**
210 **# bpftool btf dump map id 123 kv**
229 **# bpftool btf dump map id 123**
[all …]
A Dbpftool-cgroup.rst4 bpftool-cgroup
17 **bpftool** [*OPTIONS*] **cgroup** *COMMAND*
28 | **bpftool** **cgroup tree** [*CGROUP_ROOT*] [**effective**]
30 | **bpftool** **cgroup detach** *CGROUP* *ATTACH_TYPE* *PROG*
31 | **bpftool** **cgroup help**
59 **bpftool cgroup tree** [*CGROUP_ROOT*] [**effective**]
62 bpftool uses cgroup v2 mountpoint.
122 **bpftool cgroup detach** *CGROUP* *ATTACH_TYPE* *PROG*
126 **bpftool prog help**
144 **# bpftool cgroup list /sys/fs/cgroup/test.slice/**
[all …]
A Dbpftool-perf.rst4 bpftool-perf
17 **bpftool** [*OPTIONS*] **perf** *COMMAND*
27 | **bpftool** **perf** { **show** | **list** }
28 | **bpftool** **perf help**
32 **bpftool perf { show | list }**
42 **bpftool perf help**
52 | **# bpftool perf**
62 | **# bpftool -j perf**
A Dcommon_options.rst4 Print short help message (similar to **bpftool help**).
7 Print bpftool's version number (similar to **bpftool version**), the
9 included when bpftool was compiled. Optional features include linking
11 programs (**bpftool prog dump jited**) and usage of BPF skeletons
12 (some features like **bpftool prog profile** or showing pids
A Dbpftool-iter.rst4 bpftool-iter
17 **bpftool** [*OPTIONS*] **iter** *COMMAND*
26 | **bpftool** **iter pin** *OBJ* *PATH* [**map** *MAP*]
27 | **bpftool** **iter help**
34 **bpftool iter pin** *OBJ* *PATH* [**map** *MAP*]
55 **bpftool iter help**
64 **# bpftool iter pin bpf_iter_netlink.o /sys/fs/bpf/my_netlink**
71 **# bpftool iter pin bpf_iter_hashmap.o /sys/fs/bpf/my_hashmap map id 20**
A Dbpftool.rst17 **bpftool** [*OPTIONS*] *OBJECT* { *COMMAND* | **help** }
19 **bpftool** **batch file** *FILE*
21 **bpftool** **version**
55 *bpftool* allows for inspection and simple modification of BPF objects
A Dbpftool-gen.rst4 bpftool-gen
17 **bpftool** [*OPTIONS*] **gen** *COMMAND*
27 | **bpftool** **gen skeleton** *FILE* [**name** *OBJECT_NAME*]
28 | **bpftool** **gen subskeleton** *FILE* [**name** *OBJECT_NAME*]
30 | **bpftool** **gen help**
54 **bpftool gen skeleton** *FILE*
154 **bpftool gen subskeleton** *FILE*
198 **bpftool gen help**
384 **$ bpftool btf dump file 5.4.0-example.btf format raw**
399 **$ bpftool btf dump file one.bpf.o format raw**
[all …]
/linux-6.3-rc2/tools/testing/selftests/bpf/
A Dtest_bpftool_metadata.sh48 if ! bpftool version > /dev/null 2>&1; then
61 bpftool prog load $BPF_FILE_UNUSED $BPF_DIR/unused
67 bpftool prog --json | grep '"metadata":{"a":"foo","b":1}' > /dev/null
69 bpftool map | grep 'metadata.rodata' > /dev/null
73 bpftool prog load $BPF_FILE_USED $BPF_DIR/used
79 bpftool prog --json | grep '"metadata":{"a":"bar","b":2}' > /dev/null
81 bpftool map | grep 'metadata.rodata' > /dev/null
A Dtest_bpftool_build.sh23 if [ ! -e tools/bpf/bpftool/Makefile ]; then
45 find $dir -type f -executable -name bpftool -print -exec false {} + && \
113 make_and_clean -C tools/bpf/bpftool
115 make_with_tmpdir -C tools/bpf/bpftool OUTPUT
117 make_with_tmpdir -C tools/bpf/bpftool O
145 cd bpf/bpftool
A Dtest_flow_dissector.sh24 if bpftool="$(which bpftool)"; then
27 $bpftool prog loadall $BPF_FILE /sys/fs/bpf/flow \
30 if ! unshare --net $bpftool prog attach pinned \
36 $bpftool prog attach pinned /sys/fs/bpf/flow/_dissect \
39 if unshare --net $bpftool prog attach pinned \
45 if ! $bpftool prog detach pinned \
A Dtest_xdp_veth.sh74 if ! bpftool version > /dev/null 2>&1; then
103 bpftool prog loadall \
106 bpftool map update pinned $BPF_DIR/maps/tx_port key 0 0 0 0 value 122 0 0 0
107 bpftool map update pinned $BPF_DIR/maps/tx_port key 1 0 0 0 value 133 0 0 0
108 bpftool map update pinned $BPF_DIR/maps/tx_port key 2 0 0 0 value 111 0 0 0
A Dtest_offload.py185 _, maps = bpftool("map show", JSON=True, ns=ns, fail=True)
600 bpftool("prog pin id %d %s" % (prog["id"], file_name))
608 bpftool("map pin id %d %s" % (m["id"], file_name))
767 ret, progs = bpftool("prog", fail=False)
770 _, base_maps = bpftool("map")
1214 bpftool("map update id %d key %s value %s" %
1249 _, entries = bpftool("map dump id %d" % (m["id"]))
1258 _, entry = bpftool("map getnext id %d" % (m["id"]))
1261 _, entry = bpftool("map getnext id %d key %s" %
1265 ret, err = bpftool("map getnext id %d key %s" %
[all …]
/linux-6.3-rc2/tools/bpf/bpftool/
A DMakefile95 FEATURE_USER = .bpftool
138 all: $(OUTPUT)bpftool
184 BPFTOOL_BOOTSTRAP := $(BOOTSTRAP_OUTPUT)bpftool
243 $(OUTPUT)bpftool: $(OBJS) $(LIBBPF)
257 $(call QUIET_CLEAN, bpftool)
262 $(Q)$(RM) -- $(OUTPUT)FEATURE-DUMP.bpftool
265 install-bin: $(OUTPUT)bpftool
266 $(call QUIET_INSTALL, bpftool)
268 $(Q)$(INSTALL) $(OUTPUT)bpftool $(DESTDIR)$(prefix)/sbin/bpftool
275 $(call QUIET_UNINST, bpftool)
[all …]
A D.gitignore4 /bpftool
5 bpftool*.8
6 FEATURE-DUMP.bpftool
/linux-6.3-rc2/samples/bpf/
A 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
/linux-6.3-rc2/tools/bpf/
A DMakefile79 all: $(PROGS) bpftool runqslower
112 bpftool: target
113 $(call descend,bpftool)
116 $(call descend,bpftool,install)
119 $(call descend,bpftool,clean)
133 .PHONY: all install clean bpftool bpftool_install bpftool_clean \
/linux-6.3-rc2/kernel/bpf/preload/iterators/
A DMakefile10 BPFTOOL_SRC := $(TOOLS_PATH)/bpf/bpftool
11 BPFTOOL_OUTPUT := $(abs_out)/bpftool
12 DEFAULT_BPFTOOL := $(BPFTOOL_OUTPUT)/bootstrap/bpftool
/linux-6.3-rc2/tools/testing/selftests/hid/
A DMakefile52 BPFTOOLDIR := $(TOOLSDIR)/bpf/bpftool
88 $(HOST_BUILD_DIR)/bpftool $(HOST_BUILD_DIR)/resolve_btfids \
101 DEFAULT_BPFTOOL := $(HOST_SCRATCH_DIR)/sbin/bpftool
109 $(HOST_BPFOBJ) | $(HOST_BUILD_DIR)/bpftool
113 OUTPUT=$(HOST_BUILD_DIR)/bpftool/ \
230 EXTRA_CLEAN := $(SCRATCH_DIR) $(HOST_SCRATCH_DIR) feature bpftool \
/linux-6.3-rc2/drivers/hid/bpf/entrypoints/
A DMakefile10 BPFTOOL_SRC := $(TOOLS_PATH)/bpf/bpftool
11 BPFTOOL_OUTPUT := $(abs_out)/bpftool
12 DEFAULT_BPFTOOL := $(BPFTOOL_OUTPUT)/bootstrap/bpftool

Completed in 46 milliseconds

12