[PATCH] Fix printing clone flags
zhangyanfei
zhangyanfei at cn.fujitsu.com
Mon Nov 29 08:24:52 UTC 2010
* process.c (CLONE.*): Define.
(clone_flags): Add entries for them.
Signed-off-by: zhangyanfei <zhangyanfei at cn.fujitsu.com>
---
process.c | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/process.c b/process.c
index 2366d1f..c4e42c3 100644
--- a/process.c
+++ b/process.c
@@ -557,6 +557,13 @@ struct tcb *tcp;
#define CLONE_CHILD_CLEARTID 0x00200000 /* clear the TID in the child */
#define CLONE_UNTRACED 0x00800000 /* set if the tracing process can't force CLONE_PTRACE on this clone */
#define CLONE_CHILD_SETTID 0x01000000 /* set the TID in the child */
+#define CLONE_STOPPED 0x02000000 /* Start in stopped state */
+#define CLONE_NEWUTS 0x04000000 /* New utsname group? */
+#define CLONE_NEWIPC 0x08000000 /* New ipcs */
+#define CLONE_NEWUSER 0x10000000 /* New user namespace */
+#define CLONE_NEWPID 0x20000000 /* New pid namespace */
+#define CLONE_NEWNET 0x40000000 /* New network namespace */
+#define CLONE_IO 0x80000000 /* Clone io context */
static const struct xlat clone_flags[] = {
{ CLONE_VM, "CLONE_VM" },
@@ -575,6 +582,13 @@ static const struct xlat clone_flags[] = {
{ CLONE_CHILD_CLEARTID,"CLONE_CHILD_CLEARTID" },
{ CLONE_UNTRACED, "CLONE_UNTRACED" },
{ CLONE_CHILD_SETTID,"CLONE_CHILD_SETTID" },
+ { CLONE_STOPPED, "CLONE_STOPPED" },
+ { CLONE_NEWUTS, "CLONE_NEWUTS" },
+ { CLONE_NEWIPC, "CLONE_NEWIPC" },
+ { CLONE_NEWUSER, "CLONE_NEWUSER" },
+ { CLONE_NEWPID, "CLONE_NEWPID" },
+ { CLONE_NEWNET, "CLONE_NEWNET" },
+ { CLONE_IO, "CLONE_IO" },
{ 0, NULL },
};
--
1.7.3.2
More information about the Strace-devel
mailing list