1/****************************************************************************
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 */
24  PROC_CN_MCAST_LISTEN = 1,
25  PROC_CN_MCAST_IGNORE = 2
26};
27struct proc_event {
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29  enum what {
30    PROC_EVENT_NONE = 0x00000000,
31    PROC_EVENT_FORK = 0x00000001,
32    PROC_EVENT_EXEC = 0x00000002,
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34    PROC_EVENT_UID = 0x00000004,
35    PROC_EVENT_GID = 0x00000040,
36    PROC_EVENT_SID = 0x00000080,
37    PROC_EVENT_PTRACE = 0x00000100,
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39    PROC_EVENT_COMM = 0x00000200,
40    PROC_EVENT_COREDUMP = 0x40000000,
41    PROC_EVENT_EXIT = 0x80000000
42  } what;
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44  __u32 cpu;
45  __u64 __attribute__((aligned(8))) timestamp_ns;
46  union {
47    struct {
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49      __u32 err;
50    } ack;
51    struct fork_proc_event {
52      __kernel_pid_t parent_pid;
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54      __kernel_pid_t parent_tgid;
55      __kernel_pid_t child_pid;
56      __kernel_pid_t child_tgid;
57    } fork;
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59    struct exec_proc_event {
60      __kernel_pid_t process_pid;
61      __kernel_pid_t process_tgid;
62    } exec;
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64    struct id_proc_event {
65      __kernel_pid_t process_pid;
66      __kernel_pid_t process_tgid;
67      union {
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69        __u32 ruid;
70        __u32 rgid;
71      } r;
72      union {
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74        __u32 euid;
75        __u32 egid;
76      } e;
77    } id;
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79    struct sid_proc_event {
80      __kernel_pid_t process_pid;
81      __kernel_pid_t process_tgid;
82    } sid;
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84    struct ptrace_proc_event {
85      __kernel_pid_t process_pid;
86      __kernel_pid_t process_tgid;
87      __kernel_pid_t tracer_pid;
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89      __kernel_pid_t tracer_tgid;
90    } ptrace;
91    struct comm_proc_event {
92      __kernel_pid_t process_pid;
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94      __kernel_pid_t process_tgid;
95      char comm[16];
96    } comm;
97    struct coredump_proc_event {
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99      __kernel_pid_t process_pid;
100      __kernel_pid_t process_tgid;
101    } coredump;
102    struct exit_proc_event {
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104      __kernel_pid_t process_pid;
105      __kernel_pid_t process_tgid;
106      __u32 exit_code, exit_signal;
107    } exit;
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109  } event_data;
110};
111#endif
112