Commit e65f91b2 authored by Kan Liang's avatar Kan Liang Committed by Arnaldo Carvalho de Melo

perf test x86: Support the retire_lat (Retire Latency) sample_type check

Add test for the new field for Retire Latency in the X86 specific test.
Signed-off-by: default avatarKan Liang <kan.liang@linux.intel.com>
Tested-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: https://lore.kernel.org/r/20230202192209.1795329-3-kan.liang@linux.intel.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent ee739f13
...@@ -27,8 +27,10 @@ static bool samples_same(const struct perf_sample *s1, ...@@ -27,8 +27,10 @@ static bool samples_same(const struct perf_sample *s1,
const struct perf_sample *s2, const struct perf_sample *s2,
u64 type) u64 type)
{ {
if (type & PERF_SAMPLE_WEIGHT_STRUCT) if (type & PERF_SAMPLE_WEIGHT_STRUCT) {
COMP(ins_lat); COMP(ins_lat);
COMP(retire_lat);
}
return true; return true;
} }
...@@ -48,6 +50,7 @@ static int do_test(u64 sample_type) ...@@ -48,6 +50,7 @@ static int do_test(u64 sample_type)
struct perf_sample sample = { struct perf_sample sample = {
.weight = 101, .weight = 101,
.ins_lat = 102, .ins_lat = 102,
.retire_lat = 103,
}; };
struct perf_sample sample_out; struct perf_sample sample_out;
size_t i, sz, bufsz; size_t i, sz, bufsz;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment