Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux
File: ptrace.h
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
[0] Fix | Delete
#ifndef _LINUX_PTRACE_H
[1] Fix | Delete
#define _LINUX_PTRACE_H
[2] Fix | Delete
/* ptrace.h */
[3] Fix | Delete
/* structs and defines to help the user use the ptrace system call. */
[4] Fix | Delete
[5] Fix | Delete
/* has the defines to get at the registers. */
[6] Fix | Delete
[7] Fix | Delete
#include <linux/types.h>
[8] Fix | Delete
[9] Fix | Delete
#define PTRACE_TRACEME 0
[10] Fix | Delete
#define PTRACE_PEEKTEXT 1
[11] Fix | Delete
#define PTRACE_PEEKDATA 2
[12] Fix | Delete
#define PTRACE_PEEKUSR 3
[13] Fix | Delete
#define PTRACE_POKETEXT 4
[14] Fix | Delete
#define PTRACE_POKEDATA 5
[15] Fix | Delete
#define PTRACE_POKEUSR 6
[16] Fix | Delete
#define PTRACE_CONT 7
[17] Fix | Delete
#define PTRACE_KILL 8
[18] Fix | Delete
#define PTRACE_SINGLESTEP 9
[19] Fix | Delete
[20] Fix | Delete
#define PTRACE_ATTACH 16
[21] Fix | Delete
#define PTRACE_DETACH 17
[22] Fix | Delete
[23] Fix | Delete
#define PTRACE_SYSCALL 24
[24] Fix | Delete
[25] Fix | Delete
/* 0x4200-0x4300 are reserved for architecture-independent additions. */
[26] Fix | Delete
#define PTRACE_SETOPTIONS 0x4200
[27] Fix | Delete
#define PTRACE_GETEVENTMSG 0x4201
[28] Fix | Delete
#define PTRACE_GETSIGINFO 0x4202
[29] Fix | Delete
#define PTRACE_SETSIGINFO 0x4203
[30] Fix | Delete
[31] Fix | Delete
/*
[32] Fix | Delete
* Generic ptrace interface that exports the architecture specific regsets
[33] Fix | Delete
* using the corresponding NT_* types (which are also used in the core dump).
[34] Fix | Delete
* Please note that the NT_PRSTATUS note type in a core dump contains a full
[35] Fix | Delete
* 'struct elf_prstatus'. But the user_regset for NT_PRSTATUS contains just the
[36] Fix | Delete
* elf_gregset_t that is the pr_reg field of 'struct elf_prstatus'. For all the
[37] Fix | Delete
* other user_regset flavors, the user_regset layout and the ELF core dump note
[38] Fix | Delete
* payload are exactly the same layout.
[39] Fix | Delete
*
[40] Fix | Delete
* This interface usage is as follows:
[41] Fix | Delete
* struct iovec iov = { buf, len};
[42] Fix | Delete
*
[43] Fix | Delete
* ret = ptrace(PTRACE_GETREGSET/PTRACE_SETREGSET, pid, NT_XXX_TYPE, &iov);
[44] Fix | Delete
*
[45] Fix | Delete
* On the successful completion, iov.len will be updated by the kernel,
[46] Fix | Delete
* specifying how much the kernel has written/read to/from the user's iov.buf.
[47] Fix | Delete
*/
[48] Fix | Delete
#define PTRACE_GETREGSET 0x4204
[49] Fix | Delete
#define PTRACE_SETREGSET 0x4205
[50] Fix | Delete
[51] Fix | Delete
#define PTRACE_SEIZE 0x4206
[52] Fix | Delete
#define PTRACE_INTERRUPT 0x4207
[53] Fix | Delete
#define PTRACE_LISTEN 0x4208
[54] Fix | Delete
[55] Fix | Delete
#define PTRACE_PEEKSIGINFO 0x4209
[56] Fix | Delete
[57] Fix | Delete
struct ptrace_peeksiginfo_args {
[58] Fix | Delete
__u64 off; /* from which siginfo to start */
[59] Fix | Delete
__u32 flags;
[60] Fix | Delete
__s32 nr; /* how may siginfos to take */
[61] Fix | Delete
};
[62] Fix | Delete
[63] Fix | Delete
#define PTRACE_GETSIGMASK 0x420a
[64] Fix | Delete
#define PTRACE_SETSIGMASK 0x420b
[65] Fix | Delete
[66] Fix | Delete
#define PTRACE_SECCOMP_GET_FILTER 0x420c
[67] Fix | Delete
#define PTRACE_SECCOMP_GET_METADATA 0x420d
[68] Fix | Delete
[69] Fix | Delete
struct seccomp_metadata {
[70] Fix | Delete
__u64 filter_off; /* Input: which filter */
[71] Fix | Delete
__u64 flags; /* Output: filter's flags */
[72] Fix | Delete
};
[73] Fix | Delete
[74] Fix | Delete
#define PTRACE_GET_RSEQ_CONFIGURATION 0x420f
[75] Fix | Delete
[76] Fix | Delete
struct ptrace_rseq_configuration {
[77] Fix | Delete
__u64 rseq_abi_pointer;
[78] Fix | Delete
__u32 rseq_abi_size;
[79] Fix | Delete
__u32 signature;
[80] Fix | Delete
__u32 flags;
[81] Fix | Delete
__u32 pad;
[82] Fix | Delete
};
[83] Fix | Delete
[84] Fix | Delete
/* Read signals from a shared (process wide) queue */
[85] Fix | Delete
#define PTRACE_PEEKSIGINFO_SHARED (1 << 0)
[86] Fix | Delete
[87] Fix | Delete
/* Wait extended result codes for the above trace options. */
[88] Fix | Delete
#define PTRACE_EVENT_FORK 1
[89] Fix | Delete
#define PTRACE_EVENT_VFORK 2
[90] Fix | Delete
#define PTRACE_EVENT_CLONE 3
[91] Fix | Delete
#define PTRACE_EVENT_EXEC 4
[92] Fix | Delete
#define PTRACE_EVENT_VFORK_DONE 5
[93] Fix | Delete
#define PTRACE_EVENT_EXIT 6
[94] Fix | Delete
#define PTRACE_EVENT_SECCOMP 7
[95] Fix | Delete
/* Extended result codes which enabled by means other than options. */
[96] Fix | Delete
#define PTRACE_EVENT_STOP 128
[97] Fix | Delete
[98] Fix | Delete
/* Options set using PTRACE_SETOPTIONS or using PTRACE_SEIZE @data param */
[99] Fix | Delete
#define PTRACE_O_TRACESYSGOOD 1
[100] Fix | Delete
#define PTRACE_O_TRACEFORK (1 << PTRACE_EVENT_FORK)
[101] Fix | Delete
#define PTRACE_O_TRACEVFORK (1 << PTRACE_EVENT_VFORK)
[102] Fix | Delete
#define PTRACE_O_TRACECLONE (1 << PTRACE_EVENT_CLONE)
[103] Fix | Delete
#define PTRACE_O_TRACEEXEC (1 << PTRACE_EVENT_EXEC)
[104] Fix | Delete
#define PTRACE_O_TRACEVFORKDONE (1 << PTRACE_EVENT_VFORK_DONE)
[105] Fix | Delete
#define PTRACE_O_TRACEEXIT (1 << PTRACE_EVENT_EXIT)
[106] Fix | Delete
#define PTRACE_O_TRACESECCOMP (1 << PTRACE_EVENT_SECCOMP)
[107] Fix | Delete
[108] Fix | Delete
/* eventless options */
[109] Fix | Delete
#define PTRACE_O_EXITKILL (1 << 20)
[110] Fix | Delete
#define PTRACE_O_SUSPEND_SECCOMP (1 << 21)
[111] Fix | Delete
[112] Fix | Delete
#define PTRACE_O_MASK (\
[113] Fix | Delete
0x000000ff | PTRACE_O_EXITKILL | PTRACE_O_SUSPEND_SECCOMP)
[114] Fix | Delete
[115] Fix | Delete
#include <asm/ptrace.h>
[116] Fix | Delete
[117] Fix | Delete
#endif /* _LINUX_PTRACE_H */
[118] Fix | Delete
[119] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function