Home
last modified time | relevance | path

Searched refs:scno (Results 1 – 25 of 33) sorted by relevance

12

/external/strace/linux/arm/
Dget_scno.c34 long scno = 0; in arch_get_scno() local
46 scno = ptrace(PTRACE_PEEKTEXT, tcp->pid, (void *)(arm_regs.ARM_pc - 4), NULL); in arch_get_scno()
50 if ((unsigned long) scno != 0xef000000) { in arch_get_scno()
52 if ((scno & 0x0ff00000) != 0x0f900000) { in arch_get_scno()
54 tcp->pid, scno); in arch_get_scno()
58 scno &= 0x000fffff; in arch_get_scno()
61 scno = arm_regs.ARM_r7; in arch_get_scno()
65 scno = arm_regs.ARM_r7; in arch_get_scno()
69 scno = shuffle_scno(scno); in arch_get_scno()
75 if (arm_regs.ARM_ip && !SCNO_IN_RANGE(scno)) { in arch_get_scno()
[all …]
/external/strace/linux/x86_64/
Dget_scno.c37 long scno = 0; in arch_get_scno() local
56 scno = i386_regs.orig_eax; in arch_get_scno()
59 scno = x86_64_regs.orig_rax; in arch_get_scno()
61 if (scno & __X32_SYSCALL_BIT) { in arch_get_scno()
71 scno -= __X32_SYSCALL_BIT; in arch_get_scno()
87 scno = x86_64_regs.orig_rax; in arch_get_scno()
93 scno &= ~__X32_SYSCALL_BIT; in arch_get_scno()
139 "64-bit mode of process PID=%d", scno, tcp->pid); in arch_get_scno()
146 tcp->scno = scno; in arch_get_scno()
/external/strace/linux/sh/
Dget_scno.c5 long scno = 0; in arch_get_scno() local
10 if (upeek(tcp->pid, 4*(REG_REG0+3), &scno) < 0) in arch_get_scno()
13 if (scno < 0) { in arch_get_scno()
17 long correct_scno = (scno & 0xff); in arch_get_scno()
21 scno, correct_scno); in arch_get_scno()
22 scno = correct_scno; in arch_get_scno()
25 tcp->scno = scno; in arch_get_scno()
/external/strace/linux/aarch64/
Dget_scno.c5 long scno = 0; in arch_get_scno() local
10 scno = aarch64_regs.regs[8]; in arch_get_scno()
16 scno = arm_regs.ARM_r7; in arch_get_scno()
17 scno = shuffle_scno(scno); in arch_get_scno()
22 tcp->scno = scno; in arch_get_scno()
/external/ltrace/sysdeps/linux-gnu/s390/
Dtrace.c70 long pc, opcode, offset_reg, scno, tmp; in syscall_p() local
126 scno = opcode & 0xff; in syscall_p()
141 scno = ptrace(PTRACE_PEEKTEXT, proc->pid, svc_addr, 0); in syscall_p()
143 scno >>= 48; in syscall_p()
145 scno >>= 16; in syscall_p()
147 if ((scno & 0xff00) != 0x0a000) in syscall_p()
156 scno = (scno | tmp) & 0xff; in syscall_p()
162 if (scno == 0) in syscall_p()
163 scno = ptrace(PTRACE_PEEKUSER, proc->pid, PT_GPR1, 0); in syscall_p()
165 *sysnum = scno; in syscall_p()
/external/strace/linux/alpha/
Dget_scno.c5 long scno = 0; in arch_get_scno() local
9 if (upeek(tcp->pid, REG_R0, &scno) < 0) in arch_get_scno()
16 if (!SCNO_IN_RANGE(scno)) { in arch_get_scno()
19 error_msg("stray syscall exit: r0 = %ld", scno); in arch_get_scno()
24 tcp->scno = scno; in arch_get_scno()
/external/strace/
Dsyscall.c575 tcp->scno = SYS_socket_subcall + tcp->u_arg[0]; in decode_socket_subcall()
576 tcp->qual_flg = qual_flags[tcp->scno]; in decode_socket_subcall()
577 tcp->s_ent = &sysent[tcp->scno]; in decode_socket_subcall()
604 tcp->scno = SYS_ipc_subcall + tcp->u_arg[0]; in decode_ipc_subcall()
605 tcp->qual_flg = qual_flags[tcp->scno]; in decode_ipc_subcall()
606 tcp->s_ent = &sysent[tcp->scno]; in decode_ipc_subcall()
619 tcp->scno = tcp->u_arg[0]; in decode_mips_subcall()
620 tcp->qual_flg = qual_flags[tcp->scno]; in decode_mips_subcall()
621 tcp->s_ent = &sysent[tcp->scno]; in decode_mips_subcall()
731 shuffle_scno(unsigned long scno) in shuffle_scno() argument
[all …]
Dclone.c45 # define ARG_STACKSIZE (tcp->scno == SYS_clone2 ? 2 : -1)
46 # define ARG_PTID (tcp->scno == SYS_clone2 ? 3 : 2)
47 # define ARG_CTID (tcp->scno == SYS_clone2 ? 4 : 3)
48 # define ARG_TLS (tcp->scno == SYS_clone2 ? 5 : 4)
Dcount.c56 unsigned long scno = tcp->scno; in count_syscall() local
58 if (!SCNO_IN_RANGE(scno)) in count_syscall()
63 cc = &counts[scno]; in count_syscall()
Ddefs.h290 long scno; /* System call number */ member
499 extern const char *syscall_name(long scno);
751 #define SCNO_IS_VALID(scno) \ argument
752 ((unsigned long)(scno) < nsyscalls && sysent[scno].sys_func)
755 #define SCNO_IN_RANGE(scno) \ argument
756 ((unsigned long)(scno) < nsyscalls)
/external/strace/linux/mips/
Dget_scno.c5 tcp->scno = mips_REG_V0; in arch_get_scno()
7 if (!SCNO_IN_RANGE(tcp->scno)) { in arch_get_scno()
11 tcp->scno); in arch_get_scno()
/external/v8/src/arm/
Dcpu-arm.cc35 register uint32_t scno asm("r7") = __ARM_NR_cacheflush; in FlushICache()
39 : "r"(beg), "r"(end), "r"(flg), "r"(scno) in FlushICache()
58 : "r" (beg), "r" (end), "r" (flg), [scno] "i" (__ARM_NR_cacheflush) in FlushICache()
/external/strace/linux/sh64/
Dget_scno.c5 if (upeek(tcp->pid, REG_SYSCALL, &tcp->scno) < 0) in arch_get_scno()
7 tcp->scno &= 0xffff; in arch_get_scno()
/external/strace/linux/i386/
Dget_scno.c5 tcp->scno = i386_regs.orig_eax; in arch_get_scno()
/external/strace/linux/metag/
Dget_scno.c5 tcp->scno = metag_regs.dx[0][1]; /* syscall number in D1Re0 (D1.0) */ in arch_get_scno()
/external/strace/linux/or1k/
Dget_scno.c5 tcp->scno = or1k_regs.gpr[11]; in arch_get_scno()
/external/strace/linux/s390/
Dget_scno.c5 tcp->scno = s390_regset.gprs[2]; in arch_get_scno()
/external/strace/linux/nios2/
Dget_scno.c5 tcp->scno = nios2_regs.regs[2]; in arch_get_scno()
/external/strace/linux/avr32/
Dget_scno.c5 tcp->scno = avr32_regs.r8; in arch_get_scno()
/external/strace/linux/powerpc/
Dget_scno.c5 tcp->scno = ppc_regs.gpr[0]; in arch_get_scno()
/external/strace/linux/microblaze/
Dget_scno.c5 return upeek(tcp->pid, 0, &tcp->scno) < 0 ? -1 : 1; in arch_get_scno()
/external/strace/linux/arc/
Dget_scno.c5 tcp->scno = arc_regs.scratch.r8; in arch_get_scno()
/external/strace/linux/sparc/
Dget_scno.c5 tcp->scno = sparc_regs.u_regs[U_REG_G1]; in arch_get_scno()
/external/strace/linux/bfin/
Dget_scno.c5 return upeek(tcp->pid, PT_ORIG_P0, &tcp->scno) < 0 ? -1 : 1; in arch_get_scno()
/external/strace/linux/m68k/
Dget_scno.c5 return upeek(tcp->pid, 4 * PT_ORIG_D0, &tcp->scno) < 0 ? -1 : 1; in arch_get_scno()

12