Package vtrace :: Package platforms :: Module linux
[hide private]
[frames] | no frames]

Module linux

source code

Linux Platform Module

Classes [hide private]
  user_regs_arm
  fp_reg_arm
  user_fpregs_arm
  USER_arm
  user_regs_i386
  USER_i386
  user_regs_amd64
  LinuxMixin
The mixin to take care of linux specific platform traits.
  Linuxi386Trace
  LinuxAmd64Trace
  LinuxArmTrace
Variables [hide private]
  libc = CDLL(cutil.find_library("c"))
  O_RDWR = 2
  O_LARGEFILE = 0x8000
  MAP_ANONYMOUS = 0x20
  MAP_PRIVATE = 0x02
  PT_GETREGS = 12
  PT_SETREGS = 13
  PT_GETFPREGS = 14
  PT_SETFPREGS = 15
  PT_ATTACH = 16
  PT_DETACH = 17
  PT_GETFPXREGS = 18
  PT_SETFPXREGS = 19
  PT_SYSCALL = 24
  PT_SETOPTIONS = 0x4200
  PT_GETEVENTMSG = 0x4201
  PT_GETSIGINFO = 0x4202
  PT_SETSIGINFO = 0x4203
  PT_O_TRACESYSGOOD = 0x00000001
  PT_O_TRACEFORK = 0x00000002
  PT_O_TRACEVFORK = 0x00000004
  PT_O_TRACECLONE = 0x00000008
  PT_O_TRACEEXEC = 0x00000010
  PT_O_TRACEVFORKDONE = 0x00000020
  PT_O_TRACEEXIT = 0x00000040
  PT_O_MASK = 0x0000007f
  PT_EVENT_FORK = 1
  PT_EVENT_VFORK = 2
  PT_EVENT_CLONE = 3
  PT_EVENT_EXEC = 4
  PT_EVENT_VFORK_DONE = 5
  PT_EVENT_EXIT = 6
  SIG_LINUX_SYSCALL = signal.SIGTRAP | 0x80
  SIG_LINUX_CLONE = signal.SIGTRAP |(PT_EVENT_CLONE << 8)
  SIG_LINUX_EXIT = signal.SIGTRAP |(PT_EVENT_EXIT << 8)
  intel_dbgregs = 0, 1, 2, 3, 6, 7
  arm_break_be = 'e7f001f0'.decode('hex')
  arm_break_le = 'f001f0e7'.decode('hex')