Home
last modified time | relevance | path

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

123

/external/strace/linux/arm/
Dget_scno.c35 kernel_ulong_t scno = 0; in arch_get_scno() local
47 scno = ptrace(PTRACE_PEEKTEXT, tcp->pid, (void *)(arm_regs.ARM_pc - 4), NULL); in arch_get_scno()
51 if (scno != 0xef000000) { in arch_get_scno()
53 if ((scno & 0x0ff00000) != 0x0f900000) { in arch_get_scno()
55 tcp->pid, scno); in arch_get_scno()
59 scno &= 0x000fffff; in arch_get_scno()
62 scno = arm_regs.ARM_r7; in arch_get_scno()
66 scno = arm_regs.ARM_r7; in arch_get_scno()
74 if (arm_regs.ARM_ip && !scno_in_range(scno)) { in arch_get_scno()
76 tcp->pid, arm_regs.ARM_ip, scno); in arch_get_scno()
[all …]
Dshuffle_scno.c2 shuffle_scno(kernel_ulong_t scno) in shuffle_scno() argument
4 if (scno < ARM_FIRST_SHUFFLED_SYSCALL) in shuffle_scno()
5 return scno; in shuffle_scno()
8 if (scno == ARM_FIRST_SHUFFLED_SYSCALL) in shuffle_scno()
10 if (scno == 0x000ffff0) in shuffle_scno()
19 if (scno >= 0x000f0000 && in shuffle_scno()
20 scno <= 0x000f0000 + ARM_LAST_SPECIAL_SYSCALL) { in shuffle_scno()
21 return scno - 0x000f0000 + ARM_SECOND_SHUFFLED_SYSCALL; in shuffle_scno()
23 if (scno <= ARM_SECOND_SHUFFLED_SYSCALL + ARM_LAST_SPECIAL_SYSCALL) { in shuffle_scno()
24 return scno + 0x000f0000 - ARM_SECOND_SHUFFLED_SYSCALL; in shuffle_scno()
[all …]
Dnr_prefix.c2 nr_prefix(kernel_ulong_t scno) in nr_prefix() argument
8 if (shuffle_scno(scno) != scno) in nr_prefix()
/external/strace/linux/sh/
Dget_scno.c5 kernel_ulong_t scno = 0; in arch_get_scno() local
10 if (upeek(tcp, 4*(REG_REG0+3), &scno) < 0) in arch_get_scno()
13 if ((long) scno < 0) { in arch_get_scno()
17 kernel_ulong_t 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()
Dset_scno.c2 arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) in arch_set_scno() argument
4 return upoke(tcp, 4 * (REG_REG0 + 3), scno); in arch_set_scno()
/external/strace/linux/x86_64/
Dget_scno.c44 kernel_ulong_t scno = 0; in arch_get_scno() local
63 scno = i386_regs.orig_eax; in arch_get_scno()
66 scno = x86_64_regs.orig_rax; in arch_get_scno()
68 if (scno & __X32_SYSCALL_BIT) { in arch_get_scno()
93 scno = x86_64_regs.orig_rax; in arch_get_scno()
150 "64-bit mode of process PID=%d", scno, tcp->pid); in arch_get_scno()
157 tcp->scno = scno; in arch_get_scno()
Dset_scno.c8 arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) in arch_set_scno() argument
11 return upoke(tcp, 8 * ORIG_RAX, scno); in arch_set_scno()
14 return i386_set_scno(tcp, scno); in arch_set_scno()
16 x86_64_regs.orig_rax = scno; in arch_set_scno()
Dshuffle_scno.c2 shuffle_scno(kernel_ulong_t scno) in shuffle_scno() argument
5 scno ^= __X32_SYSCALL_BIT; in shuffle_scno()
7 return scno; in shuffle_scno()
/external/strace/linux/alpha/
Dget_scno.c5 kernel_ulong_t scno = 0; in arch_get_scno() local
9 if (upeek(tcp, 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 = %lu", scno); in arch_get_scno()
24 tcp->scno = scno; in arch_get_scno()
Dset_scno.c2 arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) in arch_set_scno() argument
4 return upoke(tcp, REG_R0, scno); in arch_set_scno()
/external/strace/linux/aarch64/
Dget_scno.c5 kernel_ulong_t scno = 0; in arch_get_scno() local
10 scno = aarch64_regs.regs[8]; in arch_get_scno()
15 scno = arm_regs.ARM_r7; in arch_get_scno()
19 tcp->scno = scno; in arch_get_scno()
Dshuffle_scno.c6 shuffle_scno(kernel_ulong_t scno) in shuffle_scno() argument
9 return arm_shuffle_scno(scno); in shuffle_scno()
11 return scno; in shuffle_scno()
/external/strace/
Dfilter_qualify.c48 uint16_t scno; member
151 kernel_long_t scno = scno_by_name(val, p, 0); in parse_inject_token() local
153 if (scno < 0) in parse_inject_token()
160 if (!(sysent_vec[p][scno].sys_flags & TRACE_PURE)) in parse_inject_token()
163 pdata[p].scno = scno; in parse_inject_token()
387 inject_vec[p][i].data.scno = in qualify_inject_common()
388 pdata[p].scno; in qualify_inject_common()
474 qual_flags(const unsigned int scno) in qual_flags() argument
476 return (is_number_in_set_array(scno, trace_set, current_personality) in qual_flags()
478 | (is_number_in_set_array(scno, abbrev_set, current_personality) in qual_flags()
[all …]
Dsyscall.c311 const kernel_ulong_t scno = SYS_socket_subcall + call; in decode_socket_subcall() local
312 const unsigned int nargs = sysent[scno].nargs; in decode_socket_subcall()
318 tcp->scno = scno; in decode_socket_subcall()
319 tcp->qual_flg = qual_flags(scno); in decode_socket_subcall()
320 tcp->s_ent = &sysent[scno]; in decode_socket_subcall()
358 tcp->scno = SYS_ipc_subcall + call; in decode_ipc_subcall()
359 tcp->qual_flg = qual_flags(tcp->scno); in decode_ipc_subcall()
360 tcp->s_ent = &sysent[tcp->scno]; in decode_ipc_subcall()
375 tcp->scno = tcp->u_arg[0]; in decode_syscall_subcall()
376 tcp->qual_flg = qual_flags(tcp->scno); in decode_syscall_subcall()
[all …]
Dclone.c48 # define ARG_STACKSIZE (tcp->scno == __NR_clone2 ? 2 : -1)
49 # define ARG_PTID (tcp->scno == __NR_clone2 ? 3 : 2)
50 # define ARG_CTID (tcp->scno == __NR_clone2 ? 4 : 3)
51 # define ARG_TLS (tcp->scno == __NR_clone2 ? 5 : 4)
Dscno.am1 # scno.h make rules for strace.
38 scno.h: $(top_srcdir)/scno.head syscallent.i
44 BUILT_SOURCES += scno.h
45 CLEANFILES += syscallent.i scno.h
/external/strace/linux/x32/
Dshuffle_scno.c2 shuffle_scno(kernel_ulong_t scno) in shuffle_scno() argument
4 if (current_personality == 0 && scno != (kernel_ulong_t) -1) in shuffle_scno()
5 scno ^= __X32_SYSCALL_BIT; in shuffle_scno()
7 return scno; in shuffle_scno()
/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/strace/linux/i386/
Dset_scno.c2 arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) in arch_set_scno() argument
5 return upoke(tcp, 4 * ORIG_EAX, scno); in arch_set_scno()
7 i386_regs.orig_eax = scno; in arch_set_scno()
/external/strace/linux/powerpc/
Dset_scno.c2 arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) in arch_set_scno() argument
5 return upoke(tcp, sizeof(long) * PT_R0, scno); in arch_set_scno()
7 ppc_regs.gpr[0] = scno; in arch_set_scno()
/external/strace/linux/s390x/
Dset_scno.c14 arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) in arch_set_scno() argument
17 return s390_set_scno(tcp, scno); in arch_set_scno()
19 return s390x_set_scno(tcp, scno); in arch_set_scno()
/external/strace/linux/
Dshuffle_scno.c2 shuffle_scno(kernel_ulong_t scno) in shuffle_scno() argument
4 return scno; in shuffle_scno()
/external/strace/linux/microblaze/
Dset_scno.c2 arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) in arch_set_scno() argument
4 return upoke(tcp, 0, scno); in arch_set_scno()
/external/strace/linux/hppa/
Dset_scno.c2 arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) in arch_set_scno() argument
4 return upoke(tcp, PT_GR20, scno); in arch_set_scno()
/external/strace/linux/bfin/
Dset_scno.c2 arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) in arch_set_scno() argument
4 return upoke(tcp, PT_ORIG_P0, scno); in arch_set_scno()

123