perf clang: Builtin clang and perfhook support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest18 patches 2 repliesIn review
- v330 patches 26 repliesSuperseded
- v134 patches 3 repliesSuperseded
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/18 | perf build: Check LLVM version in feature checktools/ tools/ tools/ +1 more | +29 | 1 reply | |
| 1/18 | perf build: Check LLVM version in feature checktools/ tools/ tools/ +1 more | +28 | 1 reply | |
| 2/18 | perf build: Support dynamic linking clang librariestools/ | +18 | 0 replies | |
| 3/18 | perf clang: Cleanup clang optionstools/ | +1 | 0 replies | |
| 4/18 | perf clang: Pass full path to builtin clangtools/ | +6 | 0 replies | |
| 5/18 | perf clang: Pass CFLAGS to builtin clangtools/ tools/ | +109 | 0 replies | |
| 6/18 | perf clang jit: Wrap llvm::Module using PerfModuletools/ tools/ tools/ | +34 | 0 replies | |
| 7/18 | perf clang jit: Insignt BPF and JIT functions in a Moduletools/ tools/ | +45 | 0 replies | |
| 8/18 | perf clang jit: add PerfModule::doJIT to JIT perfhook functionstools/ tools/ tools/ +3 more | +128 | 0 replies | |
| 9/18 | perf clang jit: Export functions for jitted codetools/ tools/ tools/ +2 more | +32 | 0 replies | |
| 10/18 | perf clang jit: Actually JIT and hook in bpf loadertools/ tools/ tools/ | +53 | 0 replies | |
| 11/18 | perf clang jit: Collect the lowest address in maps section as map_basetools/ tools/ tools/ +1 more | +59 | 0 replies | |
| 12/18 | perf clang jit: Retrive fd of BPF map from its offsettools/ tools/ | +56 | 0 replies | |
| 13/18 | perf clang jit: Allow jitted perf hook access BPF mapstools/ tools/ tools/ +1 more | +94 | 0 replies | |
| 14/18 | perf clang: Link BPF functions declaration into perftools/ tools/ tools/ | +62 | 0 replies | |
| 15/18 | perf clang: Declare BPF functions for BPF scripts automaticallytools/ tools/ tools/ +1 more | +56 | 0 replies | |
| 16/18 | perf clang: Include helpers to BPF scriptstools/ tools/ tools/ +5 more | +25 | 0 replies | |
| 17/18 | perf clang builtin: Define hook helpers by defaulttools/ | +7 | 0 replies | |
| 18/18 | perf clang jit: Export getpid() to perf hooktools/ tools/ | +2 | 0 replies |
Reviews trailers per patch
3 of 19 patches have a Reviewed-by or Acked-by.
| Patch | Alexei Starovoitov |
|---|---|
| 1/18 | |
| 1/18 | |
| 2/18 | |
| 3/18 | |
| 4/18 | |
| 5/18 | |
| 6/18 | |
| 7/18 | A-b |
| 8/18 | A-b |
| 9/18 | |
| 10/18 | |
| 11/18 | |
| 12/18 | |
| 13/18 | A-b |
| 14/18 | |
| 15/18 | |
| 16/18 | |
| 17/18 | |
| 18/18 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v4 00/18] perf clang: Builtin clang and perfhook support
This is version 4 of perf builtin clang and perfhook patch series.
In this patch set:
1. Cleanup options passed to clang.
2. Check LLVM version. Fail if llvm version < 3.9.0, and warn when it > 3.9.0. More version will be allowed after releasing of LLVM 3.9.1 / 4.0.0.
3. Support dynamic linking LLVM and clang libraries.
4. Rebase to Arnaldo's newest perf/core.
Wang Nan (18):
perf build: Check LLVM version in feature check
perf build: Support dynamic linking clang libraries
perf clang: Cleanup clang options
perf clang: Pass full path to builtin clang
perf clang: Pass CFLAGS to builtin clang
perf clang jit: Wrap llvm::Module using PerfModule
perf clang jit: Insignt BPF and JIT functions in a Module perf clang jit: add PerfModule::doJIT to JIT perfhook functions perf clang jit: Export functions for jitted code
perf clang jit: Actually JIT and hook in bpf loader
perf clang jit: Collect the lowest address in maps section as map_base perf clang jit: Retrive fd of BPF map from its offset
perf clang jit: Allow jitted perf hook access BPF maps perf clang: Link BPF functions declaration into perf
perf clang: Declare BPF functions for BPF scripts automatically perf clang: Include helpers to BPF scripts
perf clang builtin: Define hook helpers by default
perf clang jit: Export getpid() to perf hook
tools/build/feature/Makefile | 8 +- tools/build/feature/test-llvm-version.cpp | 12 + tools/build/feature/test-llvm.cpp | 5 + tools/perf/Makefile.config | 8 +- tools/perf/Makefile.perf | 20 +- tools/perf/tests/Build | 2 +- tools/perf/tests/bpf-script-example.c | 30 ++- tools/perf/tests/bpf-script-test-kbuild.c | 2 + tools/perf/tests/bpf-script-test-prologue.c | 6 +- tools/perf/tests/bpf-script-test-relocation.c | 17 +- tools/perf/tests/clang.c | 4 + tools/perf/util/Build | 1 + tools/perf/util/bpf-loader.c | 85 ++++++- tools/perf/util/bpf-loader.h | 19 ++ tools/perf/util/c++/Build | 2 + tools/perf/util/c++/bpf-funcs-str.c | 49 ++++ tools/perf/util/c++/bpf-helper-str.c | 23 ++ tools/perf/util/c++/clang-bpf-includes.h | 13 + tools/perf/util/c++/clang-c.h | 24 +- tools/perf/util/c++/clang-test.cpp | 51 +++- tools/perf/util/c++/clang.cpp | 335 ++++++++++++++++++++++++-- tools/perf/util/c++/clang.h | 47 +++- tools/perf/util/jit-helpers.c | 57 +++++ tools/perf/util/jit-helpers.h | 28 +++ tools/perf/util/llvm-utils.h | 9 +- 25 files changed, 802 insertions(+), 55 deletions(-) create mode 100644 tools/build/feature/test-llvm-version.cpp create mode 100644 tools/perf/util/c++/bpf-funcs-str.c create mode 100644 tools/perf/util/c++/bpf-helper-str.c create mode 100644 tools/perf/util/c++/clang-bpf-includes.h create mode 100644 tools/perf/util/jit-helpers.c create mode 100644 tools/perf/util/jit-helpers.h
Signature · 1 line
2.10.1