Home
last modified time | relevance | path

Searched refs:sysnum (Results 1 – 23 of 23) sorted by relevance

/external/libchrome/sandbox/linux/bpf_dsl/
Dsyscall_set_unittest.cc27 for (uint32_t sysnum : set) { in SANDBOX_TEST() local
29 SANDBOX_ASSERT(sysnum > prev); in SANDBOX_TEST()
32 SANDBOX_ASSERT(sysnum == 0); in SANDBOX_TEST()
35 prev = sysnum; in SANDBOX_TEST()
50 for (uint32_t sysnum : SyscallSet::All()) { in AssertRange() local
51 if (sysnum >= min && sysnum <= max) { in AssertRange()
52 SANDBOX_ASSERT(prev == sysnum - 1); in AssertRange()
53 prev = sysnum; in AssertRange()
87 for (uint32_t sysnum : set) { in SANDBOX_TEST() local
88 if (!SyscallSet::IsValid(sysnum)) { in SANDBOX_TEST()
[all …]
Dpolicy_compiler.cc75 for (uint32_t sysnum : SyscallSet::ValidOnly()) { in HasUnsafeTraps() local
76 if (policy->EvaluateSyscall(sysnum)->HasUnsafeTraps()) { in HasUnsafeTraps()
111 for (int sysnum : kSyscallsRequiredForUnsafeTraps) { in Compile() local
112 CHECK(policy_->EvaluateSyscall(sysnum)->IsAllow()) in Compile()
234 for (uint32_t sysnum : SyscallSet::All()) { in FindRanges() local
236 SyscallSet::IsValid(sysnum) in FindRanges()
237 ? CompileResult(policy_->EvaluateSyscall(static_cast<int>(sysnum))) in FindRanges()
244 old_sysnum = sysnum; in FindRanges()
/external/valgrind/coregrind/
Dm_vkiscnums.c47 const HChar* VG_(sysnum_string)(Word sysnum) in VG_()
51 VG_(sprintf)(buf, "%ld", sysnum); in VG_()
72 const HChar* VG_(sysnum_string)(Word sysnum) in VG_()
77 switch (VG_DARWIN_SYSNO_CLASS(sysnum)) { in VG_()
84 VG_(sprintf)(buf, "%s:%ld", classname, VG_DARWIN_SYSNO_INDEX(sysnum)); in VG_()
92 const HChar *VG_(sysnum_string)(Word sysnum) in VG_()
97 switch (VG_SOLARIS_SYSNO_CLASS(sysnum)) { in VG_()
102 VG_(sprintf)(buf, "%s%ld", classname, VG_SOLARIS_SYSNO_INDEX(sysnum)); in VG_()
/external/ltrace/
Dhandle_event.c59 static void callstack_push_syscall(struct process *proc, int sysnum);
67 static char *sysname(struct process *proc, int sysnum);
68 static char *arch_sysname(struct process *proc, int sysnum);
149 sysname(event->proc, event->e_un.sysnum), in handle_event()
150 event->e_un.sysnum); in handle_event()
158 sysname(event->proc, event->e_un.sysnum), in handle_event()
159 event->e_un.sysnum); in handle_event()
167 arch_sysname(event->proc, event->e_un.sysnum), in handle_event()
168 event->e_un.sysnum); in handle_event()
176 arch_sysname(event->proc, event->e_un.sysnum), in handle_event()
[all …]
Dltrace.h52 int sysnum; /* EVENT_SYSCALL, EVENT_SYSRET */ member
Dbackend.h121 int syscall_p(struct process *proc, int status, int *sysnum);
135 void continue_after_syscall(struct process *proc, int sysnum, int ret_p);
/external/ltrace/sysdeps/linux-gnu/m68k/
Dtrace.c50 syscall_p(struct process *proc, int status, int *sysnum) in syscall_p() argument
56 *sysnum = ptrace(PTRACE_PEEKUSER, proc->pid, 4 * PT_ORIG_D0, 0); in syscall_p()
57 if (*sysnum == -1) in syscall_p()
59 if (*sysnum >= 0) { in syscall_p()
63 proc->callstack[depth - 1].c_un.syscall == *sysnum) { in syscall_p()
/external/ltrace/sysdeps/linux-gnu/alpha/
Dtrace.c50 syscall_p(struct process *proc, int status, int *sysnum) in syscall_p() argument
59 *sysnum = in syscall_p()
63 proc->callstack[proc->callstack_depth - 1].c_un.syscall == *sysnum) { in syscall_p()
66 if (*sysnum >= 0 && *sysnum < 500) { in syscall_p()
/external/valgrind/include/
Dpub_tool_vkiscnums.h44 extern const HChar *VG_(sysnum_string) (Word sysnum);
47 #define VG_SYSNUM_STRING(sysnum) VG_(sysnum_string)(sysnum) argument
/external/ltrace/sysdeps/linux-gnu/sparc/
Dtrace.c47 syscall_p(struct process *proc, int status, int *sysnum) in syscall_p() argument
57 *sysnum = ((proc_archdep *) proc->arch_ptr)->regs.u_regs[UREG_G0]; in syscall_p()
60 proc->callstack[proc->callstack_depth - 1].c_un.syscall == *sysnum) { in syscall_p()
62 } else if (*sysnum >= 0) { in syscall_p()
/external/ltrace/sysdeps/linux-gnu/s390/
Dtrace.c68 syscall_p(struct process *proc, int status, int *sysnum) in syscall_p() argument
87 *sysnum = ptrace(PTRACE_PEEKUSER, proc->pid, PT_GPR2, 0); in syscall_p()
95 *sysnum = in syscall_p()
101 if (*sysnum != -ENOSYS) in syscall_p()
165 *sysnum = scno; in syscall_p()
/external/ltrace/sysdeps/linux-gnu/x86/
Dtrace.c78 syscall_p(struct process *proc, int status, int *sysnum) in syscall_p() argument
98 *sysnum = ret; in syscall_p()
102 && elem->c_un.syscall == *sysnum) in syscall_p()
105 if (*sysnum >= 0) in syscall_p()
/external/ltrace/sysdeps/linux-gnu/aarch64/
Dtrace.c46 syscall_p(struct process *proc, int status, int *sysnum) in syscall_p() argument
71 *sysnum = regs.regs[8]; in syscall_p()
76 && proc->callstack[d1].c_un.syscall == *sysnum) in syscall_p()
/external/ltrace/sysdeps/linux-gnu/ia64/
Dtrace.c73 syscall_p(struct process *proc, int status, int *sysnum) in syscall_p() argument
132 *sysnum = r15; in syscall_p()
135 proc->callstack[proc->callstack_depth - 1].c_un.syscall == *sysnum) { in syscall_p()
/external/ltrace/sysdeps/linux-gnu/mips/
Dtrace.c90 syscall_p(struct process *proc, int status, int *sysnum) in syscall_p() argument
109 *sysnum = (num & 0xFFFF) - 4000; in syscall_p()
113 proc->callstack[proc->callstack_depth - 1].c_un.syscall == *sysnum) { in syscall_p()
117 if (*sysnum >= 0) { in syscall_p()
/external/ltrace/sysdeps/linux-gnu/cris/
Dtrace.c50 int syscall_p(struct process *proc, int status, int *sysnum) in syscall_p() argument
60 *sysnum = in syscall_p()
/external/ltrace/sysdeps/linux-gnu/ppc/
Dtrace.c63 syscall_p(struct process *proc, int status, int *sysnum) in syscall_p() argument
73 *sysnum = in syscall_p()
78 proc->callstack[proc->callstack_depth - 1].c_un.syscall == *sysnum) { in syscall_p()
/external/ltrace/sysdeps/linux-gnu/
Devents.c257 event.e_un.sysnum = tmp; in next_event()
262 event.e_un.sysnum = tmp; in next_event()
267 event.e_un.sysnum = tmp; in next_event()
272 event.e_un.sysnum = tmp; in next_event()
Dtrace.c1130 continue_after_syscall(struct process *proc, int sysnum, int ret_p) in continue_after_syscall() argument
/external/ltrace/sysdeps/linux-gnu/arm/
Dtrace.c65 syscall_p(struct process *proc, int status, int *sysnum) in syscall_p() argument
86 *sysnum = r7; in syscall_p()
89 *sysnum = insn & 0xfffff; in syscall_p()
100 if ((*sysnum & 0xf0000) == 0xf0000) { in syscall_p()
102 *sysnum &= ~0xf0000; in syscall_p()
/external/libchrome/sandbox/linux/seccomp-bpf/
Dsandbox_bpf.cc203 bool SandboxBPF::IsValidSyscallNumber(int sysnum) { in IsValidSyscallNumber() argument
204 return SyscallSet::IsValid(sysnum); in IsValidSyscallNumber()
Dsandbox_bpf.h78 static bool IsValidSyscallNumber(int sysnum);
/external/ltrace/sysdeps/linux-gnu/metag/
Dtrace.c74 syscall_p(struct process *proc, int status, int *sysnum) in syscall_p() argument
91 *sysnum = regs.dx[0][1]; in syscall_p()
103 if (*sysnum >= 0) in syscall_p()