Home
last modified time | relevance | path

Searched +full:bpftool +full:- (Results 1 – 25 of 76) sorted by relevance

1234

/external/bpftool/docs/
Dbpftool-map.rst1 .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 bpftool-map
6 -------------------------------------------------------------------------------
8 -------------------------------------------------------------------------------
17 **bpftool** [*OPTIONS*] **map** *COMMAND*
19 *OPTIONS* := { |COMMON_OPTIONS| | { **-f** | **--bpffs** } | { **-n** | **--nomount** } }
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*]
[all …]
Dbpftool-prog.rst1 .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 bpftool-prog
6 -------------------------------------------------------------------------------
8 -------------------------------------------------------------------------------
17 **bpftool** [*OPTIONS*] **prog** *COMMAND*
20 { **-f** | **--bpffs** } | { **-m** | **--mapcompat** } | { **-n** | **--nomount** } |
21 { **-L** | **--use-loader** } }
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**] }]
[all …]
Dbpftool-net.rst1 .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 bpftool-net
6 -------------------------------------------------------------------------------
8 -------------------------------------------------------------------------------
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* ]
[all …]
Dbpftool-struct_ops.rst1 .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 bpftool-struct_ops
6 -------------------------------------------------------------------------------
8 -------------------------------------------------------------------------------
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**
[all …]
Dbpftool-btf.rst1 .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 bpftool-btf
6 -------------------------------------------------------------------------------
8 -------------------------------------------------------------------------------
17 **bpftool** [*OPTIONS*] **btf** *COMMAND*
19 *OPTIONS* := { |COMMON_OPTIONS| | { **-B** | **--base-btf** } }
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*]
[all …]
Dbpftool-link.rst1 .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 bpftool-link
6 -------------------------------------------------------------------------------
8 -------------------------------------------------------------------------------
17 **bpftool** [*OPTIONS*] **link** *COMMAND*
19 *OPTIONS* := { |COMMON_OPTIONS| | { **-f** | **--bpffs** } | { **-n** | **--nomount** } }
26 | **bpftool** **link { show | list }** [*LINK*]
27 | **bpftool** **link pin** *LINK* *FILE*
28 | **bpftool** **link detach** *LINK*
29 | **bpftool** **link help**
[all …]
Dbpftool-feature.rst1 .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 bpftool-feature
6 -------------------------------------------------------------------------------
7 tool for inspection of eBPF-related parameters for Linux kernel or net device
8 -------------------------------------------------------------------------------
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*]]
[all …]
Dbpftool-cgroup.rst1 .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 bpftool-cgroup
6 -------------------------------------------------------------------------------
8 -------------------------------------------------------------------------------
17 **bpftool** [*OPTIONS*] **cgroup** *COMMAND*
19 *OPTIONS* := { |COMMON_OPTIONS| | { **-f** | **--bpffs** } }
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*
[all …]
Dcommon_options.rst1 .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 -h, --help
4 Print short help message (similar to **bpftool help**).
6 -V, --version
7 Print bpftool's version number (similar to **bpftool version**), the
9 included when bpftool was compiled. Optional features include linking
10 against LLVM or libbfd to provide the disassembler for JIT-ted
11 programs (**bpftool prog dump jited**) and usage of BPF skeletons
12 (some features like **bpftool prog profile** or showing pids
15 -j, --json
[all …]
Dbpftool-perf.rst1 .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 bpftool-perf
6 -------------------------------------------------------------------------------
8 -------------------------------------------------------------------------------
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**
[all …]
Dbpftool-iter.rst1 .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 bpftool-iter
6 -------------------------------------------------------------------------------
8 -------------------------------------------------------------------------------
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**
[all …]
Dbpftool-gen.rst1 .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 bpftool-gen
6 -------------------------------------------------------------------------------
7 tool for BPF code-generation
8 -------------------------------------------------------------------------------
17 **bpftool** [*OPTIONS*] **gen** *COMMAND*
19 *OPTIONS* := { |COMMON_OPTIONS| | { **-L** | **--use-loader** } }
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*]
[all …]
/external/bpftool/.github/workflows/
Drelease.yaml6 - 'v[0-9]+.[0-9]+.[0-9]*'
9 group: ${{ github.workflow }}-${{ github.event.after }}
10 cancel-in-progress: true
13 # https://github.com/llvm/llvm-project/releases/tag/llvmorg-15.0.0
14 LLVM_URL_PREFIX: https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.0
15 LLVM_arm64: clang+llvm-15.0.0-aarch64-linux-gnu
16 LLVM_amd64: clang+llvm-15.0.0-x86_64-linux-gnu-rhel-8.4
20 name: Build static bpftool binary
21 runs-on: ubuntu-22.04
24 FILE_STRING_ARCH_amd64: x86-64
[all …]
Dbuild.yaml6 - '.github/workflows/build.yaml'
7 - 'docs/**'
8 - 'include/**'
9 - 'libbpf/**'
10 - 'src/**'
13 - master
16 group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.after }}
17 cancel-in-progress: true
22 fail-fast: false
24 os: [ubuntu-20.04, ubuntu-22.04]
[all …]
Dstatic-build.yaml6 - '.github/workflows/static-build.yaml'
7 - 'include/**'
8 - 'libbpf/**'
9 - 'src/**'
12 - master
15 group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.after }}
16 cancel-in-progress: true
20 runs-on: ubuntu-22.04
22 LLVM_URL_PREFIX: https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.0
23 LLVM_PATH: clang+llvm-15.0.0-x86_64-linux-gnu-rhel-8.4
[all …]
Ddocker.yaml6 - '.github/workflows/docker.yaml'
7 - 'Dockerfile'
8 - 'include/**'
9 - 'libbpf/**'
10 - 'src/**'
13 - master
16 group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.after }}
17 cancel-in-progress: true
22 runs-on: ubuntu-latest
24 - name: Checkout repository
[all …]
/external/bpftool/scripts/
DREADME.md3 This directory contains scripts for maintaining bpftool's GitHub mirror.
5 ## gh-label-release-assets.sh
22 ## sync-kernel.sh
24 ### Synchronize Linux and bpftool mirror
26 This script synchronizes the bpftool mirror with the bpftool sources (and
29 Synchronization is usually performed against the `bpf-next` and `bpf` trees,
30 because this is where most bpftool updates are merged.
34 because bpftool strongly relies on libbpf, and the libbpf GitHub mirror is used
36 to the latest `bpf-next` and `bpf` tree, and records to what kernel commits it
37 was brought up-to-date. To ensure optimal compatibility between the bpftool
[all …]
Dsync-kernel.sh4 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 …echo " - Update the libbpf submodule, commit, and use its new checkpoints as target commits for b…
9 echo " - Cherry-pick commits from the bpf-next branch, up to the bpf-next target commit."
10 echo " - Cherry-pick commits from the bpf branch, up to the bpf target commit."
11 echo " - Create a new commit with the updated version and checkpoints."
12 echo " - Check consistency."
14 …echo "Set BPF_NEXT_BASELINE to override bpf-next tree commit, otherwise read from <bpftool-repo>/C…
15 …PF_BASELINE to override bpf tree commit, otherwise read from <bpftool-repo>/BPF-CHECKPOINT-COMMIT."
16 …t BPF_NEXT_TIP_COMMIT to override bpf-next tree target commit, otherwise read from <bpftool-repo>/…
[all …]
Dgh-label-release-assets.sh3 set -o errexit
4 set -o nounset
5 set -o pipefail
12 # '/repos/qmonnet/bpftool/releases/tags/v7.2.0-snapshot.0' \
13 # --jq '.id'
15 # '/repos/qmonnet/bpftool/releases/96330927/assets' \
16 # --jq '.[] | select(.name == "bpftool-amd64.tar.gz").id'
18 # --method PATCH \
19 # -H "Accept: application/vnd.github+json" \
20 # -H "X-GitHub-Api-Version: 2022-11-28" \
[all …]
/external/bpftool/
DREADME.md1 bpftool chapter
4 This is a mirror of [bpf-next Linux source tree's
5 `tools/bpf/bpftool`](https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git/tree/tools/bp…
9 All the gory details of syncing can be found in `scripts/sync-kernel.sh`
14 [bpf-next](https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git/)'s
17 BPF/bpftool usage and questions
18 -------------------------------
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
[all …]
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_bpftool_build.sh2 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
5 -h|--help)
6 echo -e "$0 [-j <n>]"
7 echo -e "\tTest the different ways of building bpftool."
8 echo -e ""
9 echo -e "\tOptions:"
10 echo -e "\t\t-j <n>:\tPass -j flag to 'make'."
19 SCRIPT_REL_PATH=$(realpath --relative-to=$PWD $0)
23 if [ ! -e tools/bpf/bpftool/Makefile ]; then
24 echo -e "skip: bpftool files not found!\n"
[all …]
Dtest_bpftool_metadata.sh2 # SPDX-License-Identifier: GPL-2.0
4 # Kselftest framework requirement - SKIP code is 4.
14 rm -rf $BPF_DIR 2> /dev/null
35 if [ $(id -u) -ne 0 ]; then
40 if [ -z "$BPF_FS" ]; then
45 if ! bpftool version > /dev/null 2>&1; then
46 echo "selftests: $TESTNAME [SKIP] Could not run test without bpftool"
50 set -e
58 bpftool prog load metadata_unused.o $BPF_DIR/unused
60 METADATA_PLAIN="$(bpftool prog)"
[all …]
DMakefile1 # SPDX-License-Identifier: GPL-2.0
13 BPFTOOLDIR := $(TOOLSDIR)/bpf/bpftool
17 HOSTPKG_CONFIG := pkg-config
20 GENFLAGS := -DHAVE_GENHDR
23 BPF_GCC ?= $(shell command -v bpf-gcc;)
25 CFLAGS += -g -O0 -rdynamic -Wall -Werror $(GENFLAGS) $(SAN_CFLAGS) \
26 -I$(CURDIR) -I$(INCLUDE_DIR) -I$(GENDIR) -I$(LIBDIR) \
27 -I$(TOOLSINCDIR) -I$(APIDIR) -I$(OUTPUT)
29 LDLIBS += -lelf -lz -lrt -lpthread
33 CFLAGS += -Wno-unused-command-line-argument
[all …]
Dtest_bpftool_synctypes.py2 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
13 os.path.join(LINUX_ROOT, 'tools/bpf/bpftool'))
15 os.path.join(BPFTOOL_DIR, 'bash-completion'))
61 A parser for extracting a set of values from some BPF-related arrays.
230 pattern = re.compile('\*\*([\w/-]+)\*\*')
237 bpftool, for example:
256 a macro in bpftool, for example:
259 " {-f|--bpffs} | {-m|--mapcompat} | {-n|--nomount} }\\n"
263 {'-f', '--bpffs', '-m', '--mapcompat', '-n', '--nomount'}
268 pattern = re.compile('([\w-]+) ?(?:\||}[ }\]])')
[all …]
/external/bpftool/src/
DMakefile1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
36 # which are not otherwise exported by libbpf, but still required by bpftool.
41 $(QUIET_MKDIR)mkdir -p $@
44 $(Q)$(MAKE) -C $(BPF_DIR) OBJDIR=$(patsubst %/,%,$(LIBBPF_OUTPUT)) \
49 $(Q)install -m 644 -t $(LIBBPF_HDRS_DIR) $<
52 $(Q)$(MAKE) -C $(BPF_DIR) OBJDIR=$(patsubst %/,%,$(LIBBPF_BOOTSTRAP_OUTPUT)) \
58 $(Q)install -m 644 -t $(LIBBPF_BOOTSTRAP_HDRS_DIR) $<
60 $(LIBBPF)-clean: FORCE | $(LIBBPF_OUTPUT)
62 $(Q)$(MAKE) -C $(BPF_DIR) OUTPUT=$(LIBBPF_OUTPUT) clean >/dev/null
64 $(LIBBPF_BOOTSTRAP)-clean: FORCE | $(LIBBPF_BOOTSTRAP_OUTPUT)
[all …]

1234