[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Y+EWWLaBj1OPrkLo@kernel.org>
Date: Mon, 6 Feb 2023 12:01:44 -0300
From: Arnaldo Carvalho de Melo <acme@...nel.org>
To: kan.liang@...ux.intel.com
Cc: peterz@...radead.org, mingo@...hat.com,
linux-kernel@...r.kernel.org, ak@...ux.intel.com,
eranian@...gle.com, irogers@...gle.com
Subject: Re: [PATCH V3 3/3] perf test: Support the retire_lat check
Em Thu, Feb 02, 2023 at 11:22:09AM -0800, kan.liang@...ux.intel.com escreveu:
> From: Kan Liang <kan.liang@...ux.intel.com>
>
> Add test for the new field for Retire Latency in the X86 specific test.
Is this passing 'perf test' for you?
[root@...co ~]# perf test -v "x86 sample parsing"
74: x86 Sample parsing :
--- start ---
test child forked, pid 72526
Samples differ at 'retire_lat'
parsing failed for sample_type 0x1000000
test child finished with -1
---- end ----
x86 Sample parsing: FAILED!
[root@...co ~]#
- Arnaldo
> Signed-off-by: Kan Liang <kan.liang@...ux.intel.com>
> ---
>
> New patch since V2
>
> tools/perf/arch/x86/tests/sample-parsing.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/tools/perf/arch/x86/tests/sample-parsing.c b/tools/perf/arch/x86/tests/sample-parsing.c
> index 690c7c07e90d..a061e8619267 100644
> --- a/tools/perf/arch/x86/tests/sample-parsing.c
> +++ b/tools/perf/arch/x86/tests/sample-parsing.c
> @@ -27,8 +27,10 @@ static bool samples_same(const struct perf_sample *s1,
> const struct perf_sample *s2,
> u64 type)
> {
> - if (type & PERF_SAMPLE_WEIGHT_STRUCT)
> + if (type & PERF_SAMPLE_WEIGHT_STRUCT) {
> COMP(ins_lat);
> + COMP(retire_lat);
> + }
>
> return true;
> }
> @@ -48,6 +50,7 @@ static int do_test(u64 sample_type)
> struct perf_sample sample = {
> .weight = 101,
> .ins_lat = 102,
> + .retire_lat = 103,
> };
> struct perf_sample sample_out;
> size_t i, sz, bufsz;
> --
> 2.35.1
>
--
- Arnaldo
Powered by blists - more mailing lists