]> granicus.if.org Git - strace/commitdiff
Update PR_* constants
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 27 Mar 2013 14:57:39 +0000 (14:57 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 27 Mar 2013 14:57:39 +0000 (14:57 +0000)
* process.c (prctl_options): Add more PR_* constants from linux/prctl.h.

process.c

index de88c937c417050b3e0c224544c9d19595c66b89..36f10ba6f21b9bf47823c0b59ffcc4d59b7e9c04 100644 (file)
--- a/process.c
+++ b/process.c
@@ -159,6 +159,7 @@ static const struct xlat prctl_options[] = {
 #ifdef PR_PTHREADEXIT
        { PR_PTHREADEXIT,       "PR_PTHREADEXIT"        },
 #endif
+
 #ifdef PR_SET_PDEATHSIG
        { PR_SET_PDEATHSIG,     "PR_SET_PDEATHSIG"      },
 #endif
@@ -219,6 +220,12 @@ static const struct xlat prctl_options[] = {
 #ifdef PR_SET_SECCOMP
        { PR_SET_SECCOMP,       "PR_SET_SECCOMP"        },
 #endif
+#ifdef PR_CAPBSET_READ
+       { PR_CAPBSET_READ,      "PR_CAPBSET_READ"       },
+#endif
+#ifdef PR_CAPBSET_DROP
+       { PR_CAPBSET_DROP,      "PR_CAPBSET_DROP"       },
+#endif
 #ifdef PR_GET_TSC
        { PR_GET_TSC,           "PR_GET_TSC"            },
 #endif
@@ -230,6 +237,42 @@ static const struct xlat prctl_options[] = {
 #endif
 #ifdef PR_SET_SECUREBITS
        { PR_SET_SECUREBITS,    "PR_SET_SECUREBITS"     },
+#endif
+#ifdef PR_SET_TIMERSLACK
+       { PR_SET_TIMERSLACK,    "PR_SET_TIMERSLACK"     },
+#endif
+#ifdef PR_GET_TIMERSLACK
+       { PR_GET_TIMERSLACK,    "PR_GET_TIMERSLACK"     },
+#endif
+#ifdef PR_TASK_PERF_EVENTS_DISABLE
+       { PR_TASK_PERF_EVENTS_DISABLE,  "PR_TASK_PERF_EVENTS_DISABLE"   },
+#endif
+#ifdef PR_TASK_PERF_EVENTS_ENABLE
+       { PR_TASK_PERF_EVENTS_ENABLE,   "PR_TASK_PERF_EVENTS_ENABLE"    },
+#endif
+#ifdef PR_MCE_KILL
+       { PR_MCE_KILL,          "PR_MCE_KILL"           },
+#endif
+#ifdef PR_MCE_KILL_GET
+       { PR_MCE_KILL_GET,      "PR_MCE_KILL_GET"       },
+#endif
+#ifdef PR_SET_MM
+       { PR_SET_MM,            "PR_SET_MM"             },
+#endif
+#ifdef PR_SET_CHILD_SUBREAPER
+       { PR_SET_CHILD_SUBREAPER,       "PR_SET_CHILD_SUBREAPER"        },
+#endif
+#ifdef PR_GET_CHILD_SUBREAPER
+       { PR_GET_CHILD_SUBREAPER,       "PR_GET_CHILD_SUBREAPER"        },
+#endif
+#ifdef PR_SET_NO_NEW_PRIVS
+       { PR_SET_NO_NEW_PRIVS,  "PR_SET_NO_NEW_PRIVS"   },
+#endif
+#ifdef PR_GET_NO_NEW_PRIVS
+       { PR_GET_NO_NEW_PRIVS,  "PR_GET_NO_NEW_PRIVS"   },
+#endif
+#ifdef PR_GET_TID_ADDRESS
+       { PR_GET_TID_ADDRESS,   "PR_GET_TID_ADDRESS"    },
 #endif
        { 0,                    NULL                    },
 };