Skip to content

Commit

Permalink
syscalls/perf_event_open01: Allow EINVAL
Browse files Browse the repository at this point in the history
A request for an unsupported perf event can also result in EINVAL.

Link: https://lore.kernel.org/ltp/[email protected]/
Reviewed-by: Petr Vorel <[email protected]>
Reviewed-by: Martin Doucha <[email protected]>
Signed-off-by: Andreas Schwab <[email protected]>
  • Loading branch information
andreas-schwab authored and pevik committed Aug 15, 2024
1 parent 819fdc6 commit e904077
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ static void verify(struct test_case_t *tc)
TEST(perf_event_open(&pe, 0, -1, -1, 0));
if (TEST_RETURN == -1) {
if (TEST_ERRNO == ENOENT || TEST_ERRNO == EOPNOTSUPP ||
TEST_ERRNO == ENODEV) {
TEST_ERRNO == ENODEV || TEST_ERRNO == EINVAL) {
tst_resm(TCONF | TTERRNO,
"perf_event_open for %s not supported",
tc->config_name);
Expand Down

0 comments on commit e904077

Please sign in to comment.