Searched refs:cached_pid (Results 1 – 4 of 4) sorted by relevance
38 pid_t cached_pid; in __get_cached_pid() local39 if (__predict_true(self->get_cached_pid(&cached_pid))) { in __get_cached_pid()40 return cached_pid; in __get_cached_pid()47 pid_t cached_pid = __get_cached_pid(); in getpid() local48 if (__predict_true(cached_pid != 0)) { in getpid()49 return cached_pid; in getpid()
90 bool get_cached_pid(pid_t* cached_pid) { in get_cached_pid() argument91 *cached_pid = cached_pid_; in get_cached_pid()92 return (*cached_pid != 0); in get_cached_pid()
143 pid_t cached_pid = __get_cached_pid(); in fdsan_error() local144 if (cached_pid == 0 || cached_pid != syscall(__NR_getpid)) { in fdsan_error()
442 pid_t cached_pid; in TEST() local443 ASSERT_TRUE(self->get_cached_pid(&cached_pid)); in TEST()444 ASSERT_EQ(syscall(__NR_getpid), cached_pid); in TEST()450 if (self->get_cached_pid(&cached_pid)) { in TEST()464 ASSERT_TRUE(self->get_cached_pid(&cached_pid)); in TEST()465 ASSERT_EQ(syscall(__NR_getpid), cached_pid); in TEST()