Home
last modified time | relevance | path

Searched refs:__NR_getpid (Results 1 – 25 of 26) sorted by relevance

12

/external/autotest/client/site_tests/security_SeccompSyscallFilters/src/
Dseccomp_bpf_tests.c212 EXPECT_EQ(0, syscall(__NR_getpid)) { in TEST_SIGNAL()
232 EXPECT_EQ(0, syscall(__NR_getpid)) { in TEST_SIGNAL()
257 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_getpid, 0, 1), in TEST_SIGNAL()
274 EXPECT_EQ(0, syscall(__NR_getpid)); in TEST_SIGNAL()
281 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_getpid, 1, 0), in TEST_SIGNAL()
302 EXPECT_EQ(pid, syscall(__NR_getpid)); in TEST_SIGNAL()
304 EXPECT_EQ(0, syscall(__NR_getpid, 0x0C0FFEE)); in TEST_SIGNAL()
311 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_getpid, 1, 0), in TEST_SIGNAL()
332 EXPECT_EQ(pid, syscall(__NR_getpid)); in TEST_SIGNAL()
334 EXPECT_EQ(0, syscall(__NR_getpid, 1, 2, 3, 4, 5, 0x0C0FFEE)); in TEST_SIGNAL()
[all …]
Dsigsegv.c179 ret = syscall(__NR_getpid); in TEST_F_SIGNAL()
Dresumption.c206 ret = syscall(__NR_getpid); in TEST_F()
/external/strace/tests-mx32/
Dgetpid.c4 #ifdef __NR_getpid
12 printf("getpid() = %ld\n", syscall(__NR_getpid)); in main()
Dinject-nf.c45 # define SC_NR __NR_getpid
/external/strace/tests-m32/
Dgetpid.c4 #ifdef __NR_getpid
12 printf("getpid() = %ld\n", syscall(__NR_getpid)); in main()
Dinject-nf.c45 # define SC_NR __NR_getpid
/external/strace/tests/
Dgetpid.c4 #ifdef __NR_getpid
12 printf("getpid() = %ld\n", syscall(__NR_getpid)); in main()
Dinject-nf.c45 # define SC_NR __NR_getpid
/external/ltp/testcases/kernel/syscalls/clone/
Dclone08.c132 if (ctid == tst_syscall(__NR_getpid)) in child_clone_child_settid()
142 if (ptid == tst_syscall(__NR_getpid)) in child_clone_parent_settid()
192 tgid = tst_syscall(__NR_getpid); in test_clone_thread()
221 if (tgid == tst_syscall(__NR_getpid)) in child_clone_thread()
/external/seccomp-tests/linux/
Dseccomp_bpf.c361 EXPECT_EQ(0, syscall(__NR_getpid)) { in TEST_SIGNAL()
383 EXPECT_EQ(0, syscall(__NR_getpid)) { in TEST_SIGNAL()
411 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_getpid, 0, 1), in TEST_SIGNAL()
430 EXPECT_EQ(0, syscall(__NR_getpid)); in TEST_SIGNAL()
634 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_getpid, 0, 1), in FIXTURE_SETUP()
661 syscall(__NR_getpid); in TEST_F_SIGNAL()
676 syscall(__NR_getpid); in TEST_F_SIGNAL()
716 ret = syscall(__NR_getpid); in TEST_F()
730 EXPECT_EQ(__NR_getpid, sigsys->_syscall); in TEST_F()
752 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_getpid, 1, 0), in FIXTURE_SETUP()
[all …]
/external/linux-kselftest/tools/testing/selftests/seccomp/
Dseccomp_bpf.c521 EXPECT_EQ(0, syscall(__NR_getpid)) { in TEST_SIGNAL()
543 EXPECT_EQ(0, syscall(__NR_getpid)) { in TEST_SIGNAL()
571 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_getpid, 0, 1), in TEST_SIGNAL()
590 EXPECT_EQ(0, syscall(__NR_getpid)); in TEST_SIGNAL()
929 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_getpid, 0, 1), in FIXTURE_SETUP()
956 syscall(__NR_getpid); in TEST_F_SIGNAL()
971 syscall(__NR_getpid); in TEST_F_SIGNAL()
1011 ret = syscall(__NR_getpid); in TEST_F()
1025 EXPECT_EQ(__NR_getpid, sigsys->_syscall); in TEST_F()
1048 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_getpid, 1, 0), in FIXTURE_SETUP()
[all …]
Dseccomp_benchmark.c28 ret = syscall(__NR_getpid); in timing()
/external/linux-kselftest/android/patches/
D0017-seccomp_bpf.patch57 EXPECT_EQ(-1, syscall(__NR_getpid));
67 EXPECT_EQ(mypid, syscall(__NR_getpid));
D0009-seccomp-disable-tests-broken-on-kernels-4.8.patch35 EXPECT_NE(self->mypid, syscall(__NR_getpid));
/external/openssh/
Dsandbox-seccomp-filter.c216 #ifdef __NR_getpid
217 SC_ALLOW(__NR_getpid),
/external/minijail/linux-x86/
Dlibsyscalls.gen.c123 #ifdef __NR_getpid
124 { "getpid", __NR_getpid },
/external/kernel-headers/original/uapi/asm-x86/asm/
Dunistd_64.h43 #define __NR_getpid 39 macro
Dunistd_32.h24 #define __NR_getpid 20 macro
Dunistd_x32.h38 #define __NR_getpid (__X32_SYSCALL_BIT + 39) macro
/external/strace/
Dscno.h125 #ifndef __NR_getpid
126 # define __NR_getpid (SYSCALL_BIT | 39) macro
/external/libchrome/base/process/
Dprocess_util_unittest.cc1297 const pid_t pid = syscall(__NR_getpid); in MULTIPROCESS_TEST_MAIN()
1325 ASSERT_EQ(syscall(__NR_getpid), getpid()); in TEST()
1332 RAW_CHECK(syscall(__NR_getpid) == ctid); in TEST()
/external/kernel-headers/original/uapi/asm-generic/
Dunistd.h521 #define __NR_getpid 172 macro
522 __SYSCALL(__NR_getpid, sys_getpid)
/external/kernel-headers/original/uapi/asm-arm/asm/
Dunistd-common.h20 #define __NR_getpid (__NR_SYSCALL_BASE + 20) macro
/external/llvm-project/libc/config/linux/
Dsyscall_numbers.h.inc525 #ifdef __NR_getpid
526 #define SYS_getpid __NR_getpid

12