lkml.org 
[lkml]   [2015]   [Sep]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 17/31] perf tests: Enforce LLVM test for BPF test


On 2015/8/29 12:21, Wang Nan wrote:
> diff --git a/tools/perf/tests/Build b/tools/perf/tests/Build
> index c1518bd..8c98409 100644
> --- a/tools/perf/tests/Build
> +++ b/tools/perf/tests/Build
> @@ -32,7 +32,14 @@ perf-y += sample-parsing.o
> perf-y += parse-no-sample-id-all.o
> perf-y += kmod-path.o
> perf-y += thread-map.o
> -perf-y += llvm.o
> +perf-y += llvm.o llvm-src.o
> +
> +$(OUTPUT)tests/llvm-src.c: tests/bpf-script-example.c
This rule requires a $(call rule_mkdir). Will be fixed in next pull request.
> + $(Q)echo '#include <tests/llvm.h>' > $@
> + $(Q)echo 'const char test_llvm__bpf_prog[] =' >> $@
> + $(Q)sed -e 's/"/\\"/g' -e 's/\(.*\)/"\1\\n"/g' $< >> $@
> + $(Q)echo ';' >> $@
> +
>
> perf-$(CONFIG_X86) += perf-time-to-tsc.o
>
>




\
 
 \ /
  Last update: 2015-09-01 08:21    [W:0.264 / U:7.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site