aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/tests/llvm.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/tests/llvm.c')
-rw-r--r--tools/perf/tests/llvm.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/tools/perf/tests/llvm.c b/tools/perf/tests/llvm.c
index 52d55971f66f..512d3620e9f9 100644
--- a/tools/perf/tests/llvm.c
+++ b/tools/perf/tests/llvm.c
@@ -36,7 +36,7 @@ static int test__bpf_parsing(void *obj_buf, size_t obj_buf_sz)
36static int test__bpf_parsing(void *obj_buf __maybe_unused, 36static int test__bpf_parsing(void *obj_buf __maybe_unused,
37 size_t obj_buf_sz __maybe_unused) 37 size_t obj_buf_sz __maybe_unused)
38{ 38{
39 fprintf(stderr, " (skip bpf parsing)"); 39 pr_debug("Skip bpf parsing\n");
40 return 0; 40 return 0;
41} 41}
42#endif 42#endif
@@ -55,7 +55,7 @@ int test__llvm(void)
55 * and clang is not found in $PATH, and this is not perf test -v 55 * and clang is not found in $PATH, and this is not perf test -v
56 */ 56 */
57 if (verbose == 0 && !llvm_param.user_set_param && llvm__search_clang()) { 57 if (verbose == 0 && !llvm_param.user_set_param && llvm__search_clang()) {
58 fprintf(stderr, " (no clang, try 'perf test -v LLVM')"); 58 pr_debug("No clang and no verbosive, skip this test\n");
59 return TEST_SKIP; 59 return TEST_SKIP;
60 } 60 }
61 61
@@ -86,11 +86,8 @@ int test__llvm(void)
86 err = llvm__compile_bpf("-", &obj_buf, &obj_buf_sz); 86 err = llvm__compile_bpf("-", &obj_buf, &obj_buf_sz);
87 87
88 verbose = old_verbose; 88 verbose = old_verbose;
89 if (err) { 89 if (err)
90 if (!verbose) 90 return TEST_FAIL;
91 fprintf(stderr, " (use -v to see error message)");
92 return -1;
93 }
94 91
95 err = test__bpf_parsing(obj_buf, obj_buf_sz); 92 err = test__bpf_parsing(obj_buf, obj_buf_sz);
96 free(obj_buf); 93 free(obj_buf);