summaryrefslogtreecommitdiff
path: root/simpleperf/environment.h
diff options
context:
space:
mode:
Diffstat (limited to 'simpleperf/environment.h')
-rw-r--r--simpleperf/environment.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/simpleperf/environment.h b/simpleperf/environment.h
index 34ce7fa5..180b98c3 100644
--- a/simpleperf/environment.h
+++ b/simpleperf/environment.h
@@ -142,19 +142,15 @@ static inline uint64_t GetSystemClock() {
return ts.tv_sec * 1000000000ULL + ts.tv_nsec;
}
-#if defined(__ANDROID__)
-bool IsInAppUid();
-#endif
-#if !defined(__ANDROID__) && !defined(ANDROID_HOST_MUSL)
+#if !defined(__ANDROID__)
static inline int gettid() {
return syscall(__NR_gettid);
}
#endif
+std::optional<uid_t> GetProcessUid(pid_t pid);
#endif // defined(__linux__)
-std::optional<uint32_t> GetProcessUid(pid_t pid);
-
} // namespace simpleperf
#endif // SIMPLE_PERF_ENVIRONMENT_H_