diff options
author | 2023-12-04 11:04:17 -0800 | |
---|---|---|
committer | 2023-12-04 11:04:17 -0800 | |
commit | 03dccde646c08bca6d981eb77d436f849226cb33 (patch) | |
tree | 2503b8b476eaa0aea281df2c9999042bf3f9177c | |
parent | dec4e24b42232d50ce9701a73c8e3e1bc78108b6 (diff) |
Bring back Binder atrace symbols
Bug: 314592288
Test: manually add atrace_begin call to Parcel.cpp,
build with and without this change
Change-Id: Ib6f223b535918b1ac34f0802bfb67b8286ab458d
-rw-r--r-- | libs/binder/OS_android.cpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/libs/binder/OS_android.cpp b/libs/binder/OS_android.cpp index 155588d7f5..1eace857fb 100644 --- a/libs/binder/OS_android.cpp +++ b/libs/binder/OS_android.cpp @@ -20,7 +20,8 @@ #include <cutils/trace.h> #include <utils/misc.h> -namespace android::binder::os { +namespace android::binder { +namespace os { uint64_t GetThreadId() { #ifdef BINDER_RPC_SINGLE_THREADED @@ -43,4 +44,16 @@ void trace_end(uint64_t tag) { atrace_end(tag); } -} // namespace android::binder::os +} // namespace os + +// Legacy trace symbol. To be removed once all of downstream rebuilds. +void atrace_begin(uint64_t tag, const char* name) { + os::trace_begin(tag, name); +} + +// Legacy trace symbol. To be removed once all of downstream rebuilds. +void atrace_end(uint64_t tag) { + os::trace_end(tag); +} + +} // namespace android::binder |