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 _UAPI_LINUX_PTRACE_H
20 #define _UAPI_LINUX_PTRACE_H
21 #include <linux/types.h>
22 #define PTRACE_TRACEME 0
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 #define PTRACE_PEEKTEXT 1
25 #define PTRACE_PEEKDATA 2
26 #define PTRACE_PEEKUSR 3
27 #define PTRACE_POKETEXT 4
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 #define PTRACE_POKEDATA 5
30 #define PTRACE_POKEUSR 6
31 #define PTRACE_CONT 7
32 #define PTRACE_KILL 8
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 #define PTRACE_SINGLESTEP 9
35 #define PTRACE_ATTACH 16
36 #define PTRACE_DETACH 17
37 #define PTRACE_SYSCALL 24
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 #define PTRACE_SETOPTIONS 0x4200
40 #define PTRACE_GETEVENTMSG 0x4201
41 #define PTRACE_GETSIGINFO 0x4202
42 #define PTRACE_SETSIGINFO 0x4203
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 #define PTRACE_GETREGSET 0x4204
45 #define PTRACE_SETREGSET 0x4205
46 #define PTRACE_SEIZE 0x4206
47 #define PTRACE_INTERRUPT 0x4207
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 #define PTRACE_LISTEN 0x4208
50 #define PTRACE_PEEKSIGINFO 0x4209
51 struct ptrace_peeksiginfo_args {
52   __u64 off;
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54   __u32 flags;
55   __s32 nr;
56 };
57 #define PTRACE_GETSIGMASK 0x420a
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 #define PTRACE_SETSIGMASK 0x420b
60 #define PTRACE_SECCOMP_GET_FILTER 0x420c
61 #define PTRACE_PEEKSIGINFO_SHARED (1 << 0)
62 #define PTRACE_EVENT_FORK 1
63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 #define PTRACE_EVENT_VFORK 2
65 #define PTRACE_EVENT_CLONE 3
66 #define PTRACE_EVENT_EXEC 4
67 #define PTRACE_EVENT_VFORK_DONE 5
68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 #define PTRACE_EVENT_EXIT 6
70 #define PTRACE_EVENT_SECCOMP 7
71 #define PTRACE_EVENT_STOP 128
72 #define PTRACE_O_TRACESYSGOOD 1
73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 #define PTRACE_O_TRACEFORK (1 << PTRACE_EVENT_FORK)
75 #define PTRACE_O_TRACEVFORK (1 << PTRACE_EVENT_VFORK)
76 #define PTRACE_O_TRACECLONE (1 << PTRACE_EVENT_CLONE)
77 #define PTRACE_O_TRACEEXEC (1 << PTRACE_EVENT_EXEC)
78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79 #define PTRACE_O_TRACEVFORKDONE (1 << PTRACE_EVENT_VFORK_DONE)
80 #define PTRACE_O_TRACEEXIT (1 << PTRACE_EVENT_EXIT)
81 #define PTRACE_O_TRACESECCOMP (1 << PTRACE_EVENT_SECCOMP)
82 #define PTRACE_O_EXITKILL (1 << 20)
83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84 #define PTRACE_O_SUSPEND_SECCOMP (1 << 21)
85 #define PTRACE_O_MASK (0x000000ff | PTRACE_O_EXITKILL | PTRACE_O_SUSPEND_SECCOMP)
86 #include <asm/ptrace.h>
87 #endif
88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89