From: Andreas Schwab <schwab@suse.de>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] syscalls/perf_event_open01: Allow EINVAL
Date: Thu, 15 Aug 2024 11:47:21 +0200 [thread overview]
Message-ID: <mvm34n6aziu.fsf@suse.de> (raw)
A request for an unsupported perf event can also result in EINVAL.
Signed-off-by: Andreas Schwab <schwab@suse.de>
---
testcases/kernel/syscalls/perf_event_open/perf_event_open01.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testcases/kernel/syscalls/perf_event_open/perf_event_open01.c b/testcases/kernel/syscalls/perf_event_open/perf_event_open01.c
index 30c0d7594..86a134b51 100644
--- a/testcases/kernel/syscalls/perf_event_open/perf_event_open01.c
+++ b/testcases/kernel/syscalls/perf_event_open/perf_event_open01.c
@@ -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);
--
2.46.0
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next reply other threads:[~2024-08-15 9:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-15 9:47 Andreas Schwab [this message]
2024-08-15 10:15 ` [LTP] [PATCH] syscalls/perf_event_open01: Allow EINVAL Petr Vorel
2024-08-15 10:26 ` Andreas Schwab
2024-08-15 13:30 ` Petr Vorel
2024-08-15 11:27 ` Martin Doucha
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=mvm34n6aziu.fsf@suse.de \
--to=schwab@suse.de \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.