Home
last modified time | relevance | path

Searched refs:sysno (Results 1 – 25 of 31) sorted by relevance

12

/external/valgrind/coregrind/m_syswrap/
Dsyswrap-main.c415 return a1->sysno == a2->sysno in eq_SyscallArgs()
427 Bool eq_SyscallStatus ( UInt sysno, SyscallStatus* s1, SyscallStatus* s2 ) in eq_SyscallStatus() argument
430 if (s1->what == s2->what && sr_EQ( sysno, s1->sres, s2->sres )) in eq_SyscallStatus()
466 canonical->sysno = gst->guest_EAX; in getSyscallArgsFromGuestState()
478 canonical->sysno = gst->guest_RAX; in getSyscallArgsFromGuestState()
490 canonical->sysno = gst->guest_GPR0; in getSyscallArgsFromGuestState()
502 canonical->sysno = gst->guest_GPR0; in getSyscallArgsFromGuestState()
514 canonical->sysno = gst->guest_R7; in getSyscallArgsFromGuestState()
526 canonical->sysno = gst->guest_X8; in getSyscallArgsFromGuestState()
538 canonical->sysno = gst->guest_r2; // v0 in getSyscallArgsFromGuestState()
[all …]
Dpriv_types_n_macros.h55 Word sysno; member
186 SyscallTableEntry* ML_(get_linux_syscall_entry)( UInt sysno );
198 SyscallTableEntry* ML_(get_solaris_syscall_entry)( UInt sysno );
266 #define WRAPPER_ENTRY_X_(auxstr, sysno, name) \ argument
267 [sysno] = { vgSysWrap_##auxstr##_##name##_before, NULL }
268 #define WRAPPER_ENTRY_XY(auxstr, sysno, name) \ argument
269 [sysno] = { vgSysWrap_##auxstr##_##name##_before, \
279 # define GENX_(sysno, name) WRAPPER_ENTRY_X_(generic, sysno, name) argument
280 # define GENXY(sysno, name) WRAPPER_ENTRY_XY(generic, sysno, name) argument
282 # define GENX_(sysno, name) WRAPPER_ENTRY_X_(generic, VG_DARWIN_SYSNO_INDEX(sysno), name) argument
[all …]
Dsyswrap-arm64-linux.c604 #define PLAX_(sysno, name) WRAPPER_ENTRY_X_(arm64_linux, sysno, name) argument
605 #define PLAXY(sysno, name) WRAPPER_ENTRY_XY(arm64_linux, sysno, name) argument
904 SyscallTableEntry* ML_(get_linux_syscall_entry) ( UInt sysno ) in ML_()
910 if (sysno < syscall_main_table_size) { in ML_()
911 SyscallTableEntry* sys = &syscall_main_table[sysno]; in ML_()
Dsyswrap-ppc64-linux.c522 #define PLAX_(sysno, name) WRAPPER_ENTRY_X_(ppc64_linux, sysno, name) argument
523 #define PLAXY(sysno, name) WRAPPER_ENTRY_XY(ppc64_linux, sysno, name) argument
943 SyscallTableEntry* ML_(get_linux_syscall_entry) ( UInt sysno ) in ML_()
949 if (sysno < syscall_table_size) { in ML_()
950 SyscallTableEntry* sys = &syscall_table[sysno]; in ML_()
Dsyswrap-ppc32-linux.c604 #define PLAX_(sysno, name) WRAPPER_ENTRY_X_(ppc32_linux, sysno, name) argument
605 #define PLAXY(sysno, name) WRAPPER_ENTRY_XY(ppc32_linux, sysno, name) argument
1025 SyscallTableEntry* ML_(get_linux_syscall_entry) ( UInt sysno ) in ML_()
1031 if (sysno < syscall_table_size) { in ML_()
1032 SyscallTableEntry* sys = &syscall_table[sysno]; in ML_()
Dsyswrap-arm-linux.c540 #define PLAX_(sysno, name) WRAPPER_ENTRY_X_(arm_linux, sysno, name) argument
541 #define PLAXY(sysno, name) WRAPPER_ENTRY_XY(arm_linux, sysno, name) argument
1031 SyscallTableEntry* ML_(get_linux_syscall_entry) ( UInt sysno ) in ML_()
1037 if (sysno < syscall_main_table_size) { in ML_()
1038 SyscallTableEntry* sys = &syscall_main_table[sysno]; in ML_()
1046 switch (sysno) { in ML_()
Dsyswrap-s390x-linux.c404 #define PLAX_(sysno, name) WRAPPER_ENTRY_X_(s390x_linux, sysno, name) argument
405 #define PLAXY(sysno, name) WRAPPER_ENTRY_XY(s390x_linux, sysno, name) argument
857 SyscallTableEntry* ML_(get_linux_syscall_entry) ( UInt sysno ) in ML_()
863 if (sysno < syscall_table_size) { in ML_()
864 SyscallTableEntry* sys = &syscall_table[sysno]; in ML_()
Dsyswrap-mips64-linux.c530 #define PLAX_(sysno, name) WRAPPER_ENTRY_X_(mips_linux, sysno, name) argument
531 #define PLAXY(sysno, name) WRAPPER_ENTRY_XY(mips_linux, sysno, name) argument
824 SyscallTableEntry * ML_(get_linux_syscall_entry) ( UInt sysno ) in ML_()
829 if (sysno < syscall_main_table_size) { in ML_()
830 SyscallTableEntry * sys = &syscall_main_table[sysno]; in ML_()
Dsyswrap-mips32-linux.c710 #define PLAX_(sysno, name) WRAPPER_ENTRY_X_(mips_linux, sysno, name) argument
711 #define PLAXY(sysno, name) WRAPPER_ENTRY_XY(mips_linux, sysno, name) argument
1043 SyscallTableEntry* ML_(get_linux_syscall_entry) (UInt sysno) in ML_()
1048 if (sysno < syscall_main_table_size) { in ML_()
1049 SyscallTableEntry * sys = &syscall_main_table[sysno]; in ML_()
Dsyswrap-x86-linux.c1148 #define PLAX_(sysno, name) WRAPPER_ENTRY_X_(x86_linux, sysno, name) argument
1149 #define PLAXY(sysno, name) WRAPPER_ENTRY_XY(x86_linux, sysno, name) argument
1610 SyscallTableEntry* ML_(get_linux_syscall_entry) ( UInt sysno ) in ML_()
1616 if (sysno < syscall_table_size) { in ML_()
1617 SyscallTableEntry* sys = &syscall_table[sysno]; in ML_()
Dsyswrap-amd64-linux.c848 SyscallTableEntry* ML_(get_linux_syscall_entry) ( UInt sysno ) in ML_()
854 if (sysno < syscall_table_size) { in ML_()
855 SyscallTableEntry* sys = &syscall_table[sysno]; in ML_()
Dsyswrap-solaris.c10745 #define SOLX_(sysno, name) \ argument
10746 WRAPPER_ENTRY_X_(solaris, VG_SOLARIS_SYSNO_INDEX(sysno), name)
10747 #define SOLXY(sysno, name) \ argument
10748 WRAPPER_ENTRY_XY(solaris, VG_SOLARIS_SYSNO_INDEX(sysno), name)
10752 #define PLAX_(sysno, name) \ argument
10753 WRAPPER_ENTRY_X_(x86_solaris, VG_SOLARIS_SYSNO_INDEX(sysno), name)
10754 #define PLAXY(sysno, name) \ argument
10755 WRAPPER_ENTRY_XY(x86_solaris, VG_SOLARIS_SYSNO_INDEX(sysno), name)
10759 #define PLAX_(sysno, name) \ argument
10760 WRAPPER_ENTRY_X_(amd64_solaris, VG_SOLARIS_SYSNO_INDEX(sysno), name)
[all …]
/external/valgrind/coregrind/
Dm_syscall.c922 SysRes VG_(do_syscall) ( UWord sysno, UWord a1, UWord a2, UWord a3, in VG_()
927 UWord val = do_syscall_WRK(sysno,a1,a2,a3,a4,a5,a6); in VG_()
931 UWord val = do_syscall_WRK(sysno,a1,a2,a3,a4,a5,a6); in VG_()
935 ULong ret = do_syscall_WRK(sysno,a1,a2,a3,a4,a5,a6); in VG_()
942 argblock[0] = sysno; in VG_()
953 UWord val = do_syscall_WRK(a1,a2,a3,a4,a5,a6,sysno); in VG_()
957 UWord val = do_syscall_WRK(a1,a2,a3,a4,a5,a6,sysno); in VG_()
963 UChar scclass = VG_DARWIN_SYSNO_CLASS(sysno); in VG_()
967 VG_DARWIN_SYSNO_FOR_KERNEL(sysno), &err); in VG_()
973 VG_DARWIN_SYSNO_FOR_KERNEL(sysno)); in VG_()
[all …]
Dpub_core_gdbserver.h126 extern void VG_(gdbserver_report_syscall) (Bool before, UWord sysno,
Dpub_core_syscall.h49 extern SysRes VG_(do_syscall) ( UWord sysno,
/external/ltp/testcases/misc/crash/
Dcrash02.c274 int in_blacklist(int sysno);
419 long int sysno, arg1, arg2, arg3, arg4, arg5, arg6, arg7; in try_one_crash() local
422 sysno = rand() % sysno_max; in try_one_crash()
423 } while (in_blacklist(sysno)); in try_one_crash()
437 try_num, sysno, arg1, arg2, arg3, arg4, arg5, in try_one_crash()
440 syscall(sysno, arg1, arg2, arg3, arg4, arg5, arg6, arg7); in try_one_crash()
447 int in_blacklist(int sysno) in in_blacklist() argument
479 if (sysno == list[i]) in in_blacklist()
/external/valgrind/include/vki/
Dvki-scnums-solaris.h57 #define VG_SOLARIS_SYSCALL_CONSTRUCT_FASTTRAP(sysno) \ argument
59 | (sysno))
60 #define VG_SOLARIS_SYSNO_CLASS(sysno) \ argument
61 ((sysno) >> VG_SOLARIS_SYSCALL_CLASS_SHIFT)
62 #define VG_SOLARIS_SYSNO_INDEX(sysno) \ argument
63 ((sysno) & VG_SOLARIS_SYSCALL_NUMBER_MASK)
Dvki-scnums-darwin.h93 #define VG_DARWIN_SYSNO_INDEX(sysno) ((sysno) & VG_DARWIN_SYSCALL_NUMBER_MASK) argument
94 #define VG_DARWIN_SYSNO_CLASS(sysno) ((sysno) >> VG_DARWIN_SYSCALL_CLASS_SHIFT) argument
102 # define VG_DARWIN_SYSNO_FOR_KERNEL(sysno) \ argument
103 ((VG_DARWIN_SYSNO_CLASS(sysno) == VG_DARWIN_SYSCALL_CLASS_MACH) \
104 ? -VG_DARWIN_SYSNO_INDEX(sysno) \
105 : VG_DARWIN_SYSNO_INDEX(sysno) \
110 # define VG_DARWIN_SYSNO_FOR_KERNEL(sysno) (sysno) argument
/external/valgrind/include/
Dpub_tool_basics.h243 static inline Bool sr_EQ ( UInt sysno, SysRes sr1, SysRes sr2 ) { in sr_EQ() argument
261 Bool useEx = sysno == __nr_pipe || sysno == __nr_pipe2; in sr_EQ()
279 static inline Bool sr_EQ ( UInt sysno, SysRes sr1, SysRes sr2 ) { in sr_EQ() argument
339 static inline Bool sr_EQ ( UInt sysno, SysRes sr1, SysRes sr2 ) { in sr_EQ() argument
359 static inline Bool sr_EQ ( UInt sysno, SysRes sr1, SysRes sr2 ) { in sr_EQ() argument
/external/valgrind/none/tests/amd64-solaris/
Dsyscall_return_args.c10 static void syscall_rval(int sysno, uint64_t *rval_hi, uint64_t *rval_lo) in syscall_rval() argument
21 : [INPUT1] "i" (GARBAGE), [SYSCALL_NUMBER] "g" (sysno) /* input */ in syscall_rval()
/external/valgrind/coregrind/m_gdbserver/
Dm_gdbserver.c1021 static Bool catch_this_syscall (Int sysno) in catch_this_syscall() argument
1029 if (syscalls_to_catch[i] == sysno) in catch_this_syscall()
1035 void VG_(gdbserver_report_syscall) (Bool before, UWord sysno, ThreadId tid) in VG_()
1038 before, sysno, tid); in VG_()
1045 if (catch_this_syscall ((Int)sysno)) { in VG_()
1047 gdbserver_syscall_encountered (before, (Int)sysno); in VG_()
Dtarget.h150 extern void gdbserver_syscall_encountered (Bool before, Int sysno);
Dserver.c650 CORE_ADDR sysno; in handle_set() local
660 decode_address (&sysno, from, to - from); in handle_set()
661 syscalls_to_catch[i] = (Int)sysno; in handle_set()
662 dlog(4, "catch syscall sysno %d\n", (int)sysno); in handle_set()
Dtarget.c182 void gdbserver_syscall_encountered (Bool before, Int sysno) in gdbserver_syscall_encountered() argument
185 sysno_to_report = sysno; in gdbserver_syscall_encountered()
/external/seccomp-tests/linux/
Dseccomp_bpf.c472 int sysno = __NR_mmap; in TEST_SIGNAL() local
474 int sysno = __NR_mmap2; in TEST_SIGNAL()
479 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, sysno, 1, 0), in TEST_SIGNAL()
509 map1 = (void *)syscall(sysno, in TEST_SIGNAL()
513 map2 = (void *)syscall(sysno, in TEST_SIGNAL()

12