File: ptrace.h

package info (click to toggle)
criu 4.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,584 kB
  • sloc: ansic: 139,280; python: 7,484; sh: 3,824; java: 2,799; makefile: 2,659; asm: 1,137; perl: 206; xml: 117; exp: 45
file content (15 lines) | stat: -rw-r--r-- 401 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef COMPEL_PTRACE_H__
#define COMPEL_PTRACE_H__

#include <linux/types.h>
#include <compel/asm/infect-types.h>
#include <compel/ptrace.h>

#define PTRACE_SYSCALL_TRAP 0x80

#define PTRACE_SI_EVENT(_si_code) (((_si_code)&0xFFFF) >> 8)

extern int ptrace_get_regs(pid_t pid, user_regs_struct_t *regs);
extern int ptrace_set_regs(pid_t pid, user_regs_struct_t *regs);

#endif /* COMPEL_PTRACE_H__ */