* Sync sys/ptrace with Linux 3.10
@ 2013-07-03 7:54 Andreas Jaeger
2013-07-03 8:33 ` Andreas Schwab
2013-07-03 17:13 ` Mike Frysinger
0 siblings, 2 replies; 8+ messages in thread
From: Andreas Jaeger @ 2013-07-03 7:54 UTC (permalink / raw)
To: libc-alpha, davem, libc-ports
Looking through the diff from Linux 3.9 to 3.10 I noticed only the
appended change.
Is the patch ok in general?
Dave, ok to commit for glibc 2.18 - or shall I wait for 2.19 to open
again?
Andreas
For ChangeLog.ia64:
* sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_LISTEN):
Add define.
(PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
(ptrace_peeksiginfo_args): Add.
(__ptrace_peeksiginfo_flags): Add.
For ChangeLog.aarch64:
* sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (PTRACE_LISTEN):
Add define.
(PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
(ptrace_peeksiginfo_args): Add.
(__ptrace_peeksiginfo_flags): Add.
For ChangeLog.tile:
* sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_PEEKSIGINFO):
Add new value from Linux 3.10.
(ptrace_peeksiginfo_args): Add.
(__ptrace_peeksiginfo_flags): Add.
(PTRACE_SETREGSET, PTRACE_SEIZE, PTRACE_INTERRUPT, PTRACE_LISTEN):
Add.
* sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
* sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
* sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
define.
(PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
(ptrace_peeksiginfo_args): Add.
(__ptrace_peeksiginfo_flags): Add.
* sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
diff --git a/ports/sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h b/ports/sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
index 7c1e683..805ae34 100644
--- a/ports/sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
+++ b/ports/sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
@@ -21,6 +21,7 @@
#define _SYS_PTRACE_H 1
#include <features.h>
+#include <bits/types.h>
__BEGIN_DECLS
@@ -124,6 +125,10 @@ enum __ptrace_request
/* Wait for next group event. */
PTRACE_LISTEN = 0x4208
+#define PTRACE_LISTEN PTRACE_LISTEN
+
+ PTRACE_PEEKSIGINFO = 0x4209
+#define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
};
@@ -159,6 +164,20 @@ enum __ptrace_eventcodes
PTRACE_EVENT_SECCOMP = 7
};
+/* Arguments for PTRACE_PEEKSIGINFO. */
+struct ptrace_peeksiginfo_args
+{
+ __uint64_t off; /* From which siginfo to start. */
+ __uint32_t flags; /* Flags for peeksiginfo. */
+ __int32_t nr; /* How many siginfos to take. */
+};
+
+enum __ptrace_peeksiginfo_flags
+{
+ /* Read signals from a shared (process wide) queue. */
+ PTRACE_PEEKSIGINFO_SHARED = (1 << 0)
+};
+
/* Perform process tracing functions. REQUEST is one of the values
above, and determines the action to be taken.
For all requests except PTRACE_TRACEME, PID specifies the process to be
diff --git a/ports/sysdeps/unix/sysv/linux/ia64/sys/ptrace.h b/ports/sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
index c18d314..79fd710 100644
--- a/ports/sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
+++ b/ports/sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
@@ -21,6 +21,7 @@
#include <features.h>
#include <sys/ucontext.h>
+#include <bits/types.h>
__BEGIN_DECLS
@@ -129,6 +130,10 @@ enum __ptrace_request
/* Wait for next group event. */
PTRACE_LISTEN = 0x4208
+#define PTRACE_LISTEN PTRACE_LISTEN
+
+ PTRACE_PEEKSIGINFO = 0x4209
+#define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
};
@@ -179,6 +184,20 @@ enum __ptrace_eventcodes
PTRACE_EVENT_SECCOMP = 7
};
+/* Arguments for PTRACE_PEEKSIGINFO. */
+struct ptrace_peeksiginfo_args
+{
+ __uint64_t off; /* From which siginfo to start. */
+ __uint32_t flags; /* Flags for peeksiginfo. */
+ __int32_t nr; /* How many siginfos to take. */
+};
+
+enum __ptrace_peeksiginfo_flags
+{
+ /* Read signals from a shared (process wide) queue. */
+ PTRACE_PEEKSIGINFO_SHARED = (1 << 0)
+};
+
/* Perform process tracing functions. REQUEST is one of the values
above, and determines the action to be taken.
For all requests except PTRACE_TRACEME, PID specifies the process to be
diff --git a/ports/sysdeps/unix/sysv/linux/tile/sys/ptrace.h b/ports/sysdeps/unix/sysv/linux/tile/sys/ptrace.h
index 55d541d..4f46bdb 100644
--- a/ports/sysdeps/unix/sysv/linux/tile/sys/ptrace.h
+++ b/ports/sysdeps/unix/sysv/linux/tile/sys/ptrace.h
@@ -20,6 +20,7 @@
#define _SYS_PTRACE_H 1
#include <features.h>
+#include <bits/types.h>
__BEGIN_DECLS
@@ -103,6 +104,26 @@ enum __ptrace_request
/* Set new siginfo for process. */
PTRACE_SETSIGINFO = 0x4203
#define PT_SETSIGINFO PTRACE_SETSIGINFO
+
+ /* Set register content. */
+ PTRACE_SETREGSET = 0x4205,
+#define PTRACE_SETREGSET PTRACE_SETREGSET
+
+ /* Like PTRACE_ATTACH, but do not force tracee to trap and do not affect
+ signal or group stop state. */
+ PTRACE_SEIZE = 0x4206,
+#define PTRACE_SEIZE PTRACE_SEIZE
+
+ /* Trap seized tracee. */
+ PTRACE_INTERRUPT = 0x4207,
+#define PTRACE_INTERRUPT PTRACE_INTERRUPT
+
+ /* Wait for next group event. */
+ PTRACE_LISTEN = 0x4208,
+#define PTRACE_LISTEN PTRACE_LISTEN
+
+ PTRACE_PEEKSIGINFO = 0x4209
+#define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
};
@@ -132,6 +153,20 @@ enum __ptrace_eventcodes
PTRACE_EVENT_SECCOMP = 7
};
+/* Arguments for PTRACE_PEEKSIGINFO. */
+struct ptrace_peeksiginfo_args
+{
+ __uint64_t off; /* From which siginfo to start. */
+ __uint32_t flags; /* Flags for peeksiginfo. */
+ __int32_t nr; /* How many siginfos to take. */
+};
+
+enum __ptrace_peeksiginfo_flags
+{
+ /* Read signals from a shared (process wide) queue. */
+ PTRACE_PEEKSIGINFO_SHARED = (1 << 0)
+}
+
/* Perform process tracing functions. REQUEST is one of the values
above, and determines the action to be taken.
For all requests except PTRACE_TRACEME, PID specifies the process to be
diff --git a/sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h b/sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
index e6e916b..b60f02d 100644
--- a/sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
+++ b/sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
@@ -20,6 +20,7 @@
#define _SYS_PTRACE_H 1
#include <features.h>
+#include <bits/types.h>
__BEGIN_DECLS
@@ -116,6 +117,10 @@ enum __ptrace_request
/* Wait for next group event. */
PTRACE_LISTEN = 0x4208
+#define PTRACE_LISTEN PTRACE_LISTEN
+
+ PTRACE_PEEKSIGINFO = 0x4209
+#define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
};
@@ -152,6 +157,20 @@ enum __ptrace_eventcodes
PTRACE_EVENT_SECCOMP = 7
};
+/* Arguments for PTRACE_PEEKSIGINFO. */
+struct ptrace_peeksiginfo_args
+{
+ __uint64_t off; /* From which siginfo to start. */
+ __uint32_t flags; /* Flags for peeksiginfo. */
+ __int32_t nr; /* How many siginfos to take. */
+};
+
+enum __ptrace_peeksiginfo_flags
+{
+ /* Read signals from a shared (process wide) queue. */
+ PTRACE_PEEKSIGINFO_SHARED = (1 << 0)
+};
+
/* Perform process tracing functions. REQUEST is one of the values
above, and determines the action to be taken.
For all requests except PTRACE_TRACEME, PID specifies the process to be
diff --git a/sysdeps/unix/sysv/linux/s390/sys/ptrace.h b/sysdeps/unix/sysv/linux/s390/sys/ptrace.h
index ca2ebb9..e680917 100644
--- a/sysdeps/unix/sysv/linux/s390/sys/ptrace.h
+++ b/sysdeps/unix/sysv/linux/s390/sys/ptrace.h
@@ -21,6 +21,7 @@
#define _SYS_PTRACE_H 1
#include <features.h>
+#include <bits/types.h>
__BEGIN_DECLS
#ifdef _LINUX_PTRACE_H
@@ -155,6 +156,10 @@ enum __ptrace_request
/* Wait for next group event. */
PTRACE_LISTEN = 0x4208
+#define PTRACE_LISTEN PTRACE_LISTEN
+
+ PTRACE_PEEKSIGINFO = 0x4209
+#define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
};
@@ -191,6 +196,20 @@ enum __ptrace_eventcodes
PTRACE_EVENT_SECCOMP = 7
};
+/* Arguments for PTRACE_PEEKSIGINFO. */
+struct ptrace_peeksiginfo_args
+{
+ __uint64_t off; /* From which siginfo to start. */
+ __uint32_t flags; /* Flags for peeksiginfo. */
+ __int32_t nr; /* How many siginfos to take. */
+};
+
+enum __ptrace_peeksiginfo_flags
+{
+ /* Read signals from a shared (process wide) queue. */
+ PTRACE_PEEKSIGINFO_SHARED = (1 << 0)
+};
+
/* Perform process tracing functions. REQUEST is one of the values
above, and determines the action to be taken.
For all requests except PTRACE_TRACEME, PID specifies the process to be
diff --git a/sysdeps/unix/sysv/linux/sparc/sys/ptrace.h b/sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
index 7ba8f5f..6d5c8f9 100644
--- a/sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
+++ b/sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
@@ -20,7 +20,7 @@
#define _SYS_PTRACE_H 1
#include <features.h>
-
+#include <bits/types.h>
#include <bits/wordsize.h>
/* Linux/SPARC kernels up to 2.3.18 do not care much
@@ -199,6 +199,10 @@ enum __ptrace_request
/* Wait for next group event. */
PTRACE_LISTEN = 0x4208
+#define PTRACE_LISTEN PTRACE_LISTEN
+
+ PTRACE_PEEKSIGINFO = 0x4209
+#define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
};
@@ -235,6 +239,20 @@ enum __ptrace_eventcodes
PTRACE_EVENT_SECCOMP = 7
};
+/* Arguments for PTRACE_PEEKSIGINFO. */
+struct ptrace_peeksiginfo_args
+{
+ __uint64_t off; /* From which siginfo to start. */
+ __uint32_t flags; /* Flags for peeksiginfo. */
+ __int32_t nr; /* How many siginfos to take. */
+};
+
+enum __ptrace_peeksiginfo_flags
+{
+ /* Read signals from a shared (process wide) queue. */
+ PTRACE_PEEKSIGINFO_SHARED = (1 << 0)
+};
+
/* Perform process tracing functions. REQUEST is one of the values
above, and determines the action to be taken.
For all requests except PTRACE_TRACEME, PID specifies the process to be
diff --git a/sysdeps/unix/sysv/linux/sys/ptrace.h b/sysdeps/unix/sysv/linux/sys/ptrace.h
index 08709bf..80b2d52 100644
--- a/sysdeps/unix/sysv/linux/sys/ptrace.h
+++ b/sysdeps/unix/sysv/linux/sys/ptrace.h
@@ -20,6 +20,7 @@
#define _SYS_PTRACE_H 1
#include <features.h>
+#include <bits/types.h>
__BEGIN_DECLS
@@ -145,7 +146,11 @@ enum __ptrace_request
#define PTRACE_INTERRUPT PTRACE_INTERRUPT
/* Wait for next group event. */
- PTRACE_LISTEN = 0x4208
+ PTRACE_LISTEN = 0x4208,
+#define PTRACE_LISTEN PTRACE_LISTEN
+
+ PTRACE_PEEKSIGINFO = 0x4209
+#define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
};
@@ -182,6 +187,20 @@ enum __ptrace_eventcodes
PTRAVE_EVENT_SECCOMP = 7
};
+/* Arguments for PTRACE_PEEKSIGINFO. */
+struct ptrace_peeksiginfo_args
+{
+ __uint64_t off; /* From which siginfo to start. */
+ __uint32_t flags; /* Flags for peeksiginfo. */
+ __int32_t nr; /* How many siginfos to take. */
+};
+
+enum __ptrace_peeksiginfo_flags
+{
+ /* Read signals from a shared (process wide) queue. */
+ PTRACE_PEEKSIGINFO_SHARED = (1 << 0)
+};
+
/* Perform process tracing functions. REQUEST is one of the values
above, and determines the action to be taken.
For all requests except PTRACE_TRACEME, PID specifies the process to be
--
Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Sync sys/ptrace with Linux 3.10
2013-07-03 7:54 Sync sys/ptrace with Linux 3.10 Andreas Jaeger
@ 2013-07-03 8:33 ` Andreas Schwab
2013-07-03 8:38 ` Andreas Jaeger
2013-07-03 17:13 ` Mike Frysinger
1 sibling, 1 reply; 8+ messages in thread
From: Andreas Schwab @ 2013-07-03 8:33 UTC (permalink / raw)
To: Andreas Jaeger; +Cc: libc-alpha, davem, libc-ports
Andreas Jaeger <aj@suse.com> writes:
> + /* Read signals from a shared (process wide) queue. */
> + PTRACE_PEEKSIGINFO_SHARED = (1 << 0)
You still have the odd indentation.
Andreas.
--
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."
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Sync sys/ptrace with Linux 3.10
2013-07-03 8:33 ` Andreas Schwab
@ 2013-07-03 8:38 ` Andreas Jaeger
2013-07-03 9:20 ` Andreas Schwab
2013-07-03 19:18 ` David Miller
0 siblings, 2 replies; 8+ messages in thread
From: Andreas Jaeger @ 2013-07-03 8:38 UTC (permalink / raw)
To: Andreas Schwab; +Cc: libc-alpha, davem, libc-ports
On 07/03/2013 10:33 AM, Andreas Schwab wrote:
> Andreas Jaeger <aj@suse.com> writes:
>
>> + /* Read signals from a shared (process wide) queue. */
>> + PTRACE_PEEKSIGINFO_SHARED = (1 << 0)
>
> You still have the odd indentation.
Argh, for the comment - fixed now. Ok with that change?
Andreas
--
Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Sync sys/ptrace with Linux 3.10
2013-07-03 8:38 ` Andreas Jaeger
@ 2013-07-03 9:20 ` Andreas Schwab
2013-07-03 19:18 ` David Miller
1 sibling, 0 replies; 8+ messages in thread
From: Andreas Schwab @ 2013-07-03 9:20 UTC (permalink / raw)
To: Andreas Jaeger; +Cc: libc-alpha, davem, libc-ports
Looks good.
Andreas.
--
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."
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Sync sys/ptrace with Linux 3.10
2013-07-03 7:54 Sync sys/ptrace with Linux 3.10 Andreas Jaeger
2013-07-03 8:33 ` Andreas Schwab
@ 2013-07-03 17:13 ` Mike Frysinger
1 sibling, 0 replies; 8+ messages in thread
From: Mike Frysinger @ 2013-07-03 17:13 UTC (permalink / raw)
To: libc-alpha; +Cc: Andreas Jaeger, davem, libc-ports
[-- Attachment #1: Type: Text/Plain, Size: 238 bytes --]
On Wednesday 03 July 2013 03:54:08 Andreas Jaeger wrote:
> Looking through the diff from Linux 3.9 to 3.10 I noticed only the
> appended change.
>
> Is the patch ok in general?
Acked-by: Mike Frysinger <vapier@gentoo.org>
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Sync sys/ptrace with Linux 3.10
2013-07-03 8:38 ` Andreas Jaeger
2013-07-03 9:20 ` Andreas Schwab
@ 2013-07-03 19:18 ` David Miller
2013-07-03 19:58 ` Andreas Jaeger
1 sibling, 1 reply; 8+ messages in thread
From: David Miller @ 2013-07-03 19:18 UTC (permalink / raw)
To: aj; +Cc: schwab, libc-alpha, libc-ports
From: Andreas Jaeger <aj@suse.com>
Date: Wed, 03 Jul 2013 10:38:34 +0200
> On 07/03/2013 10:33 AM, Andreas Schwab wrote:
>> Andreas Jaeger <aj@suse.com> writes:
>>
>>> + /* Read signals from a shared (process wide) queue. */
>>> + PTRACE_PEEKSIGINFO_SHARED = (1 << 0)
>>
>> You still have the odd indentation.
>
> Argh, for the comment - fixed now. Ok with that change?
I'm fine with this too.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Sync sys/ptrace with Linux 3.10
2013-07-03 19:18 ` David Miller
@ 2013-07-03 19:58 ` Andreas Jaeger
2013-07-03 20:51 ` David Miller
0 siblings, 1 reply; 8+ messages in thread
From: Andreas Jaeger @ 2013-07-03 19:58 UTC (permalink / raw)
To: David Miller; +Cc: schwab, libc-alpha, libc-ports
On 07/03/2013 09:18 PM, David Miller wrote:
> From: Andreas Jaeger <aj@suse.com>
> Date: Wed, 03 Jul 2013 10:38:34 +0200
>
>> On 07/03/2013 10:33 AM, Andreas Schwab wrote:
>>> Andreas Jaeger <aj@suse.com> writes:
>>>
>>>> + /* Read signals from a shared (process wide) queue. */
>>>> + PTRACE_PEEKSIGINFO_SHARED = (1 << 0)
>>>
>>> You still have the odd indentation.
>>
>> Argh, for the comment - fixed now. Ok with that change?
>
> I'm fine with this too.
Fine for 2.18? In that case I'll commit tomorrow,
Andreas
--
Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Sync sys/ptrace with Linux 3.10
2013-07-03 19:58 ` Andreas Jaeger
@ 2013-07-03 20:51 ` David Miller
0 siblings, 0 replies; 8+ messages in thread
From: David Miller @ 2013-07-03 20:51 UTC (permalink / raw)
To: aj; +Cc: schwab, libc-alpha, libc-ports
From: Andreas Jaeger <aj@suse.com>
Date: Wed, 03 Jul 2013 21:58:01 +0200
> On 07/03/2013 09:18 PM, David Miller wrote:
>> From: Andreas Jaeger <aj@suse.com>
>> Date: Wed, 03 Jul 2013 10:38:34 +0200
>>
>>> On 07/03/2013 10:33 AM, Andreas Schwab wrote:
>>>> Andreas Jaeger <aj@suse.com> writes:
>>>>
>>>>> + /* Read signals from a shared (process wide) queue. */
>>>>> + PTRACE_PEEKSIGINFO_SHARED = (1 << 0)
>>>>
>>>> You still have the odd indentation.
>>>
>>> Argh, for the comment - fixed now. Ok with that change?
>>
>> I'm fine with this too.
>
> Fine for 2.18? In that case I'll commit tomorrow,
Yes, 2.18 is what I was talking about.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2013-07-03 20:51 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-03 7:54 Sync sys/ptrace with Linux 3.10 Andreas Jaeger
2013-07-03 8:33 ` Andreas Schwab
2013-07-03 8:38 ` Andreas Jaeger
2013-07-03 9:20 ` Andreas Schwab
2013-07-03 19:18 ` David Miller
2013-07-03 19:58 ` Andreas Jaeger
2013-07-03 20:51 ` David Miller
2013-07-03 17:13 ` Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).