Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 03dccde6 authored by Tomasz Wasilczyk's avatar Tomasz Wasilczyk
Browse files

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
parent dec4e24b
Loading
Loading
Loading
Loading
+15 −2
Original line number Diff line number Diff line
@@ -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