From 68dbcfec4f0bd4b26c13bf46b0dc0e8339b00541 Mon Sep 17 00:00:00 2001 From: Fabián Cañas Date: Fri, 6 Jan 2023 15:37:39 -0500 Subject: Add timestamp to RecordedTransaction Test: `atest binderUnitTest` Change-Id: I93bf860136ee66977391c6d2a24ebb52fb85c3cc --- libs/binder/Binder.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libs/binder/Binder.cpp') diff --git a/libs/binder/Binder.cpp b/libs/binder/Binder.cpp index 5e725a91f2..da5affb274 100644 --- a/libs/binder/Binder.cpp +++ b/libs/binder/Binder.cpp @@ -407,8 +407,10 @@ status_t BBinder::transact( AutoMutex lock(e->mLock); if (mRecordingOn) { Parcel emptyReply; + timespec ts; + timespec_get(&ts, TIME_UTC); auto transaction = - android::binder::debug::RecordedTransaction::fromDetails(code, flags, data, + android::binder::debug::RecordedTransaction::fromDetails(code, flags, ts, data, reply ? *reply : emptyReply, err); -- cgit v1.2.3-59-g8ed1b