aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/c++/clang.cpp
diff options
context:
space:
mode:
authorWang Nan <[email protected]>2016-11-26 07:03:30 +0000
committerArnaldo Carvalho de Melo <[email protected]>2016-12-05 18:51:42 +0000
commit2bd42de0e196f89994cbae1990d2c7c5a9b6a529 (patch)
tree38f5ca69a0cd1f64eb89715d6a1933eb5c63ee6c /tools/perf/util/c++/clang.cpp
parentperf tools: Pass context to perf hook functions (diff)
downloadkernel-2bd42de0e196f89994cbae1990d2c7c5a9b6a529.tar.gz
kernel-2bd42de0e196f89994cbae1990d2c7c5a9b6a529.zip
perf llvm: Extract helpers in llvm-utils.c
The following commits will use builtin clang to compile BPF scripts. llvm__get_kbuild_opts() and llvm__get_nr_cpus() are extracted to help building '-DKERNEL_VERSION_CODE' and '-D__NR_CPUS__' macros. Doing object dumping in bpf loader, so further builtin clang compiling needn't consider it. Signed-off-by: Wang Nan <[email protected]> Cc: Alexei Starovoitov <[email protected]> Cc: He Kuang <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Joe Stringer <[email protected]> Cc: Zefan Li <[email protected]> Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/c++/clang.cpp')
0 files changed, 0 insertions, 0 deletions