Searched full:bpftool (Results 1 – 25 of 77) sorted by relevance
1234
| /external/bpftool/docs/ |
| 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 …]
|
| 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 …]
|
| 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 …]
|
| 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 …]
|
| 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 …]
|
| 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 …]
|
| 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 …]
|
| 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 …]
|
| 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
|
| 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**
|
| 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**
|
| 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 …]
|
| /external/bpftool/.github/workflows/ |
| D | release.yaml | 20 name: Build static bpftool binary 31 # amd64 needs the dependencies to build bpftool 45 - name: Checkout bpftool code 49 # Create a new directory to avoid wiping out LLVM on bpftool checkout 50 path: 'bpftool' 52 - name: Build static bpftool natively for amd64 54 working-directory: 'bpftool' 63 strip src/bpftool 73 - name: Build static bpftool for arm64 with emulation 82 cd /build/bpftool && \ [all …]
|
| D | build.yaml | 54 - name: Build bpftool (default LLVM disassembler) 57 ./src/bpftool 2>&1 | grep -q Usage 58 ./src/bpftool -p version | \ 62 - name: Build bpftool, with clang 66 ./src/bpftool 2>&1 | grep -q Usage 67 ./src/bpftool -p version | \ 71 - name: Build bpftool, with fallback to libbfd disassembler 76 ./src/bpftool 2>&1 | grep -q Usage 77 ./src/bpftool -p version | \ 81 - name: Build bpftool, with libbfd, static build [all …]
|
| D | static-build.yaml | 36 - name: Checkout bpftool 40 # Create a new directory to avoid wiping out LLVM on bpftool checkout 41 path: 'bpftool' 43 - name: Build bpftool (static build, default LLVM disassembler) 44 working-directory: 'bpftool' 51 - name: Test bpftool binary 52 working-directory: 'bpftool' 54 ./src/bpftool 2>&1 | grep -q Usage 55 ./src/bpftool -p version | \ 58 ldd ./src/bpftool 2>&1 | \
|
| D | docker.yaml | 29 - name: Build bpftool container image 33 tags: bpftool:latest 35 - name: Test bpftool container image 37 docker run --rm --privileged --pid=host bpftool version 38 docker run --rm --privileged --pid=host bpftool prog 39 docker run --rm --privileged --pid=host bpftool map
|
| /external/bpftool/scripts/ |
| D | README.md | 3 This directory contains scripts for maintaining bpftool's GitHub mirror. 24 ### Synchronize Linux and bpftool mirror 26 This script synchronizes the bpftool mirror with the bpftool sources (and 30 because this is where most bpftool updates are merged. 34 because bpftool strongly relies on libbpf, and the libbpf GitHub mirror is used 37 was brought up-to-date. To ensure optimal compatibility between the bpftool 76 Also make sure you have cloned the bpftool mirror recursively, to check out the 94 $ ./sync-kernel.sh <bpftool-repo> <kernel-repo> 97 If working from within the bpftool repository, the path to the `<bpftool-repo>` 105 commit from the `bpf-next` branch with which the bpftool repository is [all …]
|
| D | sync-kernel.sh | 4 echo "USAGE: ./sync-kernel.sh <bpftool-repo> <kernel-repo>" 6 …echo "This script synchronizes the mirror with upstream bpftool sources from the kernel repository… 8 … - Update the libbpf submodule, commit, and use its new checkpoints as target commits for bpftool." 14 …echo "Set BPF_NEXT_BASELINE to override bpf-next tree commit, otherwise read from <bpftool-repo>/C… 15 …echo "Set BPF_BASELINE to override bpf tree commit, otherwise read from <bpftool-repo>/BPF-CHECKPO… 16 …TIP_COMMIT to override bpf-next tree target commit, otherwise read from <bpftool-repo>/libbpf/CHEC… 17 …echo "Set BPF_TIP_COMMIT to override bpf tree target commit, otherwise read from <bpftool-repo>/li… 29 echo "Error: bpftool or linux repos are not specified" 48 BPFTOOL_SRC_DIR="tools/bpf/bpftool" 76 # Deal with tools/bpf/bpftool first, because once we've mkdir-ed src/, command [all …]
|
| D | gh-label-release-assets.sh | 12 # '/repos/qmonnet/bpftool/releases/tags/v7.2.0-snapshot.0' \ 15 # '/repos/qmonnet/bpftool/releases/96330927/assets' \ 16 # --jq '.[] | select(.name == "bpftool-amd64.tar.gz").id' 21 # '/repos/qmonnet/bpftool/releases/assets/100280866' \ 22 # -f name='bpftool-arm64.tar.gz' \ 25 REPO="libbpf/bpftool" 28 echo "Update asset labels for bpftool releases" 61 …["bpftool-libbpf-${release_tag}-sources.tar.gz"]="Source code, including libbpf submodule (tar.gz)"
|
| /external/bpftool/ |
| D | README.md | 1 bpftool chapter 5 `tools/bpf/bpftool`](https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git/tree/tools/bp… 17 BPF/bpftool usage and questions 20 Please check out [the manual pages](docs) for documentation about bpftool. A 22 post](https://qmonnet.github.io/whirl-offload/2021/09/23/bpftool-features-thread/). 24 All general BPF questions, including kernel functionality, bpftool features and 34 bpftool mirror repo is set up and organized. 53 …](https://github… 59 bpftool: 62 $ git clone --recurse-submodules https://github.com/libbpf/bpftool.git [all …]
|
| /external/linux-kselftest/tools/testing/selftests/bpf/ |
| 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" 99 ## down from toplevel Makefile to bpftool's Makefile. 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 [all …]
|
| D | test_bpftool_metadata.sh | 45 if ! bpftool version > /dev/null 2>&1; then 46 echo "selftests: $TESTNAME [SKIP] Could not run test without bpftool" 58 bpftool prog load metadata_unused.o $BPF_DIR/unused 60 METADATA_PLAIN="$(bpftool prog)" 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 72 METADATA_PLAIN="$(bpftool prog)" 76 bpftool prog --json | grep '"metadata":{"a":"bar","b":2}' > /dev/null 78 bpftool map | grep 'metadata.rodata' > /dev/null
|
| D | Makefile | 13 BPFTOOLDIR := $(TOOLSDIR)/bpf/bpftool 159 $(HOST_BUILD_DIR)/bpftool $(HOST_BUILD_DIR)/resolve_btfids \ 206 DEFAULT_BPFTOOL := $(HOST_SCRATCH_DIR)/sbin/bpftool 211 BPFTOOL_OUTPUT=$(HOST_BUILD_DIR)/bpftool/ \ 244 BPFTOOL ?= $(DEFAULT_BPFTOOL) macro 246 $(HOST_BPFOBJ) | $(HOST_BUILD_DIR)/bpftool 250 OUTPUT=$(HOST_BUILD_DIR)/bpftool/ \ 284 $(INCLUDE_DIR)/vmlinux.h: $(VMLINUX_BTF) $(BPFTOOL) | $(INCLUDE_DIR) 287 $(Q)$(BPFTOOL) btf dump file $(VMLINUX_BTF) format c > $@ 438 $(TRUNNER_BPF_SKELS): %.skel.h: %.bpf.o $(BPFTOOL) | $(TRUNNER_OUTPUT) [all …]
|
| D | test_bpftool_synctypes.py | 13 os.path.join(LINUX_ROOT, 'tools/bpf/bpftool')) 237 bpftool, for example: 256 a macro in bpftool, for example: 302 An extractor for bpftool's main.h 351 An extractor for bpftool's prog.c. 364 An extractor for bpftool's map.c. 373 An extractor for bpftool's cgroup.c. 430 An extractor for bpftool-prog.rst. 432 filename = os.path.join(BPFTOOL_DOC_DIR, 'bpftool-prog.rst') 439 An extractor for bpftool-map.rst. [all …]
|
| /external/bpftool/src/ |
| D | Makefile | 36 # which are not otherwise exported by libbpf, but still required by bpftool. 74 CFLAGS += -DPACKAGE='"bpftool"' -D__EXPORTED_HEADERS__ \ 93 FEATURE_USER = .bpftool 132 all: $(OUTPUT)bpftool 178 BPFTOOL_BOOTSTRAP := $(BOOTSTRAP_OUTPUT)bpftool 237 $(OUTPUT)bpftool: $(OBJS) $(LIBBPF) 251 $(call QUIET_CLEAN, bpftool) 252 $(Q)$(RM) -- $(OUTPUT)bpftool $(OUTPUT)*.o $(OUTPUT)*.d 256 $(Q)$(RM) -- $(OUTPUT)FEATURE-DUMP.bpftool 259 install-bin: $(OUTPUT)bpftool [all …]
|
1234