Skip to content

Commit

Permalink
libperf tests: Fix typo in perf_evlist__open() failure error messages
Browse files Browse the repository at this point in the history
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 <nakamura.shun@fujitsu.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/20220325043829.224045-2-nakamura.shun@fujitsu.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
  • Loading branch information
Shunsuke Nakamura authored and Arnaldo Carvalho de Melo committed Mar 26, 2022
1 parent 1314376 commit c2eeac9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/lib/perf/tests/test-evlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ static int test_stat_cpu(void)
perf_evlist__set_maps(evlist, cpus, NULL);

err = perf_evlist__open(evlist);
__T("failed to open evsel", err == 0);
__T("failed to open evlist", err == 0);

perf_evlist__for_each_evsel(evlist, evsel) {
cpus = perf_evsel__cpus(evsel);
Expand Down Expand Up @@ -130,7 +130,7 @@ static int test_stat_thread(void)
perf_evlist__set_maps(evlist, NULL, threads);

err = perf_evlist__open(evlist);
__T("failed to open evsel", err == 0);
__T("failed to open evlist", err == 0);

perf_evlist__for_each_evsel(evlist, evsel) {
perf_evsel__read(evsel, 0, 0, &counts);
Expand Down Expand Up @@ -187,7 +187,7 @@ static int test_stat_thread_enable(void)
perf_evlist__set_maps(evlist, NULL, threads);

err = perf_evlist__open(evlist);
__T("failed to open evsel", err == 0);
__T("failed to open evlist", err == 0);

perf_evlist__for_each_evsel(evlist, evsel) {
perf_evsel__read(evsel, 0, 0, &counts);
Expand Down Expand Up @@ -507,7 +507,7 @@ static int test_stat_multiplexing(void)
perf_evlist__set_maps(evlist, NULL, threads);

err = perf_evlist__open(evlist);
__T("failed to open evsel", err == 0);
__T("failed to open evlist", err == 0);

perf_evlist__enable(evlist);

Expand Down

0 comments on commit c2eeac9

Please sign in to comment.