public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/rr/files/, dev-util/rr/
Date: Wed, 12 Apr 2023 07:59:47 +0000 (UTC)	[thread overview]
Message-ID: <1681286258.42256835f74c6385d941e262dcdbfa816af5f01e.sam@gentoo> (raw)

commit:     42256835f74c6385d941e262dcdbfa816af5f01e
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 12 07:56:26 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Apr 12 07:57:38 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42256835

dev-util/rr: drop epoll_pwait2 backport

I only chucked it in because I (wrongly) thought it was needed for the
GCC 13 workaround to cleanly apply, but it isn't. I was just confused
by the spelling commit thing.

We could keep this but as jubalh points out, there's a bunch of subsequent
commits that fixup and enhance epoll_pwait2 support, so let's just leave
it for now & drop it.

I've also asked upstream if there's a release forthcoming & such, so
let's see what happens with that.

Bug: https://github.com/rr-debugger/rr/issues/3494
Fixes: f5e0ac5711c94279073106adf04977cb07db37c7
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-util/rr/files/rr-5.6.0-epoll_pwait2.patch      | 78 ----------------------
 .../rr/{rr-5.6.0-r3.ebuild => rr-5.6.0-r4.ebuild}  |  1 -
 2 files changed, 79 deletions(-)

diff --git a/dev-util/rr/files/rr-5.6.0-epoll_pwait2.patch b/dev-util/rr/files/rr-5.6.0-epoll_pwait2.patch
deleted file mode 100644
index 02d90d36e7dc..000000000000
--- a/dev-util/rr/files/rr-5.6.0-epoll_pwait2.patch
+++ /dev/null
@@ -1,78 +0,0 @@
-https://github.com/rr-debugger/rr/commit/7d1b31dd76d18e9e810455f4abd804e76b0a6c1f
-
-From 7d1b31dd76d18e9e810455f4abd804e76b0a6c1f Mon Sep 17 00:00:00 2001
-From: Robert O'Callahan <robert@ocallahan.org>
-Date: Sun, 26 Mar 2023 23:52:44 +1300
-Subject: [PATCH] Support epoll_pwait2
-
-Resolves #3462
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -933,6 +933,7 @@ set(BASIC_TESTS
-   epoll_edge
-   epoll_many
-   epoll_pwait_eintr_sigmask
-+  epoll_pwait2
-   eventfd
-   exec_flags
-   exec_no_env
---- a/src/record_syscall.cc
-+++ b/src/record_syscall.cc
-@@ -4841,6 +4841,7 @@ static Switchable rec_prepare_syscall_arch(RecordTask* t,
-               sizeof(typename Arch::epoll_event)));
-       return ALLOW_SWITCH;
- 
-+    case Arch::epoll_pwait2:
-     case Arch::epoll_pwait: {
-       syscall_state.reg_parameter(
-           2, ParamSize::from_syscall_result<int>(sizeof(typename Arch::epoll_event) * regs.arg3_signed(),
---- a/src/syscalls.py
-+++ b/src/syscalls.py
-@@ -1729,7 +1729,7 @@ def __init__(self, **kwargs):
- openat2 = UnsupportedSyscall(x86=437, x64=437, generic=437)
- pidfd_getfd = UnsupportedSyscall(x86=438, x64=438, generic=438)
- process_madvise = UnsupportedSyscall(x86=440, x64=440, generic=440)
--epoll_pwait2 = UnsupportedSyscall(x86=441, x64=441, generic=441)
-+epoll_pwait2 = IrregularEmulatedSyscall(x86=441, x64=441, generic=441)
- mount_setattr = UnsupportedSyscall(x86=442, x64=442, generic=442)
- quotactl_fd = UnsupportedSyscall(x86=443, x64=443, generic=443)
- landlock_create_ruleset = UnsupportedSyscall(x86=444, x64=444, generic=444)
---- /dev/null
-+++ b/src/test/epoll_pwait2.c
-@@ -0,0 +1,35 @@
-+/* -*- Mode: C; tab-width: 8; c-basic-offset: 2; indent-tabs-mode: nil; -*- */
-+
-+#include "util.h"
-+
-+static void handle_sig(__attribute__((unused)) int sig) {
-+  /* Don't do anything, just go through the signal handler motions */
-+}
-+
-+int main(void) {
-+  int pipe_fd[2];
-+  int epfd;
-+  struct timespec ts = { 5, 0 };
-+  struct epoll_event ev;
-+  sigset_t sigmask;
-+  sigemptyset(&sigmask);
-+  sigaddset(&sigmask, SIGCHLD);
-+
-+  signal(SIGALRM, handle_sig);
-+
-+  test_assert(0 == pipe(pipe_fd));
-+  test_assert(0 <= (epfd = epoll_create(1 /*num events*/)));
-+
-+  ev.events = EPOLLIN;
-+  ev.data.fd = pipe_fd[0];
-+  test_assert(0 == epoll_ctl(epfd, EPOLL_CTL_ADD, ev.data.fd, &ev));
-+
-+  // Make sure something will wake us from the epoll_pwait2.
-+  alarm(1);
-+  // But also use the epoll_pwait to modify the signal mask.
-+  epoll_pwait2(epfd, &ev, 1, &ts, &sigmask);
-+  test_assert(errno == EINTR || errno == ENOSYS);
-+
-+  atomic_puts("EXIT-SUCCESS");
-+  return 0;
-+}
-

diff --git a/dev-util/rr/rr-5.6.0-r3.ebuild b/dev-util/rr/rr-5.6.0-r4.ebuild
similarity index 97%
rename from dev-util/rr/rr-5.6.0-r3.ebuild
rename to dev-util/rr/rr-5.6.0-r4.ebuild
index bdd724733aaa..559533e754a6 100644
--- a/dev-util/rr/rr-5.6.0-r3.ebuild
+++ b/dev-util/rr/rr-5.6.0-r4.ebuild
@@ -47,7 +47,6 @@ PATCHES=(
 	"${FILESDIR}"/${P}-linux-headers-6.0.patch
 	"${FILESDIR}"/${P}-tests-clang16.patch
 	"${FILESDIR}"/${P}-gcc13.patch
-	"${FILESDIR}"/${P}-epoll_pwait2.patch
 	"${FILESDIR}"/${P}-gcc13-workaround.patch
 )
 


             reply	other threads:[~2023-04-12  7:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-12  7:59 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-03-15  3:39 [gentoo-commits] repo/gentoo:master commit in: dev-util/rr/files/, dev-util/rr/ Sam James
2019-11-12  7:53 Sergei Trofimovich
2019-02-14 22:49 Sergei Trofimovich
2019-01-06 16:32 Sergei Trofimovich
2017-02-13 21:19 Mike Frysinger

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=1681286258.42256835f74c6385d941e262dcdbfa816af5f01e.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox