Searched refs:BPF_ASSERT_EQ (Results 1 – 5 of 5) sorted by relevance
/external/libchrome/sandbox/linux/seccomp-bpf-helpers/ |
D | baseline_policy_unittest.cc | 55 BPF_ASSERT_EQ(0, sys_ret); in TestPipeOrSocketPair() 64 BPF_ASSERT_EQ(kTestTransferSize, transfered); in TestPipeOrSocketPair() 67 BPF_ASSERT_EQ(kTestTransferSize, transfered); in TestPipeOrSocketPair() 68 BPF_ASSERT_EQ(0, memcmp(kTestString, read_buf, kTestTransferSize)); in TestPipeOrSocketPair() 73 BPF_ASSERT_EQ(0, sched_yield()); in BPF_TEST_C() 77 BPF_ASSERT_EQ(0, sys_ret); in BPF_TEST_C() 86 BPF_ASSERT_EQ(-1, ret); in BPF_TEST_C() 88 BPF_ASSERT_EQ(EPERM, errno); in BPF_TEST_C() 97 BPF_ASSERT_EQ(-1, pid); in BPF_TEST_C() 98 BPF_ASSERT_EQ(EPERM, fork_errno); in BPF_TEST_C() [all …]
|
D | syscall_parameters_restrictions_unittests.cc | 66 BPF_ASSERT_EQ(0, clock_getres(clockid, &ts)); in CheckClock() 67 BPF_ASSERT_EQ(0, ts.tv_sec); in CheckClock() 71 BPF_ASSERT_EQ(0, clock_gettime(clockid, &ts)); in CheckClock() 130 BPF_ASSERT_EQ(0, sched_getparam(pid, param)); in CheckSchedGetParam() 147 BPF_ASSERT_EQ(zero_param.sched_priority, tid_param.sched_priority); in SchedGetParamThread() 151 BPF_ASSERT_EQ(-1, sched_getparam(tid, NULL)); in SchedGetParamThread() 152 BPF_ASSERT_EQ(EINVAL, errno); in SchedGetParamThread() 198 BPF_ASSERT_EQ(0, sys_prlimit64(0, RLIMIT_AS, NULL, NULL)); in BPF_TEST_C() 199 BPF_ASSERT_EQ(0, sys_prlimit64(getpid(), RLIMIT_AS, NULL, NULL)); in BPF_TEST_C() 228 BPF_ASSERT_EQ(0, getrusage(RUSAGE_SELF, &usage)); in BPF_TEST_C()
|
/external/libchrome/sandbox/linux/seccomp-bpf/ |
D | bpf_tests_unittest.cc | 92 BPF_ASSERT_EQ(my_pid_, sys_getpid()); in ~EnosysPtracePolicy() 100 BPF_ASSERT_EQ(my_pid_, sys_getpid()); in EvaluateSyscall()
|
D | bpf_tests.h | 63 #define BPF_ASSERT_EQ(x, y) BPF_ASSERT((x) == (y)) macro
|
/external/libchrome/sandbox/linux/bpf_dsl/ |
D | bpf_dsl_unittest.cc | 300 BPF_ASSERT_EQ(&count_, aux);
|