blob: 2821ac5d9c81d34dfb31d95b8cdbb1776f9b54f7 [file] [log] [blame]
Elliott Hughes103ccde2013-10-16 14:27:59 -07001/* Generated by gensyscalls.py. Do not edit. */
2
Elliott Hughesed744842013-11-07 10:31:05 -08003#include <private/bionic_asm.h>
Ben Cheng1a823692012-03-13 12:28:40 -07004
5ENTRY(perf_event_open)
6 mov ip, sp
Ben Cheng1a823692012-03-13 12:28:40 -07007 stmfd sp!, {r4, r5, r6, r7}
Christopher Ferrised459702013-12-02 17:44:53 -08008 .cfi_def_cfa_offset 16
9 .cfi_rel_offset r4, 0
10 .cfi_rel_offset r5, 4
11 .cfi_rel_offset r6, 8
12 .cfi_rel_offset r7, 12
Ben Cheng1a823692012-03-13 12:28:40 -070013 ldmfd ip, {r4, r5, r6}
14 ldr r7, =__NR_perf_event_open
15 swi #0
16 ldmfd sp!, {r4, r5, r6, r7}
Christopher Ferrised459702013-12-02 17:44:53 -080017 .cfi_def_cfa_offset 0
Elliott Hughes9aceab52013-03-12 14:57:30 -070018 cmn r0, #(MAX_ERRNO + 1)
19 bxls lr
20 neg r0, r0
21 b __set_errno
Ben Cheng1a823692012-03-13 12:28:40 -070022END(perf_event_open)