Home
last modified time | relevance | path

Searched +full:libbpf +full:- +full:tools (Results 1 – 25 of 91) sorted by relevance

1234

/external/bcc/debian/
Dchangelog1 bcc (0.28.0-1) unstable; urgency=low
4 * new libbpf tool: tcppktlat.
6 * libbpf tool update: memleak, tcprtt, tcpconnlat, funclatency, syscount, cpufreq, biosnoop.
7 * support ringbuf_query for bcc tools.
9 * Fix maximum allowed index for print_linear_hist for bcc tools.
12 … with available_filter_functions to make multi-functions kprobes more robust for both bcc and libb…
13 * doc update, other bug fixes and tools improvement
15 -- Yonghong Song <ys114321@gmail.com> Wed, 28 Jun 2023 17:00:00 +0000
17 bcc (0.27.0-1) unstable; urgency=low
21 …* libbpf-tools updates for mdflush, drsnoop, statsnoop, ttysnoop, softirqs, wakeuptime, cachestat,…
[all …]
/external/libbpf/
DREADME.md2 …<source media="(prefers-color-scheme: dark)" srcset="assets/libbpf-logo-sideways-darkbg.png" width…
3 <img src="assets/libbpf-logo-sideways.png" width="40%">
6 libbpf
7 …uilds & Tests](https://github.com/libbpf/libbpf/actions/workflows/test.yml/badge.svg)](https://git…
8 …verity](https://img.shields.io/coverity/scan/18195.svg)](https://scan.coverity.com/projects/libbpf)
9 [![CodeQL](https://github.com/libbpf/libbpf/workflows/CodeQL/badge.svg?branch=master)](https://gith…
10-Fuzz Status](https://oss-fuzz-build-logs.storage.googleapis.com/badges/libbpf.svg)](https://oss-f…
11 [![Read the Docs](https://readthedocs.org/projects/libbpf/badge/?version=latest)](https://libbpf.re…
14 **This is the official home of the libbpf library.**
16 *Please use this Github repository for building and packaging libbpf
[all …]
DSYNC.md2 …<source media="(prefers-color-scheme: dark)" srcset="assets/libbpf-logo-sideways-darkbg.png" width…
3 <img src="assets/libbpf-logo-sideways.png" width="40%">
6 Libbpf sync
9 Libbpf *authoritative source code* is developed as part of [bpf-next Linux source
10 tree](https://kernel.googlesource.com/pub/scm/linux/kernel/git/bpf/bpf-next) under
11 `tools/lib/bpf` subdirectory and is periodically synced to Github.
13 Most of the mundane mechanical things like bpf and bpf-next tree merge, Git
14 history transformation, cherry-picking relevant commits, re-generating
15 auto-generated headers, etc. are taken care by
16 [sync-kernel.sh script](https://github.com/libbpf/libbpf/blob/master/scripts/sync-kernel.sh).
[all …]
DAndroid.bp7 // http://www.apache.org/licenses/LICENSE-2.0
19 // See: http://go/android-license-faq
24 "SPDX-license-identifier-BSD-2-Clause",
25 "SPDX-license-identifier-Linux-syscall-note",
28 "LICENSE.BSD-2-Clause",
37 cmd: "mkdir -p $(genDir)/bpf && cp $(in) $(genDir)/bpf/",
48 "bpf/libbpf.h",
59 name: "libbpf",
75 "-DCOMPAT_NEED_REALLOCARRAY",
76 "-include android/android.h",
[all …]
/external/libbpf/scripts/
Dsync-kernel.sh4 echo "USAGE: ./sync-kernel.sh <libbpf-repo> <kernel-repo> <bpf-branch>"
6 …echo "Set BPF_NEXT_BASELINE to override bpf-next tree commit, otherwise read from <libbpf-repo>/CH…
7 …BPF_BASELINE to override bpf tree commit, otherwise read from <libbpf-repo>/BPF-CHECKPOINT-COMMIT."
8 echo "Set MANUAL_MODE to 1 to manually control every cherry-picked commits."
12 set -eu
14 LIBBPF_REPO=${1-""}
15 LINUX_REPO=${2-""}
16 BPF_BRANCH=${3-""}
17 BASELINE_COMMIT=${BPF_NEXT_BASELINE:-$(cat ${LIBBPF_REPO}/CHECKPOINT-COMMIT)}
18 BPF_BASELINE_COMMIT=${BPF_BASELINE:-$(cat ${LIBBPF_REPO}/BPF-CHECKPOINT-COMMIT)}
[all …]
/external/bcc/libbpf-tools/
DREADME.md2 ------------
4 - [BPF Portability and CO-RE](https://facebookmicrosites.github.io/bpf/blog/2020/02/19/bpf-portabil…
5 - [HOWTO: BCC to libbpf conversion](https://facebookmicrosites.github.io/bpf/blog/2020/02/20/bcc-to
6 - [Tips & tricks for writing libbpf-tools](https://en.pingcap.com/blog/tips-and-tricks-for-writing-
9 -------
11 To build libbpf-based tools, simply run `make`. This will build all the listed
12 tools/applications. All the build artifacts, by default, go into .output
18 Given that the libbpf package might not be available across wide variety of
19 distributions, all libbpf-based tools are linked statically against a version
20 of libbpf that BCC links against (from submodule under src/cc/libbpf). This
[all …]
DMakefile1 # SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
4 LLVM_STRIP ?= llvm-strip
8 LIBBPF_SRC := $(abspath ../src/cc/libbpf/src)
9 LIBBPF_OBJ := $(abspath $(OUTPUT)/libbpf.a)
11 INCLUDES := -I$(OUTPUT) -I../src/cc/libbpf/include/uapi
12 CFLAGS := -g -O2 -Wall
13 BPFCFLAGS := -g -O2 -Wall
16 ARCH ?= $(shell uname -m | sed 's/x86_64/x86/' | sed 's/aarch64/arm64/' \
19 BTFHUB_ARCHIVE ?= $(abspath btfhub-archive)
120 define allow-override
[all …]
Dnumamove.c1 // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
4 // Based on numamove(8) from BPF-Perf-Tools-Book by Brendan Gregg.
5 // 8-Jun-2020 Wenbo Zhang Created this.
6 // 30-Jan-2023 Rong Tao Use fentry_can_attach() to decide use fentry/kprobe.
12 #include <bpf/libbpf.h>
25 "https://github.com/iovisor/bcc/tree/master/libbpf-tools";
29 "USAGE: numamove [--help]\n"
92 if (!obj->bss) { in main()
93 …fprintf(stderr, "Memory-mapping BPF maps is supported starting from Linux 5.7, please upgrade.\n"); in main()
99 bpf_program__set_autoload(obj->progs.kprobe_migrate_misplaced_page, false); in main()
[all …]
Dreadahead.c1 // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
4 // Based on readahead(8) from BPF-Perf-Tools-Book by Brendan Gregg.
5 // 8-Jun-2020 Wenbo Zhang Created this.
10 #include <bpf/libbpf.h>
20 .duration = -1
27 "https://github.com/iovisor/bcc/tree/master/libbpf-tools";
29 "Show fs automatic read-ahead usage.\n"
31 "USAGE: readahead [--help] [-d DURATION]\n"
34 " readahead # summarize on-CPU time as a histogram\n"
35 " readahead -d 10 # trace for 10 seconds only\n";
[all …]
Djavagc.c1 /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
14 #include <bpf/libbpf.h>
29 .pid = -1,
37 "https://github.com/iovisor/bcc/tree/master/libbpf-tools";
42 "USAGE: javagc [--help] [-p PID] [-t GC time]\n"
45 "javagc -p 185 # trace PID 185 only\n"
46 "javagc -p 185 -t 100 # trace PID 185 java gc time beyond 100us\n";
109 printf("%-8s %-7d %-7d %-7lld\n", ts, e->cpu, e->pid, e->ts/1000); in handle_event()
132 return -1; in get_jvmso_path()
134 while (fscanf(f, "%zx-%zx %s %zx %*s %*d%[^\n]\n", in get_jvmso_path()
[all …]
/external/bpftool/scripts/
Dsync-kernel.sh4 echo "USAGE: ./sync-kernel.sh <bpftool-repo> <kernel-repo>"
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 …_TIP_COMMIT to override bpf-next tree target commit, otherwise read from <bpftool-repo>/libbpf/CHE…
17 …bpf tree target commit, otherwise read from <bpftool-repo>/libbpf/BPF-CHECKPOINT-COMMIT, after lib…
[all …]
Dsync-kernel-expected-diff.patch1 --- docs/Makefile
3 @@ -1,5 +1,5 @@
4 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
5 -include ../../../scripts/Makefile.include
9 RM ?= rm -f
10 --- src/.gitignore
12 @@ -1,8 +1,8 @@
13 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
18 -bpftool*.8
19 FEATURE-DUMP.bpftool
[all …]
/external/bcc/
DCMakeLists.txt19 add_compile_options(-fsanitize=${CMAKE_SANITIZE_TYPE})
20 add_link_options(-fsanitize=${CMAKE_SANITIZE_TYPE})
29 execute_process(COMMAND git config --global --add safe.directory ${CMAKE_CURRENT_SOURCE_DIR}
38 …execute_process(COMMAND git config --global --add safe.directory ${CMAKE_CURRENT_SOURCE_DIR}/libbp…
45 execute_process(COMMAND git submodule update --init --recursive -- libbpf-tools/blazesym
53 # populate submodules (libbpf)
55 …execute_process(COMMAND git config --global --add safe.directory ${CMAKE_CURRENT_SOURCE_DIR}/src/c…
59 message(WARNING "Failed to add libbpf source directory to safe.directory")
61 …execute_process(COMMAND git config --global --add safe.directory ${CMAKE_CURRENT_SOURCE_DIR}/libbp…
68 if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/src/cc/libbpf/src)
[all …]
DINSTALL.md3 * [Kernel Configuration](#kernel-configuration)
5 - [Debian](#debian---binary)
6 - [Ubuntu](#ubuntu---binary)
7 - [Fedora](#fedora---binary)
8 - [Arch](#arch---binary)
9 - [Gentoo](#gentoo---portage)
10 - [openSUSE](#opensuse---binary)
11 - [RHEL](#rhel---binary)
12 - [Amazon Linux 1](#amazon-linux-1---binary)
13 - [Amazon Linux 2](#amazon-linux-2---binary)
[all …]
/external/libbpf/.github/actions/vmtest/
Daction.yml20 - name: Setup environment
21 uses: libbpf/ci/setup-build-env@main
25 - name: Get checkpoint commit
28 cat CHECKPOINT-COMMIT
29 echo "CHECKPOINT=$(cat CHECKPOINT-COMMIT)" >> $GITHUB_ENV
30 - name: Get kernel source at checkpoint
31 uses: libbpf/ci/get-linux-source@main
33 repo: 'https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git'
36 - name: Patch kernel source
37 uses: libbpf/ci/patch-kernel@main
[all …]
/external/bcc/src/cc/
DREADME1 The libbpf directory is a git submodule for repository
2 https://github.com/libbpf/libbpf
4 If you have any change in libbpf directory, please upstream to linux
5 first as libbpf repo is a mirror of linux/tools/lib/bpf directory.
7 If any top-commit update of libbpf submodule contains a uapi header
10 1. sync compat/linux/virtual_bpf.h with libbpf/include/uapi/linux/bpf.h
14 in bcc:src/cc/libbpf.c.
/external/bpftool/
DREADME.md4 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
15 `tools/include/linux/*.h` to make compilation successful.
18 -------------------------------
22 post](https://qmonnet.github.io/whirl-offload/2021/09/23/bpftool-features-thread/).
26 it [here](http://vger.kernel.org/vger-lists.html#bpf) and search its archive
37 ------------
41 - libelf
[all …]
/external/libbpf/.github/
DPULL_REQUEST_TEMPLATE.md3libbpf` authoritative source code is developed as part of bpf-next Linux source tree under tools/l…
/external/bpftool/src/
DMakefile1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
14 BPF_DIR = $(srctree)/libbpf/src
23 LIBBPF_OUTPUT := $(_OUTPUT)libbpf/
27 LIBBPF := $(LIBBPF_OUTPUT)libbpf.a macro
29 LIBBPF_BOOTSTRAP_OUTPUT := $(BOOTSTRAP_OUTPUT)libbpf/
33 LIBBPF_BOOTSTRAP := $(LIBBPF_BOOTSTRAP_OUTPUT)libbpf.a
36 # which are not otherwise exported by libbpf, but still required by bpftool.
41 $(QUIET_MKDIR)mkdir -p $@
43 $(LIBBPF): $(wildcard $(BPF_DIR)/*.[ch] $(BPF_DIR)/Makefile) | $(LIBBPF_OUTPUT)
44 $(Q)$(MAKE) -C $(BPF_DIR) OBJDIR=$(patsubst %/,%,$(LIBBPF_OUTPUT)) \
[all …]
/external/zstd/
DAndroid.bp5 // Added automatically by a large-scale-change that took the approach of
19 // large-scale-change included anything that looked like it might be a license
23 // See: http://go/android-license-faq
28 "SPDX-license-identifier-BSD",
29 "SPDX-license-identifier-CC0-1.0",
30 "SPDX-license-identifier-GPL",
31 "SPDX-license-identifier-GPL-2.0",
32 "SPDX-license-identifier-GPL-3.0",
33 "SPDX-license-identifier-LGPL",
34 "SPDX-license-identifier-MIT",
[all …]
/external/linux-kselftest/tools/testing/selftests/bpf/
DMakefile1 # SPDX-License-Identifier: GPL-2.0
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
42 test_progs-no_alu32
[all …]
DREADME.rst7 __ /Documentation/bpf/bpf_devel_QA.rst#q-how-to-run-bpf-selftests
13 It's now possible to run the selftests using ``tools/testing/selftests/bpf/vmtest.sh``.
15 would be run post-submit in the CI used by the Maintainers.
19 bpf selftests, runs them (by default ``tools/testing/selftests/bpf/test_progs``) and
23 - clang (preferably built from sources, https://github.com/llvm/llvm-project);
24 - pahole (preferably built from sources, https://git.kernel.org/pub/scm/devel/pahole/pahole.git/);
25 - qemu;
26 - docutils (for ``rst2man``);
27 - libcap-devel.
31 .. code-block:: console
[all …]
Dvmtest.sh2 # SPDX-License-Identifier: GPL-2.0
4 set -u
5 set -e
10 ARCH="$(uname -m)"
13 QEMU_BINARY=qemu-system-s390x
15 QEMU_FLAGS=(-smp 2)
19 QEMU_BINARY=qemu-system-x86_64
21 QEMU_FLAGS=(-cpu host -smp 8)
33 KCONFIG_REL_PATHS=("tools/testing/selftests/bpf/config" "tools/testing/selftests/bpf/config.${ARCH}…
34 INDEX_URL="https://raw.githubusercontent.com/libbpf/ci/master/INDEX"
[all …]
/external/elfutils/
DAndroid.bp7 // http://www.apache.org/licenses/LICENSE-2.0
16 // CONSULT THE OWNERS AND opensource-licensing@google.com BEFORE
22 // http://go/android-license-faq
27 "SPDX-license-identifier-Apache-2.0",
28 "SPDX-license-identifier-BSD",
29 "SPDX-license-identifier-GFDL", // by exception only
30 "SPDX-license-identifier-GPL-2.0-or-later",
31 "SPDX-license-identifier-GPL-3.0-or-later",
32 "SPDX-license-identifier-LGPL-3.0-or-later",
36 "COPYING-GPLV2",
[all …]
/external/libbpf/src/
Dlibbpf_internal.h1 /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
4 * Internal libbpf helpers.
21 /* make sure libbpf doesn't use kernel-only integer typedefs */
24 /* prevent accidental re-addition of reallocarray() */
27 #include "libbpf.h"
93 (offsetof(TYPE, FIELD) + sizeof(((TYPE *)0)->FIELD))
104 (strncmp(str, pfx, __builtin_constant_p(pfx) ? sizeof(pfx) - 1 : strlen(pfx)) == 0)
114 return strcmp(str + str_len - sfx_len, sfx) == 0; in str_has_sfx()
152 libbpf_print(level, "libbpf: " fmt, ##__VA_ARGS__); \
167 int fd; /* hook FD, -1 if not applicable */
[all …]

1234