aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/tests/code-reading.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/tests/code-reading.c')
-rw-r--r--tools/perf/tests/code-reading.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/perf/tests/code-reading.c b/tools/perf/tests/code-reading.c
index 313a48c6b2bc..afc9ad0a0515 100644
--- a/tools/perf/tests/code-reading.c
+++ b/tools/perf/tests/code-reading.c
@@ -439,7 +439,7 @@ static int do_test_code_reading(bool try_kcore)
439 .mmap_pages = UINT_MAX, 439 .mmap_pages = UINT_MAX,
440 .user_freq = UINT_MAX, 440 .user_freq = UINT_MAX,
441 .user_interval = ULLONG_MAX, 441 .user_interval = ULLONG_MAX,
442 .freq = 4000, 442 .freq = 500,
443 .target = { 443 .target = {
444 .uses_mmap = true, 444 .uses_mmap = true,
445 }, 445 },
@@ -559,7 +559,13 @@ static int do_test_code_reading(bool try_kcore)
559 evlist = NULL; 559 evlist = NULL;
560 continue; 560 continue;
561 } 561 }
562 pr_debug("perf_evlist__open failed\n"); 562
563 if (verbose) {
564 char errbuf[512];
565 perf_evlist__strerror_open(evlist, errno, errbuf, sizeof(errbuf));
566 pr_debug("perf_evlist__open() failed!\n%s\n", errbuf);
567 }
568
563 goto out_put; 569 goto out_put;
564 } 570 }
565 break; 571 break;