| /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** **ma [all...] |
| H A D | bpftool-net.rst | 4 bpftool-net 17 **bpftool** [*OPTIONS*] **net** *COMMAND* 26 | **bpftool** **net** { **show** | **list** } [ **dev** *NAME* ] 27 | **bpftool** **net attach** *ATTACH_TYPE* *PROG* **dev** *NAME* [ **overwrite** | **prepend** ] 28 | **bpftool** **net detach** *ATTACH_TYPE* **dev** *NAME* 29 | **bpftool** **net help** 36 bpftool net { show | list } [ dev *NAME* ] 48 can use **bpftool cgroup** to dump cgroup attachments. For sk_{filter, skb, 61 bpftool net attach *ATTACH_TYPE* *PROG* dev *NAME* [ overwrite | prepend ] 81 bpftool ne [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*] 44 Since Linux 5.8 bpftool is able to discover information about processes 46 bpftool will automatically emit this information as well. 48 bpftool link pin *LINK* *FILE* [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*]] 40 By default, bpftool **does not run probes** for **bpf_probe_write_user**\ 54 When the **unprivileged** keyword is used, bpftool will dump only the 59 bpftool is inadvertently run as non-root, for example. This keyword is 60 unavailable if bpftool was compiled without libcap. [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*] [**root_id** *ROOT_ID*] 28 | **bpftool** **btf help** 37 bpftool btf { show | list } [id *BTF_ID*] 42 Since Linux 5.8 bpftool is able to discover information about processes 44 bpftool will automatically emit this information as well. 46 bpftool btf dump *BTF_SRC* [format *FORMAT*] [root_id *ROOT_ID*] 75 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** 52 bpftool cgroup { show | list } *CGROUP* [effective] 62 bpftool cgroup tree [*CGROUP_ROOT*] [effective] 64 If *CGROUP_ROOT* is not specified, 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 | 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*] 51 bpftool iter help 60 **# bpftool iter pin bpf_iter_netlink.o /sys/fs/bpf/my_netlink** 67 **# bpftool iter pin bpf_iter_hashmap.o /sys/fs/bpf/my_hashmap map id 20**
|
| 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 number 9 bpftool was compiled. Optional features include linking against LLVM or 10 libbfd to provide the disassembler for JIT-ted programs (**bpftool prog 11 dump jited**) and usage of BPF skeletons (some features like **bpftool prog
|
| 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 on the
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | test_bpftool_metadata.sh | |
| H A D | test_bpftool_build.sh | 7 echo -e "\tTest the different ways of building bpftool." 23 if [ ! -e tools/bpf/bpftool/Makefile ]; then 24 echo -e "skip: bpftool files not found!\n" 45 find $dir -type f -executable -name bpftool -print -exec false {} + && \ 46 ERROR=1 && printf "FAILURE: Did not find bpftool\n" 88 echo "Trying to build bpftool" 95 ## down from toplevel Makefile to bpftool's Makefile. 109 make_and_clean -C tools/bpf/bpftool 111 make_with_tmpdir -C tools/bpf/bpftool OUTPUT 113 make_with_tmpdir -C tools/bpf/bpftool [all...] |
| /linux/tools/bpf/bpftool/ |
| H A D | Makefile | 32 # which are not otherwise exported by libbpf, but still required by bpftool. 75 CFLAGS += -DPACKAGE='"bpftool"' -D__EXPORTED_HEADERS__ \ 98 FEATURE_USER = .bpftool 148 all: $(OUTPUT)bpftool 157 # (e.g. when bpftool build is called from selftests build as selftests 195 BPFTOOL_BOOTSTRAP := $(BOOTSTRAP_OUTPUT)bpftool 254 $(OUTPUT)bpftool: $(OBJS) $(LIBBPF) 268 $(call QUIET_CLEAN, bpftool) 269 $(Q)$(RM) -- $(OUTPUT)bpftool $(OUTPUT)*.o $(OUTPUT)*.d 273 $(Q)$(RM) -- $(OUTPUT)FEATURE-DUMP.bpftool [all...] |
| H A D | .gitignore | 4 /bpftool 5 bpftool*.8 6 FEATURE-DUMP.bpftool
|
| /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
|
| /linux/tools/bpf/ |
| H A D | Makefile | 73 all: $(PROGS) bpftool 106 bpftool: target 107 $(call descend,bpftool) 110 $(call descend,bpftool,install) 113 $(call descend,bpftool,clean) 121 .PHONY: all install clean bpftool bpftool_install bpftool_clean \
|
| /linux/tools/testing/selftests/net/ |
| H A D | bpf_offload.py | 173 def bpftool(args, JSON=True, ns="", fail=True, include_stderr=False): function 174 return tool("bpftool", args, {"json":"-p"}, JSON=JSON, ns=ns, 178 _, progs = bpftool("prog show", JSON=True, ns=ns, fail=True) 192 _, maps = bpftool("map show", JSON=True, ns=ns, fail=True) 231 res = bpftool(args, fail=fail, include_stderr=include_stderr) 542 bpftool("prog pin id %d %s" % (prog["id"], file_name)) 550 bpftool("map pin id %d %s" % (m["id"], file_name)) 558 ret, err = bpftool("prog show pin %s" % (prog_file), fail=False) 562 ret, err = bpftool("map show pin %s" % (map_file), fail=False) 708 ret, progs = bpftool("pro [all...] |
| /linux/tools/tracing/rtla/ |
| H A D | Makefile.config | 92 $(call feature_check,bpftool-skeletons) 93 ifeq ($(feature-bpftool-skeletons), 1) 96 $(info bpftool is missing or not supporting skeletons, building without BPF skeleton support.) 97 $(info Please install bpftool)
|
| /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
|
| /linux/tools/testing/selftests/hid/ |
| H A D | Makefile | 67 BPFTOOLDIR := $(TOOLSDIR)/bpf/bpftool 102 $(HOST_BUILD_DIR)/bpftool $(HOST_BUILD_DIR)/resolve_btfids \ 115 DEFAULT_BPFTOOL := $(HOST_SCRATCH_DIR)/sbin/bpftool 123 $(HOST_BPFOBJ) | $(HOST_BUILD_DIR)/bpftool 127 OUTPUT=$(HOST_BUILD_DIR)/bpftool/ \ 243 EXTRA_CLEAN := $(SCRATCH_DIR) $(HOST_SCRATCH_DIR) feature bpftool \
|
| /linux/drivers/hid/bpf/progs/ |
| H A D | Makefile | 10 BPFTOOL_SRC := $(TOOLS_PATH)/bpf/bpftool 11 BPFTOOL_OUTPUT := $(abs_out)/bpftool 12 DEFAULT_BPFTOOL := $(BPFTOOL_OUTPUT)/bootstrap/bpftool
|
| /linux/tools/bpf/runqslower/ |
| H A D | Makefile | |
| /linux/tools/sched_ext/ |
| H A D | Makefile | 47 BPFTOOLDIR := $(TOOLSDIR)/bpf/bpftool 74 DEFAULT_BPFTOOL := $(HOST_OUTPUT_DIR)/sbin/bpftool 131 $(HOST_BUILD_DIR)/bpftool $(HOST_BUILD_DIR)/resolve_btfids \ 159 $(HOST_BPFOBJ) | $(HOST_BUILD_DIR)/bpftool 163 OUTPUT=$(HOST_BUILD_DIR)/bpftool/ \
|