Merge branch 'x86-mm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git] / tools / perf / Documentation / perf-config.txt
index 4ac7775..86f3dcc 100644 (file)
@@ -120,6 +120,10 @@ Given a $HOME/.perfconfig like this:
                children = true
                group = true
 
+       [llvm]
+               dump-obj = true
+               clang-opt = -g
+
 You can hide source code of annotate feature setting the config to false with
 
        % perf config annotate.hide_src_code=true
@@ -553,6 +557,33 @@ trace.*::
        trace.show_zeros::
                Do not suppress syscall arguments that are equal to zero.
 
+llvm.*::
+       llvm.clang-path::
+               Path to clang. If omit, search it from $PATH.
+
+       llvm.clang-bpf-cmd-template::
+               Cmdline template. Below lines show its default value. Environment
+               variable is used to pass options.
+               "$CLANG_EXEC -D__KERNEL__ $CLANG_OPTIONS $KERNEL_INC_OPTIONS \
+               -Wno-unused-value -Wno-pointer-sign -working-directory \
+               $WORKING_DIR  -c $CLANG_SOURCE -target bpf -O2 -o -"
+
+       llvm.clang-opt::
+               Options passed to clang.
+
+       llvm.kbuild-dir::
+               kbuild directory. If not set, use /lib/modules/`uname -r`/build.
+               If set to "" deliberately, skip kernel header auto-detector.
+
+       llvm.kbuild-opts::
+               Options passed to 'make' when detecting kernel header options.
+
+       llvm.dump-obj::
+               Enable perf dump BPF object files compiled by LLVM.
+
+       llvm.opts::
+               Options passed to llc.
+
 SEE ALSO
 --------
 linkperf:perf[1]