History

connector: Added coredumping event to the process connector

Process connector can now also detect coredumping events. Main aim of patch is get notified at start of coredumping, instead of having to wait for it to finish and then being notified through EXIT event. Could be used for instance by process-managers that want to get notified as soon as possible about process failures, and not necessarily beeing notified after coredump, which could be in the order of minutes depending on size of coredump, piping and so on.

Jesper Derehag committed 13 years ago

Commit 2b5faa41 parent 800c6444 files · +40 −1Browse files

Showing the changes to include/uapi/linux (1 of 4 files). Show all

Unified · Split

include/uapi/linux/cn_proc.h+9−1
@@ -56,7 +56,9 @@ struct proc_event { · 55 unmodified lines
5656 PROC_EVENT_PTRACE = 0x00000100,
5757 PROC_EVENT_COMM = 0x00000200,
5858 /* "next" should be 0x00000400 */
59− /* "last" is the last process event: exit */
59+ /* "last" is the last process event: exit,
60+ * while "next to last" is coredumping event */
61+ PROC_EVENT_COREDUMP = 0x40000000,
6062 PROC_EVENT_EXIT = 0x80000000
6163 } what;
6264 __u32 cpu;
@@ -110,11 +112,17 @@ struct proc_event { · 47 unmodified lines
110112 char comm[16];
111113 } comm;
112114
115+ struct coredump_proc_event {
116+ __kernel_pid_t process_pid;
117+ __kernel_pid_t process_tgid;
118+ } coredump;
119+
113120 struct exit_proc_event {
114121 __kernel_pid_t process_pid;
115122 __kernel_pid_t process_tgid;
116123 __u32 exit_code, exit_signal;
117124 } exit;
125+
118126 } event_data;
119127 };
120128

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t