File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
tools/testing/selftests/pidfd Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 131
131
#define PIDFD_INFO_EXIT (1UL << 3) /* Always returned if available, even if not requested */
132
132
#endif
133
133
134
+ #ifndef PIDFD_INFO_COREDUMP
135
+ #define PIDFD_INFO_COREDUMP (1UL << 4)
136
+ #endif
137
+
138
+ #ifndef PIDFD_COREDUMPED
139
+ #define PIDFD_COREDUMPED (1U << 0) /* Did crash and... */
140
+ #endif
141
+
142
+ #ifndef PIDFD_COREDUMP_SKIP
143
+ #define PIDFD_COREDUMP_SKIP (1U << 1) /* coredumping generation was skipped. */
144
+ #endif
145
+
146
+ #ifndef PIDFD_COREDUMP_USER
147
+ #define PIDFD_COREDUMP_USER (1U << 2) /* coredump was done as the user. */
148
+ #endif
149
+
150
+ #ifndef PIDFD_COREDUMP_ROOT
151
+ #define PIDFD_COREDUMP_ROOT (1U << 3) /* coredump was done as root. */
152
+ #endif
153
+
134
154
#ifndef PIDFD_THREAD
135
155
#define PIDFD_THREAD O_EXCL
136
156
#endif
@@ -150,6 +170,8 @@ struct pidfd_info {
150
170
__u32 fsuid ;
151
171
__u32 fsgid ;
152
172
__s32 exit_code ;
173
+ __u32 coredump_mask ;
174
+ __u32 __spare1 ;
153
175
};
154
176
155
177
/*
You can’t perform that action at this time.
0 commit comments