|
|
b4ec74 |
From 24119509205a17c71de10e913cfc38dc52aa6563 Mon Sep 17 00:00:00 2001
|
|
|
b4ec74 |
From: "Dmitry V. Levin" <ldv@altlinux.org>
|
|
|
b4ec74 |
Date: Sat, 1 Aug 2020 08:00:00 +0000
|
|
|
b4ec74 |
Subject: [PATCH 132/138] tests: check decoding of tkill syscall
|
|
|
b4ec74 |
|
|
|
b4ec74 |
* tests/tkill.c: New file.
|
|
|
b4ec74 |
* tests/gen_tests.in (tkill): New entry.
|
|
|
b4ec74 |
* tests/pure_executables.list: Add tkill.
|
|
|
b4ec74 |
* tests/.gitignore: Likewise.
|
|
|
b4ec74 |
---
|
|
|
b4ec74 |
tests/.gitignore | 1 +
|
|
|
b4ec74 |
tests/gen_tests.in | 1 +
|
|
|
b4ec74 |
tests/pure_executables.list | 1 +
|
|
|
b4ec74 |
tests/tkill.c | 60 +++++++++++++++++++++++++++++++++++++++++++++
|
|
|
b4ec74 |
4 files changed, 63 insertions(+)
|
|
|
b4ec74 |
create mode 100644 tests/tkill.c
|
|
|
b4ec74 |
|
|
|
b4ec74 |
Index: strace-5.7/tests/gen_tests.in
|
|
|
b4ec74 |
===================================================================
|
|
|
b4ec74 |
--- strace-5.7.orig/tests/gen_tests.in 2020-09-09 15:47:07.671767616 +0200
|
|
|
b4ec74 |
+++ strace-5.7/tests/gen_tests.in 2020-09-09 19:30:36.780885588 +0200
|
|
|
b4ec74 |
@@ -668,6 +668,7 @@
|
|
|
b4ec74 |
timerfd_xettime -e trace=timerfd_create,timerfd_settime,timerfd_gettime
|
|
|
b4ec74 |
times -esignal=none
|
|
|
b4ec74 |
times-fail -a12 -e trace=times
|
|
|
b4ec74 |
+tkill -a12 --signal='!cont'
|
|
|
b4ec74 |
trace_clock test_trace_expr 'clock_nanosleep|times' -e%clock
|
|
|
b4ec74 |
trace_creds test_trace_expr '([gs]et[^p]*([gu]id|groups)|caps|prctl|[fl]?chown|print(path-umovestr|strn-umoven)-undumpable|ptrace|quotactl|rt_sigtimedwait|rt_(tg)?sigqueueinfo).*' -e%creds
|
|
|
b4ec74 |
trace_fstat test_trace_expr '' -e%fstat -v -P stat.sample -P /dev/full
|
|
|
b4ec74 |
Index: strace-5.7/tests/pure_executables.list
|
|
|
b4ec74 |
===================================================================
|
|
|
b4ec74 |
--- strace-5.7.orig/tests/pure_executables.list 2020-09-09 15:47:07.671767616 +0200
|
|
|
b4ec74 |
+++ strace-5.7/tests/pure_executables.list 2020-09-09 19:30:36.780885588 +0200
|
|
|
b4ec74 |
@@ -589,6 +589,7 @@
|
|
|
b4ec74 |
timerfd_xettime
|
|
|
b4ec74 |
times
|
|
|
b4ec74 |
times-fail
|
|
|
b4ec74 |
+tkill
|
|
|
b4ec74 |
truncate
|
|
|
b4ec74 |
truncate64
|
|
|
b4ec74 |
ugetrlimit
|
|
|
b4ec74 |
Index: strace-5.7/tests/tkill.c
|
|
|
b4ec74 |
===================================================================
|
|
|
b4ec74 |
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
|
|
b4ec74 |
+++ strace-5.7/tests/tkill.c 2020-09-09 19:21:10.469548041 +0200
|
|
|
b4ec74 |
@@ -0,0 +1,60 @@
|
|
|
b4ec74 |
+/*
|
|
|
b4ec74 |
+ * Check decoding of tkill syscall.
|
|
|
b4ec74 |
+ *
|
|
|
b4ec74 |
+ * Copyright (c) 2020 Dmitry V. Levin <ldv@altlinux.org>
|
|
|
b4ec74 |
+ * All rights reserved.
|
|
|
b4ec74 |
+ *
|
|
|
b4ec74 |
+ * SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
b4ec74 |
+ */
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+#include "tests.h"
|
|
|
b4ec74 |
+#include "scno.h"
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+#ifdef __NR_tkill
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+# include <signal.h>
|
|
|
b4ec74 |
+# include <stdio.h>
|
|
|
b4ec74 |
+# include <unistd.h>
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+static const char *errstr;
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+static long
|
|
|
b4ec74 |
+k_tkill(const unsigned int tid, const unsigned int sig)
|
|
|
b4ec74 |
+{
|
|
|
b4ec74 |
+ const kernel_ulong_t fill = (kernel_ulong_t) 0xdefaced00000000ULL;
|
|
|
b4ec74 |
+ const kernel_ulong_t bad = (kernel_ulong_t) 0xbadc0dedbadc0dedULL;
|
|
|
b4ec74 |
+ const kernel_ulong_t arg1 = fill | tid;
|
|
|
b4ec74 |
+ const kernel_ulong_t arg2 = fill | sig;
|
|
|
b4ec74 |
+ const long rc = syscall(__NR_tkill, arg1, arg2, bad, bad, bad, bad);
|
|
|
b4ec74 |
+ errstr = sprintrc(rc);
|
|
|
b4ec74 |
+ return rc;
|
|
|
b4ec74 |
+}
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+int
|
|
|
b4ec74 |
+main(void)
|
|
|
b4ec74 |
+{
|
|
|
b4ec74 |
+ const int pid = getpid();
|
|
|
b4ec74 |
+ const int bad_pid = -1;
|
|
|
b4ec74 |
+ const int bad_sig = 0xface;
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+ k_tkill(pid, 0);
|
|
|
b4ec74 |
+ printf("tkill(%d, 0) = %s\n", pid, errstr);
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+ k_tkill(pid, SIGCONT);
|
|
|
b4ec74 |
+ printf("tkill(%d, SIGCONT) = %s\n", pid, errstr);
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+ k_tkill(bad_pid, bad_sig);
|
|
|
b4ec74 |
+ printf("tkill(%d, %d) = %s\n", bad_pid, bad_sig, errstr);
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+ k_tkill(bad_pid, -bad_sig);
|
|
|
b4ec74 |
+ printf("tkill(%d, %d) = %s\n", bad_pid, -bad_sig, errstr);
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+ puts("+++ exited with 0 +++");
|
|
|
b4ec74 |
+ return 0;
|
|
|
b4ec74 |
+}
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+#else
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+SKIP_MAIN_UNDEFINED("__NR_tkill")
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+#endif
|
|
|
b4ec74 |
Index: strace-5.7/tests-m32/gen_tests.in
|
|
|
b4ec74 |
===================================================================
|
|
|
b4ec74 |
--- strace-5.7.orig/tests-m32/gen_tests.in 2020-09-09 15:47:07.671767616 +0200
|
|
|
b4ec74 |
+++ strace-5.7/tests-m32/gen_tests.in 2020-09-09 19:30:36.780885588 +0200
|
|
|
b4ec74 |
@@ -668,6 +668,7 @@
|
|
|
b4ec74 |
timerfd_xettime -e trace=timerfd_create,timerfd_settime,timerfd_gettime
|
|
|
b4ec74 |
times -esignal=none
|
|
|
b4ec74 |
times-fail -a12 -e trace=times
|
|
|
b4ec74 |
+tkill -a12 --signal='!cont'
|
|
|
b4ec74 |
trace_clock test_trace_expr 'clock_nanosleep|times' -e%clock
|
|
|
b4ec74 |
trace_creds test_trace_expr '([gs]et[^p]*([gu]id|groups)|caps|prctl|[fl]?chown|print(path-umovestr|strn-umoven)-undumpable|ptrace|quotactl|rt_sigtimedwait|rt_(tg)?sigqueueinfo).*' -e%creds
|
|
|
b4ec74 |
trace_fstat test_trace_expr '' -e%fstat -v -P stat.sample -P /dev/full
|
|
|
b4ec74 |
Index: strace-5.7/tests-m32/pure_executables.list
|
|
|
b4ec74 |
===================================================================
|
|
|
b4ec74 |
--- strace-5.7.orig/tests-m32/pure_executables.list 2020-09-09 15:47:07.671767616 +0200
|
|
|
b4ec74 |
+++ strace-5.7/tests-m32/pure_executables.list 2020-09-09 19:30:36.780885588 +0200
|
|
|
b4ec74 |
@@ -589,6 +589,7 @@
|
|
|
b4ec74 |
timerfd_xettime
|
|
|
b4ec74 |
times
|
|
|
b4ec74 |
times-fail
|
|
|
b4ec74 |
+tkill
|
|
|
b4ec74 |
truncate
|
|
|
b4ec74 |
truncate64
|
|
|
b4ec74 |
ugetrlimit
|
|
|
b4ec74 |
Index: strace-5.7/tests-m32/tkill.c
|
|
|
b4ec74 |
===================================================================
|
|
|
b4ec74 |
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
|
|
b4ec74 |
+++ strace-5.7/tests-m32/tkill.c 2020-09-09 19:21:10.469548041 +0200
|
|
|
b4ec74 |
@@ -0,0 +1,60 @@
|
|
|
b4ec74 |
+/*
|
|
|
b4ec74 |
+ * Check decoding of tkill syscall.
|
|
|
b4ec74 |
+ *
|
|
|
b4ec74 |
+ * Copyright (c) 2020 Dmitry V. Levin <ldv@altlinux.org>
|
|
|
b4ec74 |
+ * All rights reserved.
|
|
|
b4ec74 |
+ *
|
|
|
b4ec74 |
+ * SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
b4ec74 |
+ */
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+#include "tests.h"
|
|
|
b4ec74 |
+#include "scno.h"
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+#ifdef __NR_tkill
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+# include <signal.h>
|
|
|
b4ec74 |
+# include <stdio.h>
|
|
|
b4ec74 |
+# include <unistd.h>
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+static const char *errstr;
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+static long
|
|
|
b4ec74 |
+k_tkill(const unsigned int tid, const unsigned int sig)
|
|
|
b4ec74 |
+{
|
|
|
b4ec74 |
+ const kernel_ulong_t fill = (kernel_ulong_t) 0xdefaced00000000ULL;
|
|
|
b4ec74 |
+ const kernel_ulong_t bad = (kernel_ulong_t) 0xbadc0dedbadc0dedULL;
|
|
|
b4ec74 |
+ const kernel_ulong_t arg1 = fill | tid;
|
|
|
b4ec74 |
+ const kernel_ulong_t arg2 = fill | sig;
|
|
|
b4ec74 |
+ const long rc = syscall(__NR_tkill, arg1, arg2, bad, bad, bad, bad);
|
|
|
b4ec74 |
+ errstr = sprintrc(rc);
|
|
|
b4ec74 |
+ return rc;
|
|
|
b4ec74 |
+}
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+int
|
|
|
b4ec74 |
+main(void)
|
|
|
b4ec74 |
+{
|
|
|
b4ec74 |
+ const int pid = getpid();
|
|
|
b4ec74 |
+ const int bad_pid = -1;
|
|
|
b4ec74 |
+ const int bad_sig = 0xface;
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+ k_tkill(pid, 0);
|
|
|
b4ec74 |
+ printf("tkill(%d, 0) = %s\n", pid, errstr);
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+ k_tkill(pid, SIGCONT);
|
|
|
b4ec74 |
+ printf("tkill(%d, SIGCONT) = %s\n", pid, errstr);
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+ k_tkill(bad_pid, bad_sig);
|
|
|
b4ec74 |
+ printf("tkill(%d, %d) = %s\n", bad_pid, bad_sig, errstr);
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+ k_tkill(bad_pid, -bad_sig);
|
|
|
b4ec74 |
+ printf("tkill(%d, %d) = %s\n", bad_pid, -bad_sig, errstr);
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+ puts("+++ exited with 0 +++");
|
|
|
b4ec74 |
+ return 0;
|
|
|
b4ec74 |
+}
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+#else
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+SKIP_MAIN_UNDEFINED("__NR_tkill")
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+#endif
|
|
|
b4ec74 |
Index: strace-5.7/tests-mx32/gen_tests.in
|
|
|
b4ec74 |
===================================================================
|
|
|
b4ec74 |
--- strace-5.7.orig/tests-mx32/gen_tests.in 2020-09-09 15:47:07.671767616 +0200
|
|
|
b4ec74 |
+++ strace-5.7/tests-mx32/gen_tests.in 2020-09-09 19:30:36.780885588 +0200
|
|
|
b4ec74 |
@@ -668,6 +668,7 @@
|
|
|
b4ec74 |
timerfd_xettime -e trace=timerfd_create,timerfd_settime,timerfd_gettime
|
|
|
b4ec74 |
times -esignal=none
|
|
|
b4ec74 |
times-fail -a12 -e trace=times
|
|
|
b4ec74 |
+tkill -a12 --signal='!cont'
|
|
|
b4ec74 |
trace_clock test_trace_expr 'clock_nanosleep|times' -e%clock
|
|
|
b4ec74 |
trace_creds test_trace_expr '([gs]et[^p]*([gu]id|groups)|caps|prctl|[fl]?chown|print(path-umovestr|strn-umoven)-undumpable|ptrace|quotactl|rt_sigtimedwait|rt_(tg)?sigqueueinfo).*' -e%creds
|
|
|
b4ec74 |
trace_fstat test_trace_expr '' -e%fstat -v -P stat.sample -P /dev/full
|
|
|
b4ec74 |
Index: strace-5.7/tests-mx32/pure_executables.list
|
|
|
b4ec74 |
===================================================================
|
|
|
b4ec74 |
--- strace-5.7.orig/tests-mx32/pure_executables.list 2020-09-09 15:47:07.671767616 +0200
|
|
|
b4ec74 |
+++ strace-5.7/tests-mx32/pure_executables.list 2020-09-09 19:30:36.780885588 +0200
|
|
|
b4ec74 |
@@ -589,6 +589,7 @@
|
|
|
b4ec74 |
timerfd_xettime
|
|
|
b4ec74 |
times
|
|
|
b4ec74 |
times-fail
|
|
|
b4ec74 |
+tkill
|
|
|
b4ec74 |
truncate
|
|
|
b4ec74 |
truncate64
|
|
|
b4ec74 |
ugetrlimit
|
|
|
b4ec74 |
Index: strace-5.7/tests-mx32/tkill.c
|
|
|
b4ec74 |
===================================================================
|
|
|
b4ec74 |
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
|
|
b4ec74 |
+++ strace-5.7/tests-mx32/tkill.c 2020-09-09 19:21:10.469548041 +0200
|
|
|
b4ec74 |
@@ -0,0 +1,60 @@
|
|
|
b4ec74 |
+/*
|
|
|
b4ec74 |
+ * Check decoding of tkill syscall.
|
|
|
b4ec74 |
+ *
|
|
|
b4ec74 |
+ * Copyright (c) 2020 Dmitry V. Levin <ldv@altlinux.org>
|
|
|
b4ec74 |
+ * All rights reserved.
|
|
|
b4ec74 |
+ *
|
|
|
b4ec74 |
+ * SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
b4ec74 |
+ */
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+#include "tests.h"
|
|
|
b4ec74 |
+#include "scno.h"
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+#ifdef __NR_tkill
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+# include <signal.h>
|
|
|
b4ec74 |
+# include <stdio.h>
|
|
|
b4ec74 |
+# include <unistd.h>
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+static const char *errstr;
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+static long
|
|
|
b4ec74 |
+k_tkill(const unsigned int tid, const unsigned int sig)
|
|
|
b4ec74 |
+{
|
|
|
b4ec74 |
+ const kernel_ulong_t fill = (kernel_ulong_t) 0xdefaced00000000ULL;
|
|
|
b4ec74 |
+ const kernel_ulong_t bad = (kernel_ulong_t) 0xbadc0dedbadc0dedULL;
|
|
|
b4ec74 |
+ const kernel_ulong_t arg1 = fill | tid;
|
|
|
b4ec74 |
+ const kernel_ulong_t arg2 = fill | sig;
|
|
|
b4ec74 |
+ const long rc = syscall(__NR_tkill, arg1, arg2, bad, bad, bad, bad);
|
|
|
b4ec74 |
+ errstr = sprintrc(rc);
|
|
|
b4ec74 |
+ return rc;
|
|
|
b4ec74 |
+}
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+int
|
|
|
b4ec74 |
+main(void)
|
|
|
b4ec74 |
+{
|
|
|
b4ec74 |
+ const int pid = getpid();
|
|
|
b4ec74 |
+ const int bad_pid = -1;
|
|
|
b4ec74 |
+ const int bad_sig = 0xface;
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+ k_tkill(pid, 0);
|
|
|
b4ec74 |
+ printf("tkill(%d, 0) = %s\n", pid, errstr);
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+ k_tkill(pid, SIGCONT);
|
|
|
b4ec74 |
+ printf("tkill(%d, SIGCONT) = %s\n", pid, errstr);
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+ k_tkill(bad_pid, bad_sig);
|
|
|
b4ec74 |
+ printf("tkill(%d, %d) = %s\n", bad_pid, bad_sig, errstr);
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+ k_tkill(bad_pid, -bad_sig);
|
|
|
b4ec74 |
+ printf("tkill(%d, %d) = %s\n", bad_pid, -bad_sig, errstr);
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+ puts("+++ exited with 0 +++");
|
|
|
b4ec74 |
+ return 0;
|
|
|
b4ec74 |
+}
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+#else
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+SKIP_MAIN_UNDEFINED("__NR_tkill")
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
+#endif
|
|
|
b4ec74 |
Index: strace-5.7/tests-m32/Makefile.in
|
|
|
b4ec74 |
===================================================================
|
|
|
b4ec74 |
--- strace-5.7.orig/tests-m32/Makefile.in 2020-09-09 15:47:07.671767616 +0200
|
|
|
b4ec74 |
+++ strace-5.7/tests-m32/Makefile.in 2020-09-09 19:32:14.800944013 +0200
|
|
|
b4ec74 |
@@ -496,14 +496,15 @@
|
|
|
b4ec74 |
sysinfo$(EXEEXT) syslog$(EXEEXT) tee$(EXEEXT) time$(EXEEXT) \
|
|
|
b4ec74 |
timer_create$(EXEEXT) timer_xettime$(EXEEXT) \
|
|
|
b4ec74 |
timerfd_xettime$(EXEEXT) times$(EXEEXT) times-fail$(EXEEXT) \
|
|
|
b4ec74 |
- truncate$(EXEEXT) truncate64$(EXEEXT) ugetrlimit$(EXEEXT) \
|
|
|
b4ec74 |
- uio$(EXEEXT) umask$(EXEEXT) umount$(EXEEXT) umount2$(EXEEXT) \
|
|
|
b4ec74 |
- umoven-illptr$(EXEEXT) umovestr$(EXEEXT) \
|
|
|
b4ec74 |
- umovestr-illptr$(EXEEXT) umovestr2$(EXEEXT) umovestr3$(EXEEXT) \
|
|
|
b4ec74 |
- umovestr_cached$(EXEEXT) umovestr_cached_adjacent$(EXEEXT) \
|
|
|
b4ec74 |
- uname$(EXEEXT) unlink$(EXEEXT) unlinkat$(EXEEXT) \
|
|
|
b4ec74 |
- unshare$(EXEEXT) userfaultfd$(EXEEXT) ustat$(EXEEXT) \
|
|
|
b4ec74 |
- utime$(EXEEXT) utimensat$(EXEEXT) utimensat-Xabbrev$(EXEEXT) \
|
|
|
b4ec74 |
+ tkill$(EXEEXT) truncate$(EXEEXT) truncate64$(EXEEXT) \
|
|
|
b4ec74 |
+ ugetrlimit$(EXEEXT) uio$(EXEEXT) umask$(EXEEXT) \
|
|
|
b4ec74 |
+ umount$(EXEEXT) umount2$(EXEEXT) umoven-illptr$(EXEEXT) \
|
|
|
b4ec74 |
+ umovestr$(EXEEXT) umovestr-illptr$(EXEEXT) umovestr2$(EXEEXT) \
|
|
|
b4ec74 |
+ umovestr3$(EXEEXT) umovestr_cached$(EXEEXT) \
|
|
|
b4ec74 |
+ umovestr_cached_adjacent$(EXEEXT) uname$(EXEEXT) \
|
|
|
b4ec74 |
+ unlink$(EXEEXT) unlinkat$(EXEEXT) unshare$(EXEEXT) \
|
|
|
b4ec74 |
+ userfaultfd$(EXEEXT) ustat$(EXEEXT) utime$(EXEEXT) \
|
|
|
b4ec74 |
+ utimensat$(EXEEXT) utimensat-Xabbrev$(EXEEXT) \
|
|
|
b4ec74 |
utimensat-Xraw$(EXEEXT) utimensat-Xverbose$(EXEEXT) \
|
|
|
b4ec74 |
utimes$(EXEEXT) vhangup$(EXEEXT) vmsplice$(EXEEXT) \
|
|
|
b4ec74 |
wait4$(EXEEXT) waitid$(EXEEXT) waitpid$(EXEEXT) xattr$(EXEEXT) \
|
|
|
b4ec74 |
@@ -3484,6 +3485,10 @@
|
|
|
b4ec74 |
times_fail_OBJECTS = times-fail.$(OBJEXT)
|
|
|
b4ec74 |
times_fail_LDADD = $(LDADD)
|
|
|
b4ec74 |
times_fail_DEPENDENCIES = libtests.a
|
|
|
b4ec74 |
+tkill_SOURCES = tkill.c
|
|
|
b4ec74 |
+tkill_OBJECTS = tkill.$(OBJEXT)
|
|
|
b4ec74 |
+tkill_LDADD = $(LDADD)
|
|
|
b4ec74 |
+tkill_DEPENDENCIES = libtests.a
|
|
|
b4ec74 |
tracer_ppid_pgid_sid_SOURCES = tracer_ppid_pgid_sid.c
|
|
|
b4ec74 |
tracer_ppid_pgid_sid_OBJECTS = tracer_ppid_pgid_sid.$(OBJEXT)
|
|
|
b4ec74 |
tracer_ppid_pgid_sid_LDADD = $(LDADD)
|
|
|
b4ec74 |
@@ -4184,7 +4189,7 @@
|
|
|
b4ec74 |
./$(DEPDIR)/threads-execve.Po ./$(DEPDIR)/time.Po \
|
|
|
b4ec74 |
./$(DEPDIR)/timer_create.Po ./$(DEPDIR)/timer_xettime.Po \
|
|
|
b4ec74 |
./$(DEPDIR)/timerfd_xettime.Po ./$(DEPDIR)/times-fail.Po \
|
|
|
b4ec74 |
- ./$(DEPDIR)/times.Po ./$(DEPDIR)/tracer_ppid_pgid_sid.Po \
|
|
|
b4ec74 |
+ ./$(DEPDIR)/times.Po ./$(DEPDIR)/tkill.Po ./$(DEPDIR)/tracer_ppid_pgid_sid.Po \
|
|
|
b4ec74 |
./$(DEPDIR)/truncate.Po ./$(DEPDIR)/truncate64-truncate64.Po \
|
|
|
b4ec74 |
./$(DEPDIR)/ugetrlimit.Po ./$(DEPDIR)/uio-uio.Po \
|
|
|
b4ec74 |
./$(DEPDIR)/umask.Po ./$(DEPDIR)/umount.Po \
|
|
|
b4ec74 |
@@ -4441,7 +4446,7 @@
|
|
|
b4ec74 |
syslog-success.c tee.c threads-execve.c \
|
|
|
b4ec74 |
threads-execve--quiet-thread-execve.c threads-execve-q.c \
|
|
|
b4ec74 |
threads-execve-qq.c threads-execve-qqq.c time.c timer_create.c \
|
|
|
b4ec74 |
- timer_xettime.c timerfd_xettime.c times.c times-fail.c \
|
|
|
b4ec74 |
+ timer_xettime.c timerfd_xettime.c times.c times-fail.c tkill.c \
|
|
|
b4ec74 |
tracer_ppid_pgid_sid.c truncate.c truncate64.c ugetrlimit.c \
|
|
|
b4ec74 |
uio.c umask.c umount.c umount2.c umoven-illptr.c umovestr.c \
|
|
|
b4ec74 |
umovestr-illptr.c umovestr2.c umovestr3.c umovestr_cached.c \
|
|
|
b4ec74 |
@@ -4667,7 +4672,7 @@
|
|
|
b4ec74 |
syslog-success.c tee.c threads-execve.c \
|
|
|
b4ec74 |
threads-execve--quiet-thread-execve.c threads-execve-q.c \
|
|
|
b4ec74 |
threads-execve-qq.c threads-execve-qqq.c time.c timer_create.c \
|
|
|
b4ec74 |
- timer_xettime.c timerfd_xettime.c times.c times-fail.c \
|
|
|
b4ec74 |
+ timer_xettime.c timerfd_xettime.c times.c times-fail.c tkill.c \
|
|
|
b4ec74 |
tracer_ppid_pgid_sid.c truncate.c truncate64.c ugetrlimit.c \
|
|
|
b4ec74 |
uio.c umask.c umount.c umount2.c umoven-illptr.c umovestr.c \
|
|
|
b4ec74 |
umovestr-illptr.c umovestr2.c umovestr3.c umovestr_cached.c \
|
|
|
b4ec74 |
@@ -5725,6 +5730,7 @@
|
|
|
b4ec74 |
timerfd_xettime \
|
|
|
b4ec74 |
times \
|
|
|
b4ec74 |
times-fail \
|
|
|
b4ec74 |
+ tkill \
|
|
|
b4ec74 |
truncate \
|
|
|
b4ec74 |
truncate64 \
|
|
|
b4ec74 |
ugetrlimit \
|
|
|
b4ec74 |
@@ -6133,9 +6139,10 @@
|
|
|
b4ec74 |
threads-execve-qqq.gen.test time.gen.test \
|
|
|
b4ec74 |
timer_create.gen.test timer_xettime.gen.test \
|
|
|
b4ec74 |
timerfd_xettime.gen.test times.gen.test times-fail.gen.test \
|
|
|
b4ec74 |
- trace_clock.gen.test trace_creds.gen.test trace_fstat.gen.test \
|
|
|
b4ec74 |
- trace_fstatfs.gen.test trace_lstat.gen.test \
|
|
|
b4ec74 |
- trace_personality_32.gen.test trace_personality_64.gen.test \
|
|
|
b4ec74 |
+ tkill.gen.test trace_clock.gen.test trace_creds.gen.test \
|
|
|
b4ec74 |
+ trace_fstat.gen.test trace_fstatfs.gen.test \
|
|
|
b4ec74 |
+ trace_lstat.gen.test trace_personality_32.gen.test \
|
|
|
b4ec74 |
+ trace_personality_64.gen.test \
|
|
|
b4ec74 |
trace_personality_regex_32.gen.test \
|
|
|
b4ec74 |
trace_personality_regex_64.gen.test \
|
|
|
b4ec74 |
trace_personality_regex_x32.gen.test \
|
|
|
b4ec74 |
@@ -9392,6 +9399,10 @@
|
|
|
b4ec74 |
@rm -f times-fail$(EXEEXT)
|
|
|
b4ec74 |
$(AM_V_CCLD)$(LINK) $(times_fail_OBJECTS) $(times_fail_LDADD) $(LIBS)
|
|
|
b4ec74 |
|
|
|
b4ec74 |
+tkill$(EXEEXT): $(tkill_OBJECTS) $(tkill_DEPENDENCIES) $(EXTRA_tkill_DEPENDENCIES)
|
|
|
b4ec74 |
+ @rm -f tkill$(EXEEXT)
|
|
|
b4ec74 |
+ $(AM_V_CCLD)$(LINK) $(tkill_OBJECTS) $(tkill_LDADD) $(LIBS)
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
tracer_ppid_pgid_sid$(EXEEXT): $(tracer_ppid_pgid_sid_OBJECTS) $(tracer_ppid_pgid_sid_DEPENDENCIES) $(EXTRA_tracer_ppid_pgid_sid_DEPENDENCIES)
|
|
|
b4ec74 |
@rm -f tracer_ppid_pgid_sid$(EXEEXT)
|
|
|
b4ec74 |
$(AM_V_CCLD)$(LINK) $(tracer_ppid_pgid_sid_OBJECTS) $(tracer_ppid_pgid_sid_LDADD) $(LIBS)
|
|
|
b4ec74 |
@@ -10349,6 +10360,7 @@
|
|
|
b4ec74 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timerfd_xettime.Po@am__quote@ # am--include-marker
|
|
|
b4ec74 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/times-fail.Po@am__quote@ # am--include-marker
|
|
|
b4ec74 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/times.Po@am__quote@ # am--include-marker
|
|
|
b4ec74 |
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tkill.Po@am__quote@ # am--include-marker
|
|
|
b4ec74 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tracer_ppid_pgid_sid.Po@am__quote@ # am--include-marker
|
|
|
b4ec74 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/truncate.Po@am__quote@ # am--include-marker
|
|
|
b4ec74 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/truncate64-truncate64.Po@am__quote@ # am--include-marker
|
|
|
b4ec74 |
@@ -12169,6 +12181,7 @@
|
|
|
b4ec74 |
-rm -f ./$(DEPDIR)/timerfd_xettime.Po
|
|
|
b4ec74 |
-rm -f ./$(DEPDIR)/times-fail.Po
|
|
|
b4ec74 |
-rm -f ./$(DEPDIR)/times.Po
|
|
|
b4ec74 |
+ -rm -f ./$(DEPDIR)/tkill.Po
|
|
|
b4ec74 |
-rm -f ./$(DEPDIR)/tracer_ppid_pgid_sid.Po
|
|
|
b4ec74 |
-rm -f ./$(DEPDIR)/truncate.Po
|
|
|
b4ec74 |
-rm -f ./$(DEPDIR)/truncate64-truncate64.Po
|
|
|
b4ec74 |
@@ -13024,6 +13037,7 @@
|
|
|
b4ec74 |
-rm -f ./$(DEPDIR)/timerfd_xettime.Po
|
|
|
b4ec74 |
-rm -f ./$(DEPDIR)/times-fail.Po
|
|
|
b4ec74 |
-rm -f ./$(DEPDIR)/times.Po
|
|
|
b4ec74 |
+ -rm -f ./$(DEPDIR)/tkill.Po
|
|
|
b4ec74 |
-rm -f ./$(DEPDIR)/tracer_ppid_pgid_sid.Po
|
|
|
b4ec74 |
-rm -f ./$(DEPDIR)/truncate.Po
|
|
|
b4ec74 |
-rm -f ./$(DEPDIR)/truncate64-truncate64.Po
|
|
|
b4ec74 |
@@ -15101,6 +15115,9 @@
|
|
|
b4ec74 |
$(srcdir)/times-fail.gen.test: $(abs_srcdir)/gen_tests.sh $(srcdir)/gen_tests.in
|
|
|
b4ec74 |
$(AM_V_GEN) $^ $@
|
|
|
b4ec74 |
|
|
|
b4ec74 |
+$(srcdir)/tkill.gen.test: $(abs_srcdir)/gen_tests.sh $(srcdir)/gen_tests.in
|
|
|
b4ec74 |
+ $(AM_V_GEN) $^ $@
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
$(srcdir)/trace_clock.gen.test: $(abs_srcdir)/gen_tests.sh $(srcdir)/gen_tests.in
|
|
|
b4ec74 |
$(AM_V_GEN) $^ $@
|
|
|
b4ec74 |
|
|
|
b4ec74 |
Index: strace-5.7/tests-mx32/Makefile.in
|
|
|
b4ec74 |
===================================================================
|
|
|
b4ec74 |
--- strace-5.7.orig/tests-mx32/Makefile.in 2020-09-09 15:47:07.671767616 +0200
|
|
|
b4ec74 |
+++ strace-5.7/tests-mx32/Makefile.in 2020-09-09 19:32:39.854958946 +0200
|
|
|
b4ec74 |
@@ -496,14 +496,15 @@
|
|
|
b4ec74 |
sysinfo$(EXEEXT) syslog$(EXEEXT) tee$(EXEEXT) time$(EXEEXT) \
|
|
|
b4ec74 |
timer_create$(EXEEXT) timer_xettime$(EXEEXT) \
|
|
|
b4ec74 |
timerfd_xettime$(EXEEXT) times$(EXEEXT) times-fail$(EXEEXT) \
|
|
|
b4ec74 |
- truncate$(EXEEXT) truncate64$(EXEEXT) ugetrlimit$(EXEEXT) \
|
|
|
b4ec74 |
- uio$(EXEEXT) umask$(EXEEXT) umount$(EXEEXT) umount2$(EXEEXT) \
|
|
|
b4ec74 |
- umoven-illptr$(EXEEXT) umovestr$(EXEEXT) \
|
|
|
b4ec74 |
- umovestr-illptr$(EXEEXT) umovestr2$(EXEEXT) umovestr3$(EXEEXT) \
|
|
|
b4ec74 |
- umovestr_cached$(EXEEXT) umovestr_cached_adjacent$(EXEEXT) \
|
|
|
b4ec74 |
- uname$(EXEEXT) unlink$(EXEEXT) unlinkat$(EXEEXT) \
|
|
|
b4ec74 |
- unshare$(EXEEXT) userfaultfd$(EXEEXT) ustat$(EXEEXT) \
|
|
|
b4ec74 |
- utime$(EXEEXT) utimensat$(EXEEXT) utimensat-Xabbrev$(EXEEXT) \
|
|
|
b4ec74 |
+ tkill$(EXEEXT) truncate$(EXEEXT) truncate64$(EXEEXT) \
|
|
|
b4ec74 |
+ ugetrlimit$(EXEEXT) uio$(EXEEXT) umask$(EXEEXT) \
|
|
|
b4ec74 |
+ umount$(EXEEXT) umount2$(EXEEXT) umoven-illptr$(EXEEXT) \
|
|
|
b4ec74 |
+ umovestr$(EXEEXT) umovestr-illptr$(EXEEXT) umovestr2$(EXEEXT) \
|
|
|
b4ec74 |
+ umovestr3$(EXEEXT) umovestr_cached$(EXEEXT) \
|
|
|
b4ec74 |
+ umovestr_cached_adjacent$(EXEEXT) uname$(EXEEXT) \
|
|
|
b4ec74 |
+ unlink$(EXEEXT) unlinkat$(EXEEXT) unshare$(EXEEXT) \
|
|
|
b4ec74 |
+ userfaultfd$(EXEEXT) ustat$(EXEEXT) utime$(EXEEXT) \
|
|
|
b4ec74 |
+ utimensat$(EXEEXT) utimensat-Xabbrev$(EXEEXT) \
|
|
|
b4ec74 |
utimensat-Xraw$(EXEEXT) utimensat-Xverbose$(EXEEXT) \
|
|
|
b4ec74 |
utimes$(EXEEXT) vhangup$(EXEEXT) vmsplice$(EXEEXT) \
|
|
|
b4ec74 |
wait4$(EXEEXT) waitid$(EXEEXT) waitpid$(EXEEXT) xattr$(EXEEXT) \
|
|
|
b4ec74 |
@@ -3484,6 +3485,10 @@
|
|
|
b4ec74 |
times_fail_OBJECTS = times-fail.$(OBJEXT)
|
|
|
b4ec74 |
times_fail_LDADD = $(LDADD)
|
|
|
b4ec74 |
times_fail_DEPENDENCIES = libtests.a
|
|
|
b4ec74 |
+tkill_SOURCES = tkill.c
|
|
|
b4ec74 |
+tkill_OBJECTS = tkill.$(OBJEXT)
|
|
|
b4ec74 |
+tkill_LDADD = $(LDADD)
|
|
|
b4ec74 |
+tkill_DEPENDENCIES = libtests.a
|
|
|
b4ec74 |
tracer_ppid_pgid_sid_SOURCES = tracer_ppid_pgid_sid.c
|
|
|
b4ec74 |
tracer_ppid_pgid_sid_OBJECTS = tracer_ppid_pgid_sid.$(OBJEXT)
|
|
|
b4ec74 |
tracer_ppid_pgid_sid_LDADD = $(LDADD)
|
|
|
b4ec74 |
@@ -4184,7 +4189,7 @@
|
|
|
b4ec74 |
./$(DEPDIR)/threads-execve.Po ./$(DEPDIR)/time.Po \
|
|
|
b4ec74 |
./$(DEPDIR)/timer_create.Po ./$(DEPDIR)/timer_xettime.Po \
|
|
|
b4ec74 |
./$(DEPDIR)/timerfd_xettime.Po ./$(DEPDIR)/times-fail.Po \
|
|
|
b4ec74 |
- ./$(DEPDIR)/times.Po ./$(DEPDIR)/tracer_ppid_pgid_sid.Po \
|
|
|
b4ec74 |
+ ./$(DEPDIR)/times.Po ./$(DEPDIR)/tkill.Po ./$(DEPDIR)/tracer_ppid_pgid_sid.Po \
|
|
|
b4ec74 |
./$(DEPDIR)/truncate.Po ./$(DEPDIR)/truncate64-truncate64.Po \
|
|
|
b4ec74 |
./$(DEPDIR)/ugetrlimit.Po ./$(DEPDIR)/uio-uio.Po \
|
|
|
b4ec74 |
./$(DEPDIR)/umask.Po ./$(DEPDIR)/umount.Po \
|
|
|
b4ec74 |
@@ -4441,7 +4446,7 @@
|
|
|
b4ec74 |
syslog-success.c tee.c threads-execve.c \
|
|
|
b4ec74 |
threads-execve--quiet-thread-execve.c threads-execve-q.c \
|
|
|
b4ec74 |
threads-execve-qq.c threads-execve-qqq.c time.c timer_create.c \
|
|
|
b4ec74 |
- timer_xettime.c timerfd_xettime.c times.c times-fail.c \
|
|
|
b4ec74 |
+ timer_xettime.c timerfd_xettime.c times.c times-fail.c tkill.c \
|
|
|
b4ec74 |
tracer_ppid_pgid_sid.c truncate.c truncate64.c ugetrlimit.c \
|
|
|
b4ec74 |
uio.c umask.c umount.c umount2.c umoven-illptr.c umovestr.c \
|
|
|
b4ec74 |
umovestr-illptr.c umovestr2.c umovestr3.c umovestr_cached.c \
|
|
|
b4ec74 |
@@ -4667,7 +4672,7 @@
|
|
|
b4ec74 |
syslog-success.c tee.c threads-execve.c \
|
|
|
b4ec74 |
threads-execve--quiet-thread-execve.c threads-execve-q.c \
|
|
|
b4ec74 |
threads-execve-qq.c threads-execve-qqq.c time.c timer_create.c \
|
|
|
b4ec74 |
- timer_xettime.c timerfd_xettime.c times.c times-fail.c \
|
|
|
b4ec74 |
+ timer_xettime.c timerfd_xettime.c times.c times-fail.c tkill.c \
|
|
|
b4ec74 |
tracer_ppid_pgid_sid.c truncate.c truncate64.c ugetrlimit.c \
|
|
|
b4ec74 |
uio.c umask.c umount.c umount2.c umoven-illptr.c umovestr.c \
|
|
|
b4ec74 |
umovestr-illptr.c umovestr2.c umovestr3.c umovestr_cached.c \
|
|
|
b4ec74 |
@@ -5725,6 +5730,7 @@
|
|
|
b4ec74 |
timerfd_xettime \
|
|
|
b4ec74 |
times \
|
|
|
b4ec74 |
times-fail \
|
|
|
b4ec74 |
+ tkill \
|
|
|
b4ec74 |
truncate \
|
|
|
b4ec74 |
truncate64 \
|
|
|
b4ec74 |
ugetrlimit \
|
|
|
b4ec74 |
@@ -6133,9 +6139,10 @@
|
|
|
b4ec74 |
threads-execve-qqq.gen.test time.gen.test \
|
|
|
b4ec74 |
timer_create.gen.test timer_xettime.gen.test \
|
|
|
b4ec74 |
timerfd_xettime.gen.test times.gen.test times-fail.gen.test \
|
|
|
b4ec74 |
- trace_clock.gen.test trace_creds.gen.test trace_fstat.gen.test \
|
|
|
b4ec74 |
- trace_fstatfs.gen.test trace_lstat.gen.test \
|
|
|
b4ec74 |
- trace_personality_32.gen.test trace_personality_64.gen.test \
|
|
|
b4ec74 |
+ tkill.gen.test trace_clock.gen.test trace_creds.gen.test \
|
|
|
b4ec74 |
+ trace_fstat.gen.test trace_fstatfs.gen.test \
|
|
|
b4ec74 |
+ trace_lstat.gen.test trace_personality_32.gen.test \
|
|
|
b4ec74 |
+ trace_personality_64.gen.test \
|
|
|
b4ec74 |
trace_personality_regex_32.gen.test \
|
|
|
b4ec74 |
trace_personality_regex_64.gen.test \
|
|
|
b4ec74 |
trace_personality_regex_x32.gen.test \
|
|
|
b4ec74 |
@@ -9392,6 +9399,10 @@
|
|
|
b4ec74 |
@rm -f times-fail$(EXEEXT)
|
|
|
b4ec74 |
$(AM_V_CCLD)$(LINK) $(times_fail_OBJECTS) $(times_fail_LDADD) $(LIBS)
|
|
|
b4ec74 |
|
|
|
b4ec74 |
+tkill$(EXEEXT): $(tkill_OBJECTS) $(tkill_DEPENDENCIES) $(EXTRA_tkill_DEPENDENCIES)
|
|
|
b4ec74 |
+ @rm -f tkill$(EXEEXT)
|
|
|
b4ec74 |
+ $(AM_V_CCLD)$(LINK) $(tkill_OBJECTS) $(tkill_LDADD) $(LIBS)
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
tracer_ppid_pgid_sid$(EXEEXT): $(tracer_ppid_pgid_sid_OBJECTS) $(tracer_ppid_pgid_sid_DEPENDENCIES) $(EXTRA_tracer_ppid_pgid_sid_DEPENDENCIES)
|
|
|
b4ec74 |
@rm -f tracer_ppid_pgid_sid$(EXEEXT)
|
|
|
b4ec74 |
$(AM_V_CCLD)$(LINK) $(tracer_ppid_pgid_sid_OBJECTS) $(tracer_ppid_pgid_sid_LDADD) $(LIBS)
|
|
|
b4ec74 |
@@ -10349,6 +10360,7 @@
|
|
|
b4ec74 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timerfd_xettime.Po@am__quote@ # am--include-marker
|
|
|
b4ec74 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/times-fail.Po@am__quote@ # am--include-marker
|
|
|
b4ec74 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/times.Po@am__quote@ # am--include-marker
|
|
|
b4ec74 |
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tkill.Po@am__quote@ # am--include-marker
|
|
|
b4ec74 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tracer_ppid_pgid_sid.Po@am__quote@ # am--include-marker
|
|
|
b4ec74 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/truncate.Po@am__quote@ # am--include-marker
|
|
|
b4ec74 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/truncate64-truncate64.Po@am__quote@ # am--include-marker
|
|
|
b4ec74 |
@@ -12169,6 +12181,7 @@
|
|
|
b4ec74 |
-rm -f ./$(DEPDIR)/timerfd_xettime.Po
|
|
|
b4ec74 |
-rm -f ./$(DEPDIR)/times-fail.Po
|
|
|
b4ec74 |
-rm -f ./$(DEPDIR)/times.Po
|
|
|
b4ec74 |
+ -rm -f ./$(DEPDIR)/tkill.Po
|
|
|
b4ec74 |
-rm -f ./$(DEPDIR)/tracer_ppid_pgid_sid.Po
|
|
|
b4ec74 |
-rm -f ./$(DEPDIR)/truncate.Po
|
|
|
b4ec74 |
-rm -f ./$(DEPDIR)/truncate64-truncate64.Po
|
|
|
b4ec74 |
@@ -13024,6 +13037,7 @@
|
|
|
b4ec74 |
-rm -f ./$(DEPDIR)/timerfd_xettime.Po
|
|
|
b4ec74 |
-rm -f ./$(DEPDIR)/times-fail.Po
|
|
|
b4ec74 |
-rm -f ./$(DEPDIR)/times.Po
|
|
|
b4ec74 |
+ -rm -f ./$(DEPDIR)/tkill.Po
|
|
|
b4ec74 |
-rm -f ./$(DEPDIR)/tracer_ppid_pgid_sid.Po
|
|
|
b4ec74 |
-rm -f ./$(DEPDIR)/truncate.Po
|
|
|
b4ec74 |
-rm -f ./$(DEPDIR)/truncate64-truncate64.Po
|
|
|
b4ec74 |
@@ -15101,6 +15115,9 @@
|
|
|
b4ec74 |
$(srcdir)/times-fail.gen.test: $(abs_srcdir)/gen_tests.sh $(srcdir)/gen_tests.in
|
|
|
b4ec74 |
$(AM_V_GEN) $^ $@
|
|
|
b4ec74 |
|
|
|
b4ec74 |
+$(srcdir)/tkill.gen.test: $(abs_srcdir)/gen_tests.sh $(srcdir)/gen_tests.in
|
|
|
b4ec74 |
+ $(AM_V_GEN) $^ $@
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
$(srcdir)/trace_clock.gen.test: $(abs_srcdir)/gen_tests.sh $(srcdir)/gen_tests.in
|
|
|
b4ec74 |
$(AM_V_GEN) $^ $@
|
|
|
b4ec74 |
|
|
|
b4ec74 |
Index: strace-5.7/tests/Makefile.in
|
|
|
b4ec74 |
===================================================================
|
|
|
b4ec74 |
--- strace-5.7.orig/tests/Makefile.in 2020-09-09 15:47:07.671767616 +0200
|
|
|
b4ec74 |
+++ strace-5.7/tests/Makefile.in 2020-09-09 19:30:36.780885588 +0200
|
|
|
b4ec74 |
@@ -496,14 +496,15 @@
|
|
|
b4ec74 |
sysinfo$(EXEEXT) syslog$(EXEEXT) tee$(EXEEXT) time$(EXEEXT) \
|
|
|
b4ec74 |
timer_create$(EXEEXT) timer_xettime$(EXEEXT) \
|
|
|
b4ec74 |
timerfd_xettime$(EXEEXT) times$(EXEEXT) times-fail$(EXEEXT) \
|
|
|
b4ec74 |
- truncate$(EXEEXT) truncate64$(EXEEXT) ugetrlimit$(EXEEXT) \
|
|
|
b4ec74 |
- uio$(EXEEXT) umask$(EXEEXT) umount$(EXEEXT) umount2$(EXEEXT) \
|
|
|
b4ec74 |
- umoven-illptr$(EXEEXT) umovestr$(EXEEXT) \
|
|
|
b4ec74 |
- umovestr-illptr$(EXEEXT) umovestr2$(EXEEXT) umovestr3$(EXEEXT) \
|
|
|
b4ec74 |
- umovestr_cached$(EXEEXT) umovestr_cached_adjacent$(EXEEXT) \
|
|
|
b4ec74 |
- uname$(EXEEXT) unlink$(EXEEXT) unlinkat$(EXEEXT) \
|
|
|
b4ec74 |
- unshare$(EXEEXT) userfaultfd$(EXEEXT) ustat$(EXEEXT) \
|
|
|
b4ec74 |
- utime$(EXEEXT) utimensat$(EXEEXT) utimensat-Xabbrev$(EXEEXT) \
|
|
|
b4ec74 |
+ tkill$(EXEEXT) truncate$(EXEEXT) truncate64$(EXEEXT) \
|
|
|
b4ec74 |
+ ugetrlimit$(EXEEXT) uio$(EXEEXT) umask$(EXEEXT) \
|
|
|
b4ec74 |
+ umount$(EXEEXT) umount2$(EXEEXT) umoven-illptr$(EXEEXT) \
|
|
|
b4ec74 |
+ umovestr$(EXEEXT) umovestr-illptr$(EXEEXT) umovestr2$(EXEEXT) \
|
|
|
b4ec74 |
+ umovestr3$(EXEEXT) umovestr_cached$(EXEEXT) \
|
|
|
b4ec74 |
+ umovestr_cached_adjacent$(EXEEXT) uname$(EXEEXT) \
|
|
|
b4ec74 |
+ unlink$(EXEEXT) unlinkat$(EXEEXT) unshare$(EXEEXT) \
|
|
|
b4ec74 |
+ userfaultfd$(EXEEXT) ustat$(EXEEXT) utime$(EXEEXT) \
|
|
|
b4ec74 |
+ utimensat$(EXEEXT) utimensat-Xabbrev$(EXEEXT) \
|
|
|
b4ec74 |
utimensat-Xraw$(EXEEXT) utimensat-Xverbose$(EXEEXT) \
|
|
|
b4ec74 |
utimes$(EXEEXT) vhangup$(EXEEXT) vmsplice$(EXEEXT) \
|
|
|
b4ec74 |
wait4$(EXEEXT) waitid$(EXEEXT) waitpid$(EXEEXT) xattr$(EXEEXT) \
|
|
|
b4ec74 |
@@ -3484,6 +3485,10 @@
|
|
|
b4ec74 |
times_fail_OBJECTS = times-fail.$(OBJEXT)
|
|
|
b4ec74 |
times_fail_LDADD = $(LDADD)
|
|
|
b4ec74 |
times_fail_DEPENDENCIES = libtests.a
|
|
|
b4ec74 |
+tkill_SOURCES = tkill.c
|
|
|
b4ec74 |
+tkill_OBJECTS = tkill.$(OBJEXT)
|
|
|
b4ec74 |
+tkill_LDADD = $(LDADD)
|
|
|
b4ec74 |
+tkill_DEPENDENCIES = libtests.a
|
|
|
b4ec74 |
tracer_ppid_pgid_sid_SOURCES = tracer_ppid_pgid_sid.c
|
|
|
b4ec74 |
tracer_ppid_pgid_sid_OBJECTS = tracer_ppid_pgid_sid.$(OBJEXT)
|
|
|
b4ec74 |
tracer_ppid_pgid_sid_LDADD = $(LDADD)
|
|
|
b4ec74 |
@@ -4184,7 +4189,7 @@
|
|
|
b4ec74 |
./$(DEPDIR)/threads-execve.Po ./$(DEPDIR)/time.Po \
|
|
|
b4ec74 |
./$(DEPDIR)/timer_create.Po ./$(DEPDIR)/timer_xettime.Po \
|
|
|
b4ec74 |
./$(DEPDIR)/timerfd_xettime.Po ./$(DEPDIR)/times-fail.Po \
|
|
|
b4ec74 |
- ./$(DEPDIR)/times.Po ./$(DEPDIR)/tracer_ppid_pgid_sid.Po \
|
|
|
b4ec74 |
+ ./$(DEPDIR)/times.Po ./$(DEPDIR)/tkill.Po ./$(DEPDIR)/tracer_ppid_pgid_sid.Po \
|
|
|
b4ec74 |
./$(DEPDIR)/truncate.Po ./$(DEPDIR)/truncate64-truncate64.Po \
|
|
|
b4ec74 |
./$(DEPDIR)/ugetrlimit.Po ./$(DEPDIR)/uio-uio.Po \
|
|
|
b4ec74 |
./$(DEPDIR)/umask.Po ./$(DEPDIR)/umount.Po \
|
|
|
b4ec74 |
@@ -4441,7 +4446,7 @@
|
|
|
b4ec74 |
syslog-success.c tee.c threads-execve.c \
|
|
|
b4ec74 |
threads-execve--quiet-thread-execve.c threads-execve-q.c \
|
|
|
b4ec74 |
threads-execve-qq.c threads-execve-qqq.c time.c timer_create.c \
|
|
|
b4ec74 |
- timer_xettime.c timerfd_xettime.c times.c times-fail.c \
|
|
|
b4ec74 |
+ timer_xettime.c timerfd_xettime.c times.c times-fail.c tkill.c \
|
|
|
b4ec74 |
tracer_ppid_pgid_sid.c truncate.c truncate64.c ugetrlimit.c \
|
|
|
b4ec74 |
uio.c umask.c umount.c umount2.c umoven-illptr.c umovestr.c \
|
|
|
b4ec74 |
umovestr-illptr.c umovestr2.c umovestr3.c umovestr_cached.c \
|
|
|
b4ec74 |
@@ -4667,7 +4672,7 @@
|
|
|
b4ec74 |
syslog-success.c tee.c threads-execve.c \
|
|
|
b4ec74 |
threads-execve--quiet-thread-execve.c threads-execve-q.c \
|
|
|
b4ec74 |
threads-execve-qq.c threads-execve-qqq.c time.c timer_create.c \
|
|
|
b4ec74 |
- timer_xettime.c timerfd_xettime.c times.c times-fail.c \
|
|
|
b4ec74 |
+ timer_xettime.c timerfd_xettime.c times.c times-fail.c tkill.c \
|
|
|
b4ec74 |
tracer_ppid_pgid_sid.c truncate.c truncate64.c ugetrlimit.c \
|
|
|
b4ec74 |
uio.c umask.c umount.c umount2.c umoven-illptr.c umovestr.c \
|
|
|
b4ec74 |
umovestr-illptr.c umovestr2.c umovestr3.c umovestr_cached.c \
|
|
|
b4ec74 |
@@ -5725,6 +5730,7 @@
|
|
|
b4ec74 |
timerfd_xettime \
|
|
|
b4ec74 |
times \
|
|
|
b4ec74 |
times-fail \
|
|
|
b4ec74 |
+ tkill \
|
|
|
b4ec74 |
truncate \
|
|
|
b4ec74 |
truncate64 \
|
|
|
b4ec74 |
ugetrlimit \
|
|
|
b4ec74 |
@@ -6133,9 +6139,10 @@
|
|
|
b4ec74 |
threads-execve-qqq.gen.test time.gen.test \
|
|
|
b4ec74 |
timer_create.gen.test timer_xettime.gen.test \
|
|
|
b4ec74 |
timerfd_xettime.gen.test times.gen.test times-fail.gen.test \
|
|
|
b4ec74 |
- trace_clock.gen.test trace_creds.gen.test trace_fstat.gen.test \
|
|
|
b4ec74 |
- trace_fstatfs.gen.test trace_lstat.gen.test \
|
|
|
b4ec74 |
- trace_personality_32.gen.test trace_personality_64.gen.test \
|
|
|
b4ec74 |
+ tkill.gen.test trace_clock.gen.test trace_creds.gen.test \
|
|
|
b4ec74 |
+ trace_fstat.gen.test trace_fstatfs.gen.test \
|
|
|
b4ec74 |
+ trace_lstat.gen.test trace_personality_32.gen.test \
|
|
|
b4ec74 |
+ trace_personality_64.gen.test \
|
|
|
b4ec74 |
trace_personality_regex_32.gen.test \
|
|
|
b4ec74 |
trace_personality_regex_64.gen.test \
|
|
|
b4ec74 |
trace_personality_regex_x32.gen.test \
|
|
|
b4ec74 |
@@ -9392,6 +9399,10 @@
|
|
|
b4ec74 |
@rm -f times-fail$(EXEEXT)
|
|
|
b4ec74 |
$(AM_V_CCLD)$(LINK) $(times_fail_OBJECTS) $(times_fail_LDADD) $(LIBS)
|
|
|
b4ec74 |
|
|
|
b4ec74 |
+tkill$(EXEEXT): $(tkill_OBJECTS) $(tkill_DEPENDENCIES) $(EXTRA_tkill_DEPENDENCIES)
|
|
|
b4ec74 |
+ @rm -f tkill$(EXEEXT)
|
|
|
b4ec74 |
+ $(AM_V_CCLD)$(LINK) $(tkill_OBJECTS) $(tkill_LDADD) $(LIBS)
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
tracer_ppid_pgid_sid$(EXEEXT): $(tracer_ppid_pgid_sid_OBJECTS) $(tracer_ppid_pgid_sid_DEPENDENCIES) $(EXTRA_tracer_ppid_pgid_sid_DEPENDENCIES)
|
|
|
b4ec74 |
@rm -f tracer_ppid_pgid_sid$(EXEEXT)
|
|
|
b4ec74 |
$(AM_V_CCLD)$(LINK) $(tracer_ppid_pgid_sid_OBJECTS) $(tracer_ppid_pgid_sid_LDADD) $(LIBS)
|
|
|
b4ec74 |
@@ -10349,6 +10360,7 @@
|
|
|
b4ec74 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timerfd_xettime.Po@am__quote@ # am--include-marker
|
|
|
b4ec74 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/times-fail.Po@am__quote@ # am--include-marker
|
|
|
b4ec74 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/times.Po@am__quote@ # am--include-marker
|
|
|
b4ec74 |
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tkill.Po@am__quote@ # am--include-marker
|
|
|
b4ec74 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tracer_ppid_pgid_sid.Po@am__quote@ # am--include-marker
|
|
|
b4ec74 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/truncate.Po@am__quote@ # am--include-marker
|
|
|
b4ec74 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/truncate64-truncate64.Po@am__quote@ # am--include-marker
|
|
|
b4ec74 |
@@ -12169,6 +12181,7 @@
|
|
|
b4ec74 |
-rm -f ./$(DEPDIR)/timerfd_xettime.Po
|
|
|
b4ec74 |
-rm -f ./$(DEPDIR)/times-fail.Po
|
|
|
b4ec74 |
-rm -f ./$(DEPDIR)/times.Po
|
|
|
b4ec74 |
+ -rm -f ./$(DEPDIR)/tkill.Po
|
|
|
b4ec74 |
-rm -f ./$(DEPDIR)/tracer_ppid_pgid_sid.Po
|
|
|
b4ec74 |
-rm -f ./$(DEPDIR)/truncate.Po
|
|
|
b4ec74 |
-rm -f ./$(DEPDIR)/truncate64-truncate64.Po
|
|
|
b4ec74 |
@@ -13024,6 +13037,7 @@
|
|
|
b4ec74 |
-rm -f ./$(DEPDIR)/timerfd_xettime.Po
|
|
|
b4ec74 |
-rm -f ./$(DEPDIR)/times-fail.Po
|
|
|
b4ec74 |
-rm -f ./$(DEPDIR)/times.Po
|
|
|
b4ec74 |
+ -rm -f ./$(DEPDIR)/tkill.Po
|
|
|
b4ec74 |
-rm -f ./$(DEPDIR)/tracer_ppid_pgid_sid.Po
|
|
|
b4ec74 |
-rm -f ./$(DEPDIR)/truncate.Po
|
|
|
b4ec74 |
-rm -f ./$(DEPDIR)/truncate64-truncate64.Po
|
|
|
b4ec74 |
@@ -15101,6 +15115,9 @@
|
|
|
b4ec74 |
$(srcdir)/times-fail.gen.test: $(abs_srcdir)/gen_tests.sh $(srcdir)/gen_tests.in
|
|
|
b4ec74 |
$(AM_V_GEN) $^ $@
|
|
|
b4ec74 |
|
|
|
b4ec74 |
+$(srcdir)/tkill.gen.test: $(abs_srcdir)/gen_tests.sh $(srcdir)/gen_tests.in
|
|
|
b4ec74 |
+ $(AM_V_GEN) $^ $@
|
|
|
b4ec74 |
+
|
|
|
b4ec74 |
$(srcdir)/trace_clock.gen.test: $(abs_srcdir)/gen_tests.sh $(srcdir)/gen_tests.in
|
|
|
b4ec74 |
$(AM_V_GEN) $^ $@
|
|
|
b4ec74 |
|