Skip to content

Commit 0e9e7bc

Browse files
Trevor Allisonacmel
authored andcommitted
perf test attr: Add missing int_mist.uop_dropping event to test-stat files
Setup 'struct perf_event_attr' test was failing on EMR cpu because 'perf stat' was providing an event that was not included in the test. Type 4 Config 4269 or 10ad, int_misc.uop_dropping. Add event type=4 config=4269 to test-stat-default and test-stat-detailed-* files with optional=1 so EMR (Emerald Rapids) machines can pass the test. Fixes: d9a6bb9 ("perf vendor events: Update emeraldrapids events/metrics") Reviewed-by: Ian Rogers <irogers@google.com> Signed-off-by: Trevor Allison <tallison@redhat.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Kan Liang <kan.liang@linux.intel.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 72c1813 commit 0e9e7bc

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed

tools/perf/tests/shell/attr/test-stat-default

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,3 +227,10 @@ fd=28
227227
type=4
228228
config=270
229229
optional=1
230+
231+
# PERF_TYPE_RAW / INT_MISC.UOP_DROPPING
232+
[event29:base-stat]
233+
fd=29
234+
type=4
235+
config=4269
236+
optional=1

tools/perf/tests/shell/attr/test-stat-detailed-1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,3 +269,10 @@ fd=32
269269
type=3
270270
config=65538
271271
optional=1
272+
273+
# PERF_TYPE_RAW / INT_MISC.UOP_DROPPING
274+
[event33:base-stat]
275+
fd=33
276+
type=4
277+
config=4269
278+
optional=1

tools/perf/tests/shell/attr/test-stat-detailed-2

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,3 +329,10 @@ fd=38
329329
type=3
330330
config=65540
331331
optional=1
332+
333+
# PERF_TYPE_RAW / INT_MISC.UOP_DROPPING
334+
[event39:base-stat]
335+
fd=39
336+
type=4
337+
config=4269
338+
optional=1

tools/perf/tests/shell/attr/test-stat-detailed-3

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,3 +349,10 @@ fd=40
349349
type=3
350350
config=66048
351351
optional=1
352+
353+
# PERF_TYPE_RAW / INT_MISC.UOP_DROPPING
354+
[event41:base-stat]
355+
fd=41
356+
type=4
357+
config=4269
358+
optional=1

0 commit comments

Comments
 (0)