Skip to content

Commit 8bda6a6

Browse files
jpoimboeacmel
authored andcommitted
perf test: Add Build file to dependencies for llvm-src-*.c
Because the Build file writes source code to the generated llvm-src-*.c files, it should be listed as one of the dependencies, so that any future changes to the code being echoed won't require a 'make clean'. Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com> Acked-by: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/9b9886c295750dc83cbbb29a665d280f9c5e8b3e.1449965119.git.jpoimboe@redhat.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 26bc9b2 commit 8bda6a6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎tools/perf/tests/Build‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,21 @@ perf-y += llvm.o llvm-src-base.o llvm-src-kbuild.o llvm-src-prologue.o
3535
perf-y += bpf.o
3636
perf-y += topology.o
3737

38-
$(OUTPUT)tests/llvm-src-base.c: tests/bpf-script-example.c
38+
$(OUTPUT)tests/llvm-src-base.c: tests/bpf-script-example.c tests/Build
3939
$(call rule_mkdir)
4040
$(Q)echo '#include <tests/llvm.h>' > $@
4141
$(Q)echo 'const char test_llvm__bpf_base_prog[] =' >> $@
4242
$(Q)sed -e 's/"/\\"/g' -e 's/\(.*\)/"\1\\n"/g' $< >> $@
4343
$(Q)echo ';' >> $@
4444

45-
$(OUTPUT)tests/llvm-src-kbuild.c: tests/bpf-script-test-kbuild.c
45+
$(OUTPUT)tests/llvm-src-kbuild.c: tests/bpf-script-test-kbuild.c tests/Build
4646
$(call rule_mkdir)
4747
$(Q)echo '#include <tests/llvm.h>' > $@
4848
$(Q)echo 'const char test_llvm__bpf_test_kbuild_prog[] =' >> $@
4949
$(Q)sed -e 's/"/\\"/g' -e 's/\(.*\)/"\1\\n"/g' $< >> $@
5050
$(Q)echo ';' >> $@
5151

52-
$(OUTPUT)tests/llvm-src-prologue.c: tests/bpf-script-test-prologue.c
52+
$(OUTPUT)tests/llvm-src-prologue.c: tests/bpf-script-test-prologue.c tests/Build
5353
$(call rule_mkdir)
5454
$(Q)echo '#include <tests/llvm.h>' > $@
5555
$(Q)echo 'const char test_llvm__bpf_test_prologue_prog[] =' >> $@

0 commit comments

Comments
 (0)