/openbmc/linux/tools/bpf/bpftool/Documentation/ |
H A D | bpftool-map.rst | 4 bpftool-map 17 **bpftool** [*OPTIONS*] **map** *COMMAND* 28 | **bpftool** **map** { **show** | **list** } [*MAP*] 29 | **bpftool** **map create** *FILE* **type** *TYPE* **key** *KEY_SIZE* **value** *VALUE_SIZE* \ 32 | **bpftool** **map dump** *MAP* 33 | **bpftool** **map update** *MAP* [**key** *DATA*] [**value** *VALUE*] [*UPDATE_FLAGS*] 34 | **bpftool** **map lookup** *MAP* [**key** *DATA*] 35 | **bpftool** **map getnext** *MAP* [**key** *DATA*] 36 | **bpftool** **map delete** *MAP* **key** *DATA* 37 | **bpftool** **map pin** *MAP* *FILE* [all …]
|
H A D | bpftool-struct_ops.rst | 4 bpftool-struct_ops 17 **bpftool** [*OPTIONS*] **struct_ops** *COMMAND* 27 | **bpftool** **struct_ops { show | list }** [*STRUCT_OPS_MAP*] 28 | **bpftool** **struct_ops dump** [*STRUCT_OPS_MAP*] 29 | **bpftool** **struct_ops register** *OBJ* [*LINK_DIR*] 30 | **bpftool** **struct_ops unregister** *STRUCT_OPS_MAP* 31 | **bpftool** **struct_ops help** 39 **bpftool struct_ops { show | list }** [*STRUCT_OPS_MAP*] 48 **bpftool struct_ops dump** [*STRUCT_OPS_MAP*] 54 **bpftool struct_ops register** *OBJ* [*LINK_DIR*] [all …]
|
H A D | bpftool-link.rst | 4 bpftool-link 17 **bpftool** [*OPTIONS*] **link** *COMMAND* 26 | **bpftool** **link { show | list }** [*LINK*] 27 | **bpftool** **link pin** *LINK* *FILE* 28 | **bpftool** **link detach** *LINK* 29 | **bpftool** **link help** 36 **bpftool link { show | list }** [*LINK*] 45 Since Linux 5.8 bpftool is able to discover information about 47 links. On such kernels bpftool will automatically emit this 50 **bpftool link pin** *LINK* *FILE* [all …]
|
H A D | bpftool-net.rst | 4 bpftool-net 17 **bpftool** [*OPTIONS*] **net** *COMMAND* 27 | **bpftool** **net** { **show** | **list** } [ **dev** *NAME* ] 28 | **bpftool** **net attach** *ATTACH_TYPE* *PROG* **dev** *NAME* [ **overwrite** ] 29 | **bpftool** **net detach** *ATTACH_TYPE* **dev** *NAME* 30 | **bpftool** **net help** 37 **bpftool net { show | list }** [ **dev** *NAME* ] 50 users can use **bpftool cgroup** to dump cgroup attachments. 63 **bpftool** **net attach** *ATTACH_TYPE* *PROG* **dev** *NAME* [ **overwrite** ] 75 **bpftool** **net detach** *ATTACH_TYPE* **dev** *NAME* [all …]
|
H A D | bpftool-prog.rst | 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** [all …]
|
H A D | bpftool-feature.rst | 4 bpftool-feature 17 **bpftool** [*OPTIONS*] **feature** *COMMAND* 26 | **bpftool** **feature probe** [*COMPONENT*] [**full**] [**unprivileged**] [**macros** [**prefix**… 27 | **bpftool** **feature list_builtins** *GROUP* 28 | **bpftool** **feature help** 35 **bpftool feature probe** [**kernel**] [**full**] [**macros** [**prefix** *PREFIX*]] 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 [all …]
|
H A D | bpftool-btf.rst | 4 bpftool-btf 17 **bpftool** [*OPTIONS*] **btf** *COMMAND* 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* 73 **bpftool btf help** [all …]
|
H A D | bpftool-cgroup.rst | 4 bpftool-cgroup 17 **bpftool** [*OPTIONS*] **cgroup** *COMMAND* 27 | **bpftool** **cgroup** { **show** | **list** } *CGROUP* [**effective**] 28 | **bpftool** **cgroup tree** [*CGROUP_ROOT*] [**effective**] 29 | **bpftool** **cgroup attach** *CGROUP* *ATTACH_TYPE* *PROG* [*ATTACH_FLAGS*] 30 | **bpftool** **cgroup detach** *CGROUP* *ATTACH_TYPE* *PROG* 31 | **bpftool** **cgroup help** 49 **bpftool cgroup { show | list }** *CGROUP* [**effective**] 59 **bpftool cgroup tree** [*CGROUP_ROOT*] [**effective**] 62 bpftool uses cgroup v2 mountpoint. [all …]
|
H A D | bpftool-perf.rst | 4 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 D | common_options.rst | 4 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 D | bpftool-iter.rst | 4 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 D | bpftool.rst | 17 **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 D | bpftool-gen.rst | 4 bpftool-gen 17 **bpftool** [*OPTIONS*] **gen** *COMMAND* 26 | **bpftool** **gen object** *OUTPUT_FILE* *INPUT_FILE* [*INPUT_FILE*...] 27 | **bpftool** **gen skeleton** *FILE* [**name** *OBJECT_NAME*] 28 | **bpftool** **gen subskeleton** *FILE* [**name** *OBJECT_NAME*] 29 | **bpftool** **gen min_core_btf** *INPUT* *OUTPUT* *OBJECT* [*OBJECT*...] 30 | **bpftool** **gen help** 34 **bpftool gen object** *OUTPUT_FILE* *INPUT_FILE* [*INPUT_FILE*...] 54 **bpftool gen skeleton** *FILE* 154 **bpftool gen subskeleton** *FILE* [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_bpftool_metadata.sh | 48 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 D | test_bpftool_build.sh | 23 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 D | test_flow_dissector.sh | 24 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 D | test_xdp_veth.sh | 74 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 D | test_offload.py | 168 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 …]
|
/openbmc/linux/tools/bpf/bpftool/ |
H A D | Makefile | 95 FEATURE_USER = .bpftool 138 all: $(OUTPUT)bpftool 184 BPFTOOL_BOOTSTRAP := $(BOOTSTRAP_OUTPUT)bpftool 243 $(OUTPUT)bpftool: $(OBJS) $(LIBBPF) 257 $(call QUIET_CLEAN, bpftool) 258 $(Q)$(RM) -- $(OUTPUT)bpftool $(OUTPUT)*.o $(OUTPUT)*.d 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 [all …]
|
H A D | .gitignore | 4 /bpftool 5 bpftool*.8 6 FEATURE-DUMP.bpftool
|
/openbmc/linux/samples/bpf/ |
H A D | tcp_bpf.readme | 14 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 D | Makefile | 79 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 D | bpftool.bb | 2 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 D | Makefile | 10 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 D | Makefile | 67 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 \
|