[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <d45c758a-4802-be12-c3a6-c39f76efbb6a@linux.intel.com>
Date: Tue, 11 Apr 2023 09:33:54 -0400
From: "Liang, Kan" <kan.liang@...ux.intel.com>
To: tinghao.zhang@...el.com, acme@...nel.org, peterz@...radead.org,
mingo@...hat.com, alexander.shishkin@...ux.intel.com,
jolsa@...nel.org, namhyung@...nel.org, adrian.hunter@...el.com
Cc: linux-kernel@...r.kernel.org, linux-perf-users@...r.kernel.org,
irogers@...gle.com, Yi Ammy <ammy.yi@...el.com>
Subject: Re: [PATCH] perf tests: Fix tests in 'Parse event definition strings'
On 2023-04-11 5:43 a.m., tinghao.zhang@...el.com wrote:
> From: Tinghao Zhang <tinghao.zhang@...el.com>
>
> The 'Test event parsing' test set under 'Parse event definion strings'
> does not apply to hybrid events. Since hybrid events have a dedicated
> test set 'Test parsing of hybrid CPU events', skip these tests on hybrid
> platforms.
>
> Fixes: 7741e03e808a ("perf test: Parse events break apart tests")
> Reported-by: Yi Ammy <ammy.yi@...el.com>
> Signed-off-by: Tinghao Zhang <tinghao.zhang@...el.com>
This patch looks good to me.
Reviewed-by: Kan Liang <kan.liang@...ux.intel.com>
Thanks,
Kan
> ---
> tools/perf/tests/parse-events.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/tools/perf/tests/parse-events.c b/tools/perf/tests/parse-events.c
> index 71a5cb343311..c6949e458e61 100644
> --- a/tools/perf/tests/parse-events.c
> +++ b/tools/perf/tests/parse-events.c
> @@ -2146,6 +2146,9 @@ static int test_events(const struct evlist_test *events, int cnt)
>
> static int test__events2(struct test_suite *test __maybe_unused, int subtest __maybe_unused)
> {
> + if (perf_pmu__has_hybrid())
> + return TEST_SKIP;
> +
> return test_events(test__events, ARRAY_SIZE(test__events));
> }
>
> @@ -2421,7 +2424,7 @@ static int test__pmu_events_alias2(struct test_suite *test __maybe_unused,
> static struct test_case tests__parse_events[] = {
> TEST_CASE_REASON("Test event parsing",
> events2,
> - "permissions"),
> + "permissions or hybrid"),
> TEST_CASE_REASON("Test parsing of \"hybrid\" CPU events",
> hybrid,
> "not hybrid"),
Powered by blists - more mailing lists