Skip to content

Commit c2eeac9

Browse files
Nakamura-Shunsukeacmel
authored andcommitted
libperf tests: Fix typo in perf_evlist__open() failure error messages
This patch corrects typos in error messages. I should be "evlist", not "evsel" as the function that fails is perf_evlist__open(). Fixes: 3ce311a ("libperf: Move to tools/lib/perf") Fixes: a7f3713 ("libperf tests: Add test_stat_multiplexing test") Signed-off-by: Shunsuke Nakamura <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 1314376 commit c2eeac9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/lib/perf/tests/test-evlist.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ static int test_stat_cpu(void)
6969
perf_evlist__set_maps(evlist, cpus, NULL);
7070

7171
err = perf_evlist__open(evlist);
72-
__T("failed to open evsel", err == 0);
72+
__T("failed to open evlist", err == 0);
7373

7474
perf_evlist__for_each_evsel(evlist, evsel) {
7575
cpus = perf_evsel__cpus(evsel);
@@ -130,7 +130,7 @@ static int test_stat_thread(void)
130130
perf_evlist__set_maps(evlist, NULL, threads);
131131

132132
err = perf_evlist__open(evlist);
133-
__T("failed to open evsel", err == 0);
133+
__T("failed to open evlist", err == 0);
134134

135135
perf_evlist__for_each_evsel(evlist, evsel) {
136136
perf_evsel__read(evsel, 0, 0, &counts);
@@ -187,7 +187,7 @@ static int test_stat_thread_enable(void)
187187
perf_evlist__set_maps(evlist, NULL, threads);
188188

189189
err = perf_evlist__open(evlist);
190-
__T("failed to open evsel", err == 0);
190+
__T("failed to open evlist", err == 0);
191191

192192
perf_evlist__for_each_evsel(evlist, evsel) {
193193
perf_evsel__read(evsel, 0, 0, &counts);
@@ -507,7 +507,7 @@ static int test_stat_multiplexing(void)
507507
perf_evlist__set_maps(evlist, NULL, threads);
508508

509509
err = perf_evlist__open(evlist);
510-
__T("failed to open evsel", err == 0);
510+
__T("failed to open evlist", err == 0);
511511

512512
perf_evlist__enable(evlist);
513513

0 commit comments

Comments
 (0)