blob: 079c0c89a88d227d320437c456d09b91b823482c [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/****************************************************************************
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 ****************************************************************************
11 ****************************************************************************/
12#ifndef _LINUX_PTRACE_H
13#define _LINUX_PTRACE_H
Ben Cheng4b29af02012-03-07 16:14:53 -080014
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080015#define PTRACE_TRACEME 0
16#define PTRACE_PEEKTEXT 1
17#define PTRACE_PEEKDATA 2
18#define PTRACE_PEEKUSR 3
19#define PTRACE_POKETEXT 4
20#define PTRACE_POKEDATA 5
21#define PTRACE_POKEUSR 6
22#define PTRACE_CONT 7
23#define PTRACE_KILL 8
24#define PTRACE_SINGLESTEP 9
Ben Cheng4b29af02012-03-07 16:14:53 -080025
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080026#define PTRACE_ATTACH 0x10
27#define PTRACE_DETACH 0x11
Ben Cheng4b29af02012-03-07 16:14:53 -080028
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080029#define PTRACE_SYSCALL 24
Ben Cheng4b29af02012-03-07 16:14:53 -080030
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080031#define PTRACE_SETOPTIONS 0x4200
32#define PTRACE_GETEVENTMSG 0x4201
33#define PTRACE_GETSIGINFO 0x4202
34#define PTRACE_SETSIGINFO 0x4203
Ben Cheng4b29af02012-03-07 16:14:53 -080035
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080036#define PTRACE_O_TRACESYSGOOD 0x00000001
37#define PTRACE_O_TRACEFORK 0x00000002
38#define PTRACE_O_TRACEVFORK 0x00000004
39#define PTRACE_O_TRACECLONE 0x00000008
40#define PTRACE_O_TRACEEXEC 0x00000010
41#define PTRACE_O_TRACEVFORKDONE 0x00000020
42#define PTRACE_O_TRACEEXIT 0x00000040
Ben Cheng4b29af02012-03-07 16:14:53 -080043
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080044#define PTRACE_O_MASK 0x0000007f
Ben Cheng4b29af02012-03-07 16:14:53 -080045
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080046#define PTRACE_EVENT_FORK 1
47#define PTRACE_EVENT_VFORK 2
48#define PTRACE_EVENT_CLONE 3
49#define PTRACE_EVENT_EXEC 4
50#define PTRACE_EVENT_VFORK_DONE 5
51#define PTRACE_EVENT_EXIT 6
Ben Cheng4b29af02012-03-07 16:14:53 -080052
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080053#include <asm/ptrace.h>
Ben Cheng4b29af02012-03-07 16:14:53 -080054
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080055#endif