Skip to content

Commit

Permalink
selftests/powerpc: Lower run time of count_stcx_fail test
Browse files Browse the repository at this point in the history
The count_stcx_fail test runs for close to or just over 2 minutes, which
means it sometimes times out.

That's overkill for a test that just demonstrates some PMU counters
are working. Drop the 64 billion instruction case, to lower the runtime
to ~30s.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://patch.msgid.link/20241106130453.1741013-1-mpe@ellerman.id.au
  • Loading branch information
mpe committed Nov 7, 2024
1 parent da6ffe8 commit 3b9bde4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tools/testing/selftests/powerpc/pmu/count_stcx_fail.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,6 @@ static int test_body(void)
/* Run for 16Bi instructions */
FAIL_IF(do_count_loop(events, 16000000000, overhead, true));

/* Run for 64Bi instructions */
FAIL_IF(do_count_loop(events, 64000000000, overhead, true));

event_close(&events[0]);
event_close(&events[1]);

Expand Down

0 comments on commit 3b9bde4

Please sign in to comment.