Home
last modified time | relevance | path

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

123

/openbmc/linux/tools/bpf/bpftool/Documentation/
H 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 …]
H A Dbpftool-struct_ops.rst4 bpftool-struct_ops
17 **bpftool** [*OPTIONS*] **struct_ops** *COMMAND*
28 | **bpftool** **struct_ops dump** [*STRUCT_OPS_MAP*]
31 | **bpftool** **struct_ops help**
48 **bpftool struct_ops dump** [*STRUCT_OPS_MAP*]
54 **bpftool struct_ops register** *OBJ* [*LINK_DIR*]
63 **bpftool struct_ops unregister** *STRUCT_OPS_MAP*
66 **bpftool struct_ops help**
75 **# bpftool struct_ops show**
82 **# bpftool struct_ops unregister id 105**
[all …]
H 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 …]
H A Dbpftool-net.rst4 bpftool-net
17 **bpftool** [*OPTIONS*] **net** *COMMAND*
30 | **bpftool** **net help**
37 **bpftool net { show | list }** [ **dev** *NAME* ]
81 **bpftool net help**
91 | **# bpftool net**
106 | **# bpftool -jp net**
158 | **# bpftool net**
168 | **# bpftool net**
177 | **# bpftool net detach xdpdrv dev enp6s0np0**
[all …]
H 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**
125 **bpftool prog pin** *PROG* *FILE*
181 **bpftool prog tracelog**
228 **bpftool prog help**
262 **# bpftool prog show**
367 | **# bpftool prog tracelog**
[all …]
H 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 …]
H 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 …]
H 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 …]
H 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**
H 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
H 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**
H 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
H 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 …]
/openbmc/linux/tools/testing/selftests/bpf/
H 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
H 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
H 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 \
H 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
H 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 …]
/openbmc/linux/tools/bpf/bpftool/
H 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 …]
H A D.gitignore4 /bpftool
5 bpftool*.8
6 FEATURE-DUMP.bpftool
/openbmc/linux/samples/bpf/
H 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
/openbmc/linux/tools/bpf/
H 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 \
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-kernel/bpftool/
H A Dbpftool.bb2 DESCRIPTION = "bpftool is a kernel tool for inspection and simple manipulation \
6 PROVIDES = "virtual/bpftool"
14 -C ${S}/tools/bpf/bpftool \
/openbmc/linux/kernel/bpf/preload/iterators/
H A DMakefile10 BPFTOOL_SRC := $(TOOLS_PATH)/bpf/bpftool
11 BPFTOOL_OUTPUT := $(abs_out)/bpftool
12 DEFAULT_BPFTOOL := $(BPFTOOL_OUTPUT)/bootstrap/bpftool
/openbmc/linux/tools/testing/selftests/hid/
H A DMakefile67 BPFTOOLDIR := $(TOOLSDIR)/bpf/bpftool
103 $(HOST_BUILD_DIR)/bpftool $(HOST_BUILD_DIR)/resolve_btfids \
116 DEFAULT_BPFTOOL := $(HOST_SCRATCH_DIR)/sbin/bpftool
124 $(HOST_BPFOBJ) | $(HOST_BUILD_DIR)/bpftool
128 OUTPUT=$(HOST_BUILD_DIR)/bpftool/ \
245 EXTRA_CLEAN := $(SCRATCH_DIR) $(HOST_SCRATCH_DIR) feature bpftool \

123