2013-10-16 23:27:59 +02:00
|
|
|
/* Generated by gensyscalls.py. Do not edit. */
|
|
|
|
|
2013-10-01 22:29:43 +02:00
|
|
|
#include <asm/unistd.h>
|
|
|
|
#include <linux/err.h>
|
|
|
|
#include <machine/asm.h>
|
|
|
|
|
|
|
|
ENTRY(__ptrace)
|
|
|
|
movq %rcx, %r10
|
|
|
|
movl $__NR_ptrace, %eax
|
|
|
|
syscall
|
|
|
|
cmpq $-MAX_ERRNO, %rax
|
|
|
|
jb 1f
|
|
|
|
negl %eax
|
|
|
|
movl %eax, %edi
|
|
|
|
call __set_errno
|
|
|
|
orq $-1, %rax
|
|
|
|
1:
|
|
|
|
ret
|
|
|
|
END(__ptrace)
|
2013-10-25 02:03:20 +02:00
|
|
|
.hidden _C_LABEL(__ptrace)
|