Lines Matching refs:syscall
33 * $Id: syscall.c,v 1.79 2005/06/08 20:45:28 roland Exp $
44 #include <sys/syscall.h>
120 #include "syscall-android.h"
121 #include "syscall.h"
806 * syscall is gone now. Fortunately, we don't want it. We
941 /* This version analyzes the opcode of a syscall instruction.
942 * (int 0x80 on i386 vs. syscall on x86-64)
950 /* sizeof(syscall) == sizeof(int 0x80) == 2 */
960 /* x86-64: syscall = 0x0f 0x05 */
967 "Unknown syscall opcode (0x%04X) while "
999 /* syscall in progress */
1013 * We only need to grab the syscall number on syscall entry.
1046 /* Handle the EABI syscall convention. We do not
1055 fprintf(stderr, "syscall: unknown syscall trap 0x%08lx\n",
1061 * Fixup the syscall number
1068 fprintf(stderr, "pid %d stray syscall entry\n", tcp->pid);
1073 fprintf(stderr, "pid %d stray syscall exit\n", tcp->pid);
1091 fprintf (stderr, "stray syscall exit: v0 = %ld\n", scno);
1115 * really a syscall entry
1120 fprintf (stderr, "stray syscall exit: r0 = %ld\n", scno);
1134 /* If we are entering, then disassemble the syscall trap. */
1136 /* Retrieve the syscall trap instruction. */
1148 /* Linux/SPARC syscall trap. */
1152 /* Linux/SPARC64 syscall trap. */
1156 /* SunOS syscall trap. (pers 1) */
1157 fprintf(stderr,"syscall: SunOS no support\n");
1160 /* Solaris 2.x syscall trap. (per 2) */
1164 /* NetBSD/FreeBSD syscall trap. */
1165 fprintf(stderr,"syscall: NetBSD/FreeBSD not supported\n");
1172 /* Unknown syscall trap. */
1178 fprintf(stderr,"syscall: unknown syscall trap %08lx %016lx\n", trap, regs.r_tpc);
1180 fprintf(stderr,"syscall: unknown syscall trap %08x %08x\n", trap, regs.r_pc);
1207 * In the new syscall ABI, the system call number is in R3.
1214 glibc to issue bogus negative syscall numbers. So for
1252 /* new syscall ABI returns result in R0 */
1337 fprintf(stderr, "syscall: missing entry\n");
1344 fprintf(stderr, "syscall: missing exit\n");
1352 fprintf(stderr, "syscall: missing entry\n");
1364 fprintf(stderr, "syscall: missing exit\n");
1376 fprintf(stderr, "stray syscall exit: eax = %ld\n", eax);
1386 fprintf(stderr, "stray syscall exit: rax = %ld\n", rax);
1396 fprintf(stderr, "stray syscall exit: gpr2 = %ld\n", gpr2);
1421 fprintf(stderr, "stray syscall exit: d0 = %ld\n", d0);
1438 fprintf(stderr, "stray syscall exit: r8 = %ld\n", r8);
2612 fprintf(stderr, "Bogus syscall: %u\n", scno);
2710 "calls", "errors", "syscall");