[PATCH 0/2] perf bpf: Add helper to support generate BPF object

From: Wang Nan
Date: Thu Jun 16 2016 - 04:03:28 EST


These 2 patch introduce a new perfconfig option (llvm.dump-obj) and a
new cmdline option (perf record --dry-run). Combined together, perf user
is able to generate a BPF object for an embedded platform on a x86
server using perf, instead directly using llvm cmdline and provide -I
options and default macros.

Wang Nan (2):
perf llvm: Allow dump llvm output object file using llvm.dump-obj
perf record: Add --dry-run option to check cmdline options

tools/perf/Documentation/perf-record.txt | 7 ++++++
tools/perf/builtin-record.c | 7 ++++++
tools/perf/util/llvm-utils.c | 42 ++++++++++++++++++++++++++++++++
tools/perf/util/llvm-utils.h | 5 ++++
4 files changed, 61 insertions(+)

--
1.8.3.4