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
56 PROC_EVENT_PTRACE = 0x00000100,56 PROC_EVENT_PTRACE = 0x00000100,
57 PROC_EVENT_COMM = 0x00000200,57 PROC_EVENT_COMM = 0x00000200,
58 /* "next" should be 0x00000400 */58 /* "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,
60 PROC_EVENT_EXIT = 0x8000000062 PROC_EVENT_EXIT = 0x80000000
61 } what;63 } what;
62 __u32 cpu;64 __u32 cpu;
@@ -110,11 +112,17 @@ struct proc_event { · 47 unmodified lines
110 char comm[16];112 char comm[16];
111 } comm;113 } comm;
112 114
115 struct coredump_proc_event {
116 __kernel_pid_t process_pid;
117 __kernel_pid_t process_tgid;
118 } coredump;
119
113 struct exit_proc_event {120 struct exit_proc_event {
114 __kernel_pid_t process_pid;121 __kernel_pid_t process_pid;
115 __kernel_pid_t process_tgid;122 __kernel_pid_t process_tgid;
116 __u32 exit_code, exit_signal;123 __u32 exit_code, exit_signal;
117 } exit;124 } exit;
125
118 } event_data;126 } event_data;
119};127};
120 128

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