ptrace.h revision 8cb52b056cfc302e05304d847c4228dff15715cf
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
51struct 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_PEEKSIGINFO_SHARED (1 << 0)
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59#define PTRACE_EVENT_FORK 1
60#define PTRACE_EVENT_VFORK 2
61#define PTRACE_EVENT_CLONE 3
62#define PTRACE_EVENT_EXEC 4
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64#define PTRACE_EVENT_VFORK_DONE 5
65#define PTRACE_EVENT_EXIT 6
66#define PTRACE_EVENT_SECCOMP 7
67#define PTRACE_EVENT_STOP 128
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69#define PTRACE_O_TRACESYSGOOD 1
70#define PTRACE_O_TRACEFORK (1 << PTRACE_EVENT_FORK)
71#define PTRACE_O_TRACEVFORK (1 << PTRACE_EVENT_VFORK)
72#define PTRACE_O_TRACECLONE (1 << PTRACE_EVENT_CLONE)
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74#define PTRACE_O_TRACEEXEC (1 << PTRACE_EVENT_EXEC)
75#define PTRACE_O_TRACEVFORKDONE (1 << PTRACE_EVENT_VFORK_DONE)
76#define PTRACE_O_TRACEEXIT (1 << PTRACE_EVENT_EXIT)
77#define PTRACE_O_TRACESECCOMP (1 << PTRACE_EVENT_SECCOMP)
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79#define PTRACE_O_EXITKILL (1 << 20)
80#define PTRACE_O_MASK (0x000000ff | PTRACE_O_EXITKILL)
81#include <asm/ptrace.h>
82#endif
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84