blob: a3244e9b3b640e33570c50012749e8ca717d05b4 [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 _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 {
Tao Baod7db5942015-01-28 10:07:51 -080052 __u64 off;
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 __u32 flags;
55 __s32 nr;
Ben Cheng655a7c02013-10-16 16:09:24 -070056};
Christopher Ferris38062f92014-07-09 15:33:25 -070057#define PTRACE_GETSIGMASK 0x420a
Elliott Hughes8cb52b02013-11-21 13:43:23 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070059#define PTRACE_SETSIGMASK 0x420b
60#define PTRACE_PEEKSIGINFO_SHARED (1 << 0)
Ben Cheng655a7c02013-10-16 16:09:24 -070061#define PTRACE_EVENT_FORK 1
62#define PTRACE_EVENT_VFORK 2
Christopher Ferris38062f92014-07-09 15:33:25 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070064#define PTRACE_EVENT_CLONE 3
65#define PTRACE_EVENT_EXEC 4
66#define PTRACE_EVENT_VFORK_DONE 5
67#define PTRACE_EVENT_EXIT 6
Christopher Ferris38062f92014-07-09 15:33:25 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070069#define PTRACE_EVENT_SECCOMP 7
70#define PTRACE_EVENT_STOP 128
71#define PTRACE_O_TRACESYSGOOD 1
72#define PTRACE_O_TRACEFORK (1 << PTRACE_EVENT_FORK)
Christopher Ferris38062f92014-07-09 15:33:25 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070074#define PTRACE_O_TRACEVFORK (1 << PTRACE_EVENT_VFORK)
75#define PTRACE_O_TRACECLONE (1 << PTRACE_EVENT_CLONE)
76#define PTRACE_O_TRACEEXEC (1 << PTRACE_EVENT_EXEC)
77#define PTRACE_O_TRACEVFORKDONE (1 << PTRACE_EVENT_VFORK_DONE)
Christopher Ferris38062f92014-07-09 15:33:25 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070079#define PTRACE_O_TRACEEXIT (1 << PTRACE_EVENT_EXIT)
80#define PTRACE_O_TRACESECCOMP (1 << PTRACE_EVENT_SECCOMP)
81#define PTRACE_O_EXITKILL (1 << 20)
82#define PTRACE_O_MASK (0x000000ff | PTRACE_O_EXITKILL)
Christopher Ferris38062f92014-07-09 15:33:25 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070084#include <asm/ptrace.h>
85#endif