Lines Matching +full:linux +full:- +full:kernel
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…
6 directory, plus its few dependencies from under `kernel/bpf/`, and its
9 All the gory details of syncing can be found in `scripts/sync-kernel.sh`
12 Some header files in this repo (`include/linux/*.h`) are reduced versions of
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/).
24 All general BPF questions, including kernel functionality, bpftool features and
25 usage, should be sent to bpf@vger.kernel.org mailing list. You can subscribe to
26 it [here](http://vger.kernel.org/vger-lists.html#bpf) and search its archive
27 [here](https://lore.kernel.org/bpf/). Please search the archive before asking
31 bpf@vger.kernel.org is monitored by many more people and they will happily try
37 ------------
41 - libelf
42 - zlib
46 - libbfd (for dumping JIT-compiled program instructions)
47 - libcap (for better feature probing)
48 - kernel BTF information (for profiling programs or showing PIDs of processes
50 - clang/LLVM (idem)
54 -----
62 $ git clone --recurse-submodules https://github.com/libbpf/bpftool.git
69 $ git submodule update --init
109 $ EXTRA_CFLAGS=--static make
117 - Download the appropriate
122 …$ curl -LO https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.0/clang+llvm-15.0.0…
123 $ tar xvf clang+llvm-15.0.0-x86_64-linux-gnu-rhel-8.4.tar.xz
124 $ mv clang+llvm-15.0.0-x86_64-linux-gnu-rhel-8.4 llvm_build
127 - Alternatively, clone and build the LLVM libraries locally.
130 $ git clone https://github.com/llvm/llvm-project.git
132 $ cmake -S llvm-project/llvm -B llvm_build -DCMAKE_BUILD_TYPE=Release
133 $ make -j -C llvm_build llvm-config llvm-libraries
136 2. Build bpftool with `EXTRA_CFLAGS` set to `--static`, and by passing the
137 path to the relevant `llvm-config`.
141 $ LLVM_CONFIG=../../llvm_build/bin/llvm-config EXTRA_CFLAGS=--static make -j -C src
161 -------
163 This work is dual-licensed under the GNU GPL v2.0 (only) license and the
164 BSD 2-clause license. You can choose between one of them if you use this work.
166 `SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)`