2012-03-13 20:28:40 +01:00
|
|
|
/* autogenerated by gensyscalls.py */
|
2013-03-12 22:57:30 +01:00
|
|
|
#include <linux/err.h>
|
2013-02-07 02:08:15 +01:00
|
|
|
#include <machine/asm.h>
|
2013-03-22 06:15:06 +01:00
|
|
|
#include <asm/unistd.h>
|
2012-03-13 20:28:40 +01:00
|
|
|
|
2013-02-07 02:08:15 +01:00
|
|
|
ENTRY(perf_event_open)
|
2012-03-13 20:28:40 +01:00
|
|
|
pushl %ebx
|
|
|
|
pushl %ecx
|
|
|
|
pushl %edx
|
|
|
|
pushl %esi
|
|
|
|
pushl %edi
|
|
|
|
mov 24(%esp), %ebx
|
|
|
|
mov 28(%esp), %ecx
|
|
|
|
mov 32(%esp), %edx
|
|
|
|
mov 36(%esp), %esi
|
|
|
|
mov 40(%esp), %edi
|
|
|
|
movl $__NR_perf_event_open, %eax
|
|
|
|
int $0x80
|
2013-03-12 22:57:30 +01:00
|
|
|
cmpl $-MAX_ERRNO, %eax
|
2012-03-13 20:28:40 +01:00
|
|
|
jb 1f
|
|
|
|
negl %eax
|
|
|
|
pushl %eax
|
|
|
|
call __set_errno
|
|
|
|
addl $4, %esp
|
|
|
|
orl $-1, %eax
|
|
|
|
1:
|
|
|
|
popl %edi
|
|
|
|
popl %esi
|
|
|
|
popl %edx
|
|
|
|
popl %ecx
|
|
|
|
popl %ebx
|
|
|
|
ret
|
2013-02-07 02:08:15 +01:00
|
|
|
END(perf_event_open)
|