1abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes/**************************************************************************** 2abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes **************************************************************************** 3abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes *** 4abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes *** This header was automatically generated from a Linux kernel header 5abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes *** of the same name, to make information necessary for userspace to 6abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes *** call into the kernel available to libc. It contains only constants, 7abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes *** structures, and macros generated from the original header, and thus, 8abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes *** contains no copyrightable information. 9abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes *** 10abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes *** To edit the content of this header, modify the corresponding 11abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes *** source file (e.g. under external/kernel-headers/original/) then 12abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes *** run bionic/libc/kernel/tools/update_all.py 13abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes *** 14abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes *** Any manual change here will be lost the next time this script will 15abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes *** be run. You've been warned! 16abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes *** 17abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes **************************************************************************** 18abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes ****************************************************************************/ 19abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#ifndef _UAPI_ASM_PTRACE_H 20abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define _UAPI_ASM_PTRACE_H 2182d7504cd7d5c8d2175fb3b1a4ee3518cad6aa0fChristopher Ferris#include <linux/types.h> 22abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define FPR_BASE 32 23abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2482d7504cd7d5c8d2175fb3b1a4ee3518cad6aa0fChristopher Ferris#define PC 64 25abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define CAUSE 65 26abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define BADVADDR 66 27abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define MMHI 67 28abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2982d7504cd7d5c8d2175fb3b1a4ee3518cad6aa0fChristopher Ferris#define MMLO 68 30abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define FPC_CSR 69 31abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define FPC_EIR 70 32abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define DSP_BASE 71 33abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 3482d7504cd7d5c8d2175fb3b1a4ee3518cad6aa0fChristopher Ferris#define DSP_CONTROL 77 35abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define ACX 78 36abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughesstruct pt_regs { 37d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u64 regs[32]; 38abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u64 lo; 40d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u64 hi; 41d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u64 cp0_epc; 42d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u64 cp0_badvaddr; 43abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u64 cp0_status; 45d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u64 cp0_cause; 46d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao} __attribute__((aligned(8))); 47abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define PTRACE_GETREGS 12 48abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 4982d7504cd7d5c8d2175fb3b1a4ee3518cad6aa0fChristopher Ferris#define PTRACE_SETREGS 13 50abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define PTRACE_GETFPREGS 14 51abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define PTRACE_SETFPREGS 15 52abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define PTRACE_OLDSETOPTIONS 21 53abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 5482d7504cd7d5c8d2175fb3b1a4ee3518cad6aa0fChristopher Ferris#define PTRACE_GET_THREAD_AREA 25 55abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define PTRACE_SET_THREAD_AREA 26 56abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define PTRACE_PEEKTEXT_3264 0xc0 57abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define PTRACE_PEEKDATA_3264 0xc1 58abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 5982d7504cd7d5c8d2175fb3b1a4ee3518cad6aa0fChristopher Ferris#define PTRACE_POKETEXT_3264 0xc2 60abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define PTRACE_POKEDATA_3264 0xc3 61abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define PTRACE_GET_THREAD_AREA_3264 0xc4 62abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughesenum pt_watch_style { 63abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao pt_watch_style_mips32, 65d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao pt_watch_style_mips64 66abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes}; 67abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughesstruct mips32_watch_regs { 68abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao unsigned int watchlo[8]; 70d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao unsigned short watchhi[8]; 71d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao unsigned short watch_masks[8]; 72d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao unsigned int num_valid; 73abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 7482d7504cd7d5c8d2175fb3b1a4ee3518cad6aa0fChristopher Ferris} __attribute__((aligned(8))); 75abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughesstruct mips64_watch_regs { 76d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao unsigned long long watchlo[8]; 77d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao unsigned short watchhi[8]; 78abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao unsigned short watch_masks[8]; 80d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao unsigned int num_valid; 81abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes} __attribute__((aligned(8))); 82abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughesstruct pt_watch_regs { 83abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao enum pt_watch_style style; 85d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao union { 86d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao struct mips32_watch_regs mips32; 87d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao struct mips64_watch_regs mips64; 88abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 89d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao }; 90abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes}; 91abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define PTRACE_GET_WATCH_REGS 0xd0 92abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define PTRACE_SET_WATCH_REGS 0xd1 93abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 9482d7504cd7d5c8d2175fb3b1a4ee3518cad6aa0fChristopher Ferris#endif 95