Lines Matching refs:syscall
275 return syscall(__NR_seccomp, op, flags, args); in seccomp()
295 return syscall(__NR_kcmp, pid1, pid2, KCMP_FILE, fd1, fd2); in __filecmp()
333 syscall(__NR_exit, 0); in TEST()
344 syscall(__NR_prctl, PR_SET_SECCOMP, SECCOMP_MODE_FILTER, in TEST_SIGNAL()
587 EXPECT_EQ(parent, syscall(__NR_getppid)); in TEST()
606 EXPECT_EQ(0, syscall(__NR_getpid)) { in TEST_SIGNAL()
628 EXPECT_EQ(0, syscall(__NR_getpid)) { in TEST_SIGNAL()
673 EXPECT_EQ(parent, syscall(__NR_getppid)); in TEST_SIGNAL()
675 EXPECT_EQ(0, syscall(__NR_getpid)); in TEST_SIGNAL()
708 EXPECT_EQ(parent, syscall(__NR_getppid)); in TEST_SIGNAL()
709 EXPECT_LE(clock, syscall(__NR_times, &timebuf)); in TEST_SIGNAL()
711 EXPECT_EQ(0, syscall(__NR_times, &fatal_address)); in TEST_SIGNAL()
753 EXPECT_EQ(parent, syscall(__NR_getppid)); in TEST_SIGNAL()
754 map1 = (void *)syscall(sysno, in TEST_SIGNAL()
758 map2 = (void *)syscall(sysno, in TEST_SIGNAL()
957 EXPECT_EQ(parent, syscall(__NR_getppid)); in TEST()
975 EXPECT_EQ(parent, syscall(__NR_getppid)); in TEST()
997 EXPECT_EQ(parent, syscall(__NR_getppid)); in TEST()
1028 EXPECT_EQ(parent, syscall(__NR_getppid)); in TEST()
1069 syscall(__NR_getpid); in TEST_F_SIGNAL()
1084 syscall(__NR_getpid); in TEST_F_SIGNAL()
1124 ret = syscall(__NR_getpid); in TEST_F()
1241 res = syscall(__NR_getppid); in TEST_F()
1267 res = syscall(__NR_getppid); in TEST_F_SIGNAL()
1270 res = syscall(__NR_getpid); in TEST_F_SIGNAL()
1296 EXPECT_EQ(parent, syscall(__NR_getppid)); in TEST_F_SIGNAL()
1298 EXPECT_EQ(0, syscall(__NR_getpid)); in TEST_F_SIGNAL()
1321 EXPECT_EQ(parent, syscall(__NR_getppid)); in TEST_F_SIGNAL()
1323 EXPECT_EQ(0, syscall(__NR_getpid)); in TEST_F_SIGNAL()
1346 EXPECT_EQ(parent, syscall(__NR_getppid)); in TEST_F_SIGNAL()
1348 EXPECT_EQ(0, syscall(__NR_getpid)); in TEST_F_SIGNAL()
1369 EXPECT_EQ(parent, syscall(__NR_getppid)); in TEST_F()
1370 EXPECT_EQ(0, syscall(__NR_getpid)); in TEST_F()
1391 EXPECT_EQ(parent, syscall(__NR_getppid)); in TEST_F()
1392 EXPECT_EQ(0, syscall(__NR_getpid)); in TEST_F()
1411 EXPECT_EQ(parent, syscall(__NR_getppid)); in TEST_F()
1413 EXPECT_EQ(-1, syscall(__NR_getpid)); in TEST_F()
1432 EXPECT_EQ(parent, syscall(__NR_getppid)); in TEST_F()
1434 EXPECT_EQ(-1, syscall(__NR_getpid)); in TEST_F()
1452 EXPECT_EQ(parent, syscall(__NR_getppid)); in TEST_F()
1454 EXPECT_EQ(mypid, syscall(__NR_getpid)); in TEST_F()
1472 EXPECT_EQ(parent, syscall(__NR_getppid)); in TEST_F()
1474 EXPECT_EQ(mypid, syscall(__NR_getpid)); in TEST_F()
1556 syscall(__NR_exit, _metadata->passed ? EXIT_SUCCESS : EXIT_FAILURE); in start_tracer()
1581 syscall(__NR_exit, 0); in setup_trace_fixture()
1700 EXPECT_NE(0, syscall(__NR_getpid)); in TEST_F()
1812 # define SYSCALL_NUM(_regs) (_regs).syscall
1918 pid_t tracee, long *syscall, long *ret) in __change_syscall() argument
1923 if (!syscall && !ret) in __change_syscall()
1931 if (syscall) in __change_syscall()
1932 SYSCALL_NUM_SET(regs, *syscall); in __change_syscall()
1944 pid_t tracee, long syscall) in change_syscall_nr() argument
1946 __change_syscall(_metadata, tracee, &syscall, NULL); in change_syscall_nr()
1953 long syscall = -1; in change_syscall_ret() local
1955 __change_syscall(_metadata, tracee, &syscall, &ret); in change_syscall_ret()
2108 self->mytid = syscall(__NR_gettid); in FIXTURE_SETUP()
2150 EXPECT_EQ(-1, syscall(-1)); in TEST()
2154 EXPECT_EQ(-1, syscall(-101)); in TEST()
2166 EXPECT_EQ(self->parent, syscall(__NR_getppid)); in TEST_F()
2167 EXPECT_NE(self->mypid, syscall(__NR_getppid)); in TEST_F()
2173 EXPECT_EQ(self->parent, syscall(__NR_getpid)); in TEST_F()
2174 EXPECT_NE(self->mypid, syscall(__NR_getpid)); in TEST_F()
2180 EXPECT_SYSCALL_RETURN(-ESRCH, syscall(__NR_openat)); in TEST_F()
2186 EXPECT_SYSCALL_RETURN(45000, syscall(__NR_gettid)); in TEST_F()
2210 EXPECT_EQ(-1, syscall(__NR_getpid)); in TEST_F()
2234 EXPECT_NE(self->mypid, syscall(__NR_getpid)); in TEST_F_SIGNAL()
2559 me->system_tid = syscall(__NR_gettid); in tsync_sibling()
3022 syscall(__NR_exit, _metadata->passed ? EXIT_SUCCESS in TEST()
3167 EXPECT_EQ(parent, syscall(__NR_getppid)); in TEST_SIGNAL()
3169 EXPECT_EQ(0, syscall(__NR_getpid)); in TEST_SIGNAL()
3321 ret = syscall(__NR_getppid); in TEST()
3350 ret = syscall(__NR_getppid); in TEST()
3446 ret = syscall(__NR_getppid); in TEST()
3508 ret = syscall(__NR_gettid); in TEST()
3569 ret = syscall(__NR_getppid); in TEST()
3603 exit(syscall(__NR_getppid) != USER_NOTIF_MAGIC); in TEST()
3649 exit(syscall(__NR_getppid) != USER_NOTIF_MAGIC); in TEST()
3711 exit(syscall(__NR_getppid) != USER_NOTIF_MAGIC); in TEST()
3996 if (syscall(__NR_getppid) != USER_NOTIF_MAGIC) in TEST()
4000 if (fcntl(syscall(__NR_getppid), F_GETFD) == -1) in TEST()
4003 exit(syscall(__NR_getppid) != USER_NOTIF_MAGIC); in TEST()
4150 exit(syscall(__NR_getppid) != USER_NOTIF_MAGIC); in TEST()