Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Commit

Permalink
scx: Fix selftests
Browse files Browse the repository at this point in the history
We no longer have UEI_KIND or UEI_ECODE. Adjust the hotplug selftest
accordingly. We'll update CI to run these tests in a subsequent patch.

Signed-off-by: David Vernet <[email protected]>
  • Loading branch information
Byte-Lab committed Apr 30, 2024
1 parent 92505bf commit 1ea92e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/testing/selftests/sched_ext/hotplug.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ static enum scx_test_status test_hotplug(bool onlining, bool cbs_defined)
while (!UEI_EXITED(skel, uei))
sched_yield();

SCX_EQ(UEI_KIND(skel, uei), kind);
SCX_EQ(UEI_ECODE(skel, uei), code);
SCX_EQ(skel->data->uei.kind, kind);
SCX_EQ(UEI_REPORT(skel, uei), code);

if (!onlining)
toggle_online_status(1);
Expand Down Expand Up @@ -126,8 +126,8 @@ static enum scx_test_status test_hotplug_attach(void)
kind = SCX_KIND_VAL(SCX_EXIT_UNREG_KERN);
code = SCX_ECODE_VAL(SCX_ECODE_ACT_RESTART) |
SCX_ECODE_VAL(SCX_ECODE_RSN_HOTPLUG);
SCX_EQ(UEI_KIND(skel, uei), kind);
SCX_EQ(UEI_ECODE(skel, uei), code);
SCX_EQ(skel->data->uei.kind, kind);
SCX_EQ(UEI_REPORT(skel, uei), code);

bpf_link__destroy(link);
hotplug__destroy(skel);
Expand Down

0 comments on commit 1ea92e2

Please sign in to comment.