blob: edeb424a15856193f7c39d7ef3002eb902657917 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _UAPICN_PROC_H
20#define _UAPICN_PROC_H
21#include <linux/types.h>
22enum proc_cn_mcast_op {
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080024 PROC_CN_MCAST_LISTEN = 1,
25 PROC_CN_MCAST_IGNORE = 2
Ben Cheng655a7c02013-10-16 16:09:24 -070026};
27struct proc_event {
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029 enum what {
30 PROC_EVENT_NONE = 0x00000000,
31 PROC_EVENT_FORK = 0x00000001,
32 PROC_EVENT_EXEC = 0x00000002,
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 PROC_EVENT_UID = 0x00000004,
35 PROC_EVENT_GID = 0x00000040,
36 PROC_EVENT_SID = 0x00000080,
37 PROC_EVENT_PTRACE = 0x00000100,
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 PROC_EVENT_COMM = 0x00000200,
40 PROC_EVENT_COREDUMP = 0x40000000,
41 PROC_EVENT_EXIT = 0x80000000
42 } what;
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044 __u32 cpu;
45 __u64 __attribute__((aligned(8))) timestamp_ns;
46 union {
47 struct {
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049 __u32 err;
50 } ack;
51 struct fork_proc_event {
52 __kernel_pid_t parent_pid;
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 __kernel_pid_t parent_tgid;
55 __kernel_pid_t child_pid;
56 __kernel_pid_t child_tgid;
57 } fork;
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059 struct exec_proc_event {
60 __kernel_pid_t process_pid;
61 __kernel_pid_t process_tgid;
62 } exec;
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080064 struct id_proc_event {
65 __kernel_pid_t process_pid;
66 __kernel_pid_t process_tgid;
67 union {
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080069 __u32 ruid;
70 __u32 rgid;
71 } r;
72 union {
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080074 __u32 euid;
75 __u32 egid;
76 } e;
77 } id;
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080079 struct sid_proc_event {
80 __kernel_pid_t process_pid;
81 __kernel_pid_t process_tgid;
82 } sid;
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080084 struct ptrace_proc_event {
85 __kernel_pid_t process_pid;
86 __kernel_pid_t process_tgid;
87 __kernel_pid_t tracer_pid;
Ben Cheng655a7c02013-10-16 16:09:24 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080089 __kernel_pid_t tracer_tgid;
90 } ptrace;
91 struct comm_proc_event {
92 __kernel_pid_t process_pid;
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080094 __kernel_pid_t process_tgid;
95 char comm[16];
96 } comm;
97 struct coredump_proc_event {
Ben Cheng655a7c02013-10-16 16:09:24 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080099 __kernel_pid_t process_pid;
100 __kernel_pid_t process_tgid;
101 } coredump;
102 struct exit_proc_event {
Ben Cheng655a7c02013-10-16 16:09:24 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800104 __kernel_pid_t process_pid;
105 __kernel_pid_t process_tgid;
106 __u32 exit_code, exit_signal;
107 } exit;
Ben Cheng655a7c02013-10-16 16:09:24 -0700108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800109 } event_data;
Ben Cheng655a7c02013-10-16 16:09:24 -0700110};
111#endif