Path: blob/master/arch/s390/kernel/compat_ptrace.h
10817 views
#ifndef _PTRACE32_H1#define _PTRACE32_H23#include <asm/ptrace.h> /* needed for NUM_CR_WORDS */4#include "compat_linux.h" /* needed for psw_compat_t */56struct compat_per_struct_kernel {7__u32 cr9; /* PER control bits */8__u32 cr10; /* PER starting address */9__u32 cr11; /* PER ending address */10__u32 bits; /* Obsolete software bits */11__u32 starting_addr; /* User specified start address */12__u32 ending_addr; /* User specified end address */13__u16 perc_atmid; /* PER trap ATMID */14__u32 address; /* PER trap instruction address */15__u8 access_id; /* PER trap access identification */16};1718struct compat_user_regs_struct19{20psw_compat_t psw;21u32 gprs[NUM_GPRS];22u32 acrs[NUM_ACRS];23u32 orig_gpr2;24/* nb: there's a 4-byte hole here */25s390_fp_regs fp_regs;26/*27* These per registers are in here so that gdb can modify them28* itself as there is no "official" ptrace interface for hardware29* watchpoints. This is the way intel does it.30*/31struct compat_per_struct_kernel per_info;32u32 ieee_instruction_pointer; /* obsolete, always 0 */33};3435struct compat_user {36/* We start with the registers, to mimic the way that "memory"37is returned from the ptrace(3,...) function. */38struct compat_user_regs_struct regs;39/* The rest of this junk is to help gdb figure out what goes where */40u32 u_tsize; /* Text segment size (pages). */41u32 u_dsize; /* Data segment size (pages). */42u32 u_ssize; /* Stack segment size (pages). */43u32 start_code; /* Starting virtual address of text. */44u32 start_stack; /* Starting virtual address of stack area.45This is actually the bottom of the stack,46the top of the stack is always found in the47esp register. */48s32 signal; /* Signal that caused the core dump. */49u32 u_ar0; /* Used by gdb to help find the values for */50/* the registers. */51u32 magic; /* To uniquely identify a core file */52char u_comm[32]; /* User command that was responsible */53};5455typedef struct56{57__u32 len;58__u32 kernel_addr;59__u32 process_addr;60} compat_ptrace_area;6162#endif /* _PTRACE32_H */636465