Skip to content

Commit

Permalink
bump(main/strace): 6.11 -> 6.12 (#22376)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbekkomo authored Nov 26, 2024
1 parent c99dd23 commit 863e644
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/strace/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ TERMUX_PKG_DESCRIPTION="Debugging utility to monitor system calls and signals re
TERMUX_PKG_LICENSE="LGPL-2.1"
TERMUX_PKG_LICENSE_FILE="COPYING, LGPL-2.1-or-later"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="6.11"
TERMUX_PKG_VERSION="6.12"
TERMUX_PKG_SRCURL=https://github.com/strace/strace/releases/download/v$TERMUX_PKG_VERSION/strace-$TERMUX_PKG_VERSION.tar.xz
TERMUX_PKG_SHA256=83262583a3529f02c3501aa8b8ac772b4cbc03dc934e98bab6e4883626e283a5
TERMUX_PKG_SHA256=c47da93be45b6055f4dc741d7f20efaf50ca10160a5b100c109b294fd9c0bdfe
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_DEPENDS="libdw"

Expand Down
43 changes: 43 additions & 0 deletions packages/strace/src-epoll.c.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
diff --git a/src/epoll.c b/src/epoll.c
index 051da6b65..e96e05860 100644
--- a/src/epoll.c
+++ b/src/epoll.c
@@ -10,7 +10,7 @@

#include "defs.h"
#include "kernel_fcntl.h"
-#include <sys/epoll.h>
+#include <linux/eventpoll.h>

SYS_FUNC(epoll_create)
{
@@ -33,20 +33,6 @@ SYS_FUNC(epoll_create1)

#include "xlat/epollevents.h"

-static void
-print_epoll_data(const epoll_data_t data)
-{
- /*
- * We cannot know what format the tracee uses, so
- * print both u32 and u66 which will cover every value.
- */
- tprint_struct_begin();
- PRINT_FIELD_U(data, u32);
- tprint_struct_next();
- PRINT_FIELD_U(data, u64);
- tprint_struct_end();
-}
-
static bool
print_epoll_event(struct tcb *tcp, void *elem_buf, size_t elem_size, void *data)
{
@@ -55,7 +41,7 @@ print_epoll_event(struct tcb *tcp, void *elem_buf, size_t elem_size, void *data)
tprint_struct_begin();
PRINT_FIELD_FLAGS(*ev, events, epollevents, "EPOLL???");
tprint_struct_next();
- PRINT_FIELD_OBJ_VAL(*ev, data, print_epoll_data);
+ PRINT_FIELD_X(*ev, data);
tprint_struct_end();

return true;

0 comments on commit 863e644

Please sign in to comment.