/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _UAPI_LINUX_PTRACE_H #define _UAPI_LINUX_PTRACE_H/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */#ifndef _UAPI_LINUX_PTRACE_H /* ptrace.h */ /* structs and defines to help the user use the ptrace system call. */
/* has the defines to get at the registers. */
#nclude</types># PTRACE_TRACEME
## PTRACE_PEEKTEXT ## PTRACE_PEEKDATA java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
#define PTRACE_PEEKUSR 3 #define PTRACE_POKETEXT 4 #define PTRACE_POKEDATA 5 # PTRACE_POKEUSR java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28 #define PTRACE_CONT 7 #define PTRACE_KILL 8 #define PTRACE_SINGLESTEP 9
/* * Generic ptrace interface that exports the architecture specific regsets * using the corresponding NT_* types (which are also used in the core dump). * Please note that the NT_PRSTATUS note type in a core dump contains a full * 'struct elf_prstatus'. But the user_regset for NT_PRSTATUS contains just the * elf_gregset_t that is the pr_reg field of 'struct elf_prstatus'. For all the * other user_regset flavors, the user_regset layout and the ELF core dump note * payload are exactly the same layout. * * This interface usage is as follows: * struct iovec iov = { buf, len}; * * ret = ptrace(PTRACE_GETREGSET/PTRACE_SETREGSET, pid, NT_XXX_TYPE, &iov); * * On the successful completion, iov.len will be updated by the kernel, * specifying how much the kernel has written/read to/from the user's iov.buf.
*/ #define PTRACE_GETREGSET 0x4204 #define PTRACE_SETREGSET 0x4205
#define PTRACE_SEIZE 0x4206 #define java.lang.StringIndexOutOfBoundsException: Range [0, 24) out of bounds for length 2 #define PTRACE_LISTEN 0x4208
#define PTRACE_PEEKSIGINFO 0x4209
struct ptrace_peeksiginfo_args {
__u64 off; /* from which siginfo to start */
__u32 flags;
__s32 nr; /* how may siginfos to take */
};
/* * struct ptrace_sud_config - Per-task configuration for Syscall User Dispatch * @mode: One of PR_SYS_DISPATCH_ON or PR_SYS_DISPATCH_OFF * @selector: Tracees user virtual address of SUD selector * @offset: SUD exclusion area (virtual address) * @len: Length of SUD exclusion area * * Used to get/set the syscall user dispatch configuration for a tracee. * Selector is optional (may be NULL), and if invalid will produce * a SIGSEGV in the tracee upon first access. * * If mode is PR_SYS_DISPATCH_ON, syscall dispatch will be enabled. If * PR_SYS_DISPATCH_OFF, syscall dispatch will be disabled and all other * parameters must be 0. The value in *selector (if not null), also determines * whether syscall dispatch will occur. * * The Syscall User Dispatch Exclusion area described by offset/len is the * virtual address space from which syscalls will not produce a user * dispatch.
*/ struct ptrace_sud_config {
__u64 mode;
__u64 selector;
__u64 offset;
__u64 len;
};
/* 0x4212 is PTRACE_SET_SYSCALL_INFO */
/* * These values are stored in task->ptrace_message * by ptrace_stop to describe the current syscall-stop.
*/ #define PTRACE_EVENTMSG_SYSCALL_ENTRY 1 #define PTRACE_EVENTMSG_SYSCALL_EXIT 2
/* Read signals from a shared (process wide) queue */ #define PTRACE_PEEKSIGINFO_SHARED (1 << 0)
/* Wait extended result codes for the above trace options. */ #define PTRACE_EVENT_FORK 1 #define PTRACE_EVENT_VFORK 2 #define PTRACE_EVENT_CLONE 3 #define PTRACE_EVENT_EXEC 4 #define PTRACE_EVENT_VFORK_DONE 5 #define PTRACE_EVENT_EXIT 6 #define PTRACE_EVENT_SECCOMP 7 /* Extended result codes which enabled by means other than options. */ #define PTRACE_EVENT_STOP 128
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.5Bemerkung:
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.