Home
last modified time | relevance | path

Searched refs:syscall (Results 1 – 25 of 317) sorted by relevance

12345678910>>...13

/external/valgrind/memcheck/tests/solaris/
Dsyscall_at.stderr.exp2 Warning: invalid file descriptor 159879507 in syscall linkat()
3 Warning: invalid file descriptor 159879508 in syscall linkat()
4 Warning: invalid file descriptor 646349138 in syscall symlinkat()
5 Warning: invalid file descriptor 70680914 in syscall readlinkat()
6 Warning: invalid file descriptor 68362578 in syscall faccessat()
7 Warning: invalid file descriptor 70685266 in syscall fchownat()
8 Warning: invalid file descriptor 70717779 in syscall renameat()
9 Warning: invalid file descriptor 70717780 in syscall renameat()
10 Warning: invalid file descriptor 123765074 in syscall unlinkat()
11 Warning: invalid file descriptor 1112625490 in syscall fstatat()
[all …]
Dbrk.c24 tmp = syscall(SYS_brk, begin + 1); in test_begin()
30 tmp = syscall(SYS_brk, begin); in test_begin()
47 tmp = syscall(SYS_brk, begin + i); in test_updown()
53 tmp = syscall(SYS_brk, begin + MAX_SIZE - 1 - i); in test_updown()
64 tmp = syscall(SYS_brk, begin - 1); in test_range()
70 tmp = syscall(SYS_brk, impossible_limit); in test_range()
/external/libchrome/sandbox/linux/services/
Dsyscall_wrappers.cc28 return syscall(__NR_getpid); in sys_getpid()
32 return syscall(__NR_gettid); in sys_gettid()
56 return syscall(__NR_clone, flags, child_stack, ptid, ctid, tls); in sys_clone()
60 return syscall(__NR_clone, flags, child_stack, ptid, tls, ctid); in sys_clone()
69 syscall(__NR_exit_group, status); in sys_exit_group()
75 return syscall(__NR_seccomp, operation, flags, args); in sys_seccomp()
82 int res = syscall(__NR_prlimit64, pid, resource, new_limit, old_limit); in sys_prlimit64()
88 int res = syscall(__NR_capget, hdrp, datap); in sys_capget()
97 return syscall(__NR_capset, hdrp, datap); in sys_capset()
105 res = syscall(__NR_getresuid32, ruid, euid, suid); in sys_getresuid()
[all …]
/external/strace/tests/
Duid32.c50 r = syscall(__NR_getuid32); in main()
51 assert(syscall(__NR_setuid32, r) == 0); in main()
52 assert(syscall(__NR_getresuid32, &r, &e, &s) == 0); in main()
53 assert(syscall(__NR_setreuid32, -1, -1L) == 0); in main()
54 assert(syscall(__NR_setresuid32, r, -1, -1L) == 0); in main()
55 assert(syscall(__NR_fchown32, 1, -1, -1L) == 0); in main()
56 assert((size = syscall(__NR_getgroups32, 0, list)) >= 0); in main()
58 assert(syscall(__NR_getgroups32, size, list) == size); in main()
Duid.c54 uid = syscall(__NR_getuid); in main()
70 assert(syscall(__NR_setuid, uid) == 0); in main()
77 assert(syscall(__NR_getresuid, &r, &e, &s) == 0); in main()
79 assert(syscall(__NR_setreuid, -1, -1L) == 0); in main()
80 assert(syscall(__NR_setresuid, uid, -1, -1L) == 0); in main()
81 assert(syscall(__NR_fchown, 1, -1, -1L) == 0); in main()
82 assert((size = syscall(__NR_getgroups, 0, list)) >= 0); in main()
84 assert(syscall(__NR_getgroups, size, list) == size); in main()
Duid16.c68 uid = syscall(__NR_getuid); in main()
84 assert(syscall(__NR_setuid, uid) == 0); in main()
91 assert(syscall(__NR_getresuid, &r, &e, &s) == 0); in main()
93 assert(syscall(__NR_setreuid, -1, 0xffff) == 0); in main()
94 assert(syscall(__NR_setresuid, uid, -1, 0xffff) == 0); in main()
95 assert(syscall(__NR_fchown, 1, -1, 0xffff) == 0); in main()
96 assert((size = syscall(__NR_getgroups, 0, list)) >= 0); in main()
98 assert(syscall(__NR_getgroups, size, list) == size); in main()
Dsendfile.c70 if (!syscall(__NR_sendfile, 0, 1, NULL, page_len) || in main()
81 if (!syscall(__NR_sendfile, 0, 1, p + page_len, page_len)) in main()
86 if (syscall(__NR_sendfile, sv[1], reg_in, NULL, alen) != (long) alen) in main()
93 if (syscall(__NR_sendfile, sv[1], reg_in, p_off, alen) != (long) alen) { in main()
98 if (syscall(__NR_sendfile, sv[1], reg_in, p_off, alen) in main()
106 if (syscall(__NR_sendfile, sv[1], reg_in, p_off, stb.st_size + 1) in main()
118 if (!syscall(__NR_sendfile, sv[1], reg_in, p_off64, 1)) in main()
126 if (syscall(__NR_sendfile, sv[1], reg_in, p_off, 1)) in main()
Dsendfile64.c70 if (!syscall(__NR_sendfile64, 0, 1, NULL, page_len) || in main()
81 if (!syscall(__NR_sendfile64, 0, 1, p + page_len, page_len)) in main()
86 if (syscall(__NR_sendfile64, sv[1], reg_in, NULL, alen) != (long) alen) in main()
93 if (syscall(__NR_sendfile64, sv[1], reg_in, p_off, alen) != (long) alen) in main()
99 if (syscall(__NR_sendfile64, sv[1], reg_in, p_off, stb.st_size + 1) in main()
109 if (!syscall(__NR_sendfile64, sv[1], reg_in, p_off, 1)) in main()
116 if (syscall(__NR_sendfile64, sv[1], reg_in, p_off, 1)) in main()
Dclock_nanosleep.c65 if (syscall(__NR_clock_nanosleep, CLOCK_REALTIME, 0, &req.ts, NULL)) in main()
70 if (!syscall(__NR_clock_nanosleep, CLOCK_REALTIME, 0, NULL, &rem.ts)) in main()
75 if (syscall(__NR_clock_nanosleep, CLOCK_REALTIME, 0, &req.ts, &rem.ts)) in main()
81 if (!syscall(__NR_clock_nanosleep, CLOCK_MONOTONIC, 0, &req.ts, &rem.ts)) in main()
102 if (!syscall(__NR_clock_nanosleep, CLOCK_REALTIME, 0, &req.ts, &rem.ts)) in main()
110 if (syscall(__NR_clock_gettime, CLOCK_REALTIME, &req.ts)) in main()
118 if (!syscall(__NR_clock_nanosleep, CLOCK_REALTIME, TIMER_ABSTIME, in main()
Dpipe.test7 syscall=pipe2
9 $STRACE -e$n -h > /dev/null && syscall=$syscall,$n
13 run_strace -e$syscall $args
Dmmap.test7 syscall=mprotect,munmap
9 $STRACE -e$n -h > /dev/null && syscall=$syscall,$n
15 run_strace -e$syscall $args > "$OUT"
Dreadlink.test7 syscall=readlink
8 target=$syscall.c
9 link=$syscall.link
16 run_strace -e $syscall -xx -s3 $args > "$OUT"
Dreadlinkat.test7 syscall=readlinkat
8 target=$syscall.c
9 link=$syscall.link
16 run_strace -e $syscall -xx -s3 $args > "$OUT"
Daio.c136 if (syscall(__NR_io_setup, lnr, &ctx)) in main()
140 if (syscall(__NR_io_submit, ctx, nr, cbs) != (long) nr) in main()
155 assert(syscall(__NR_io_getevents, ctx, nr, nr + 1, ev, &ts) == (long) nr); in main()
167 assert(syscall(__NR_io_cancel, ctx, &cbc, ev) == -1 && EINVAL == errno); in main()
172 if (syscall(__NR_io_submit, ctx, nr, cbvs) != (long) nr) in main()
191 assert(syscall(__NR_io_destroy, ctx) == 0); in main()
/external/strace/linux/sparc/
Dgen.pl7 ($i1, $i2, $i3, $syscall, $syscall_name) = split;
9 $name[$index++] = $syscall;
14 ($i1, $n, $pr, $syscall) = split;
15 $par{$syscall} = $n;
16 $prr{$syscall} = $pr;
22 ($i1, $n, $pr, $syscall) = split;
23 $par{$syscall} = $n;
24 $prr{$syscall} = $pr;
/external/valgrind/coregrind/m_mach/
Dmach_traps-amd64-darwin.S43 syscall
64 syscall
74 syscall
84 syscall
94 syscall
104 syscall
114 syscall
124 syscall
134 syscall
/external/autotest/client/site_tests/security_Minijail_seccomp/src/
Dfail.c14 int fd_z = syscall(__NR_open, "/dev/zero", O_RDONLY); in main()
15 int fd_n = syscall(__NR_open, "/dev/null", O_RDONLY); in main()
16 int nr = syscall(__NR_read, fd_z, buf, SIZE); in main()
17 int nw = syscall(__NR_write, fd_n, buf, SIZE); in main()
18 syscall(__NR_close, fd_z); in main()
19 syscall(__NR_close, fd_n); in main()
20 syscall(__NR_exit, 0); in main()
Dok.c14 int fd = syscall(__NR_open, "/dev/zero", O_RDONLY); in main()
15 int n = syscall(__NR_read, fd, buf, SIZE); in main()
16 syscall(__NR_close, fd); in main()
17 syscall(__NR_exit, 0); in main()
/external/libevent/
Depoll_sub.c44 return (syscall(__NR_epoll_create1, 0)); in epoll_create()
46 return (syscall(__NR_epoll_create, size)); in epoll_create()
54 return (syscall(__NR_epoll_ctl, epfd, op, fd, event)); in epoll_ctl()
61 return (syscall(__NR_epoll_pwait, epfd, events, maxevents, timeout, NULL, 0)); in epoll_wait()
63 return (syscall(__NR_epoll_wait, epfd, events, maxevents, timeout)); in epoll_wait()
/external/strace/
DNEWS5 * Enhanced decoding of personality syscall.
15 personality. In these cases, syscall filtering and printing now
25 * When some data referenced by syscall arguments is irrelevant or cannot
27 * When a syscall is restarted using restart_syscall mechanism, strace now
28 shows the syscall name on architectures that expose this information.
36 * Implemented decoding of struct statfs.f_flags in statfs syscall.
39 * Implemented decoding of indirect syscall on mips o32.
41 * Implemented decoding of setsockopt syscall multicast arguments.
44 and v4l2 ioctl syscall arguments.
56 * Added new syscall entries to match Linux 4.4.
[all …]
DREADME-linux-ptrace30 syscall-stop and so on. They are described in detail later.
50 kills even within syscalls (syscall-exit-stop is not generated prior to
61 When tracee executes exit syscall, it reports its death to its tracer.
64 When any thread executes exit_group syscall, every tracee in its thread
68 before actual death. This applies to exits on exit syscall, group_exit
69 syscall, signal deaths (except SIGKILL), and when threads are torn down
123 group-stop, PTRACE_EVENT stops, syscall-stops [, SINGLESTEP, SYSEMU,
168 prematurely. Kernel should always restart the syscall in this case:
169 tracer would observe a new syscall-enter-stop for the same syscall,
171 tracer would observe a syscall-enter-stop for restart_syscall(2)
[all …]
/external/valgrind/gdbserver_tests/
Dnlcontrolc.stdoutB.exp3 0x........ in syscall ...
4 4 Thread .... (tid 4 VgTs_WaitSys) 0x........ in syscall ...
5 3 Thread .... (tid 3 VgTs_WaitSys) 0x........ in syscall ...
6 2 Thread .... (tid 2 VgTs_WaitSys) 0x........ in syscall ...
7 * 1 Thread .... (tid 1 VgTs_WaitSys) 0x........ in syscall ...
/external/autotest/client/site_tests/security_SeccompSyscallFilters/src/
Dseccomp_bpf_tests.c94 syscall(__NR_exit, 1); in TEST()
102 syscall(__NR_prctl, PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, NULL, NULL); in TEST_SIGNAL()
220 EXPECT_EQ(0, syscall(__NR_getpid)) { in TEST_SIGNAL()
240 EXPECT_EQ(0, syscall(__NR_getpid)) { in TEST_SIGNAL()
280 EXPECT_EQ(parent, syscall(__NR_getppid)); in TEST_SIGNAL()
282 EXPECT_EQ(0, syscall(__NR_getpid)); in TEST_SIGNAL()
309 EXPECT_EQ(parent, syscall(__NR_getppid)); in TEST_SIGNAL()
310 EXPECT_EQ(pid, syscall(__NR_getpid)); in TEST_SIGNAL()
312 EXPECT_EQ(0, syscall(__NR_getpid, 0x0C0FFEE)); in TEST_SIGNAL()
339 EXPECT_EQ(parent, syscall(__NR_getppid)); in TEST_SIGNAL()
[all …]
/external/valgrind/memcheck/tests/linux/
DMakefile.am18 syslog-syscall.vgtest syslog-syscall.stderr.exp \
20 timerfd-syscall.vgtest timerfd-syscall.stderr.exp \
37 syslog-syscall \
38 timerfd-syscall \
/external/valgrind/
DREADME_MISSING_SYSCALL_OR_IOCTL6 news is that, in general, it's easy to write the missing syscall or
18 What are syscall/ioctl wrappers? What do they do?
30 1. Tell a tool what's about to happen, before the syscall takes place. A
35 2. Tell a tool what just happened, after a syscall takes place. This is
45 The syscall wrapper for time()
66 The first thing we do happens before the syscall occurs, in the PRE() function.
69 Next, the tool is told the return type of the syscall, that the syscall has
70 one argument, the type of the syscall argument and that the argument is being
82 Finally, the really important bit, after the syscall occurs, in the POST()
90 The POST() function won't be called if the syscall failed, so you
[all …]

12345678910>>...13