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

Commit 720ec5ba authored by Olivier Gaillard's avatar Olivier Gaillard
Browse files

Update the binder calls atom to track the calling app of a binder call.

Test: manual
Change-Id: I0c63298e56b85eb69ac7f909c12414cc43a964a9
parent adb49c00
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -2540,10 +2540,17 @@ message Temperature {
 * Binder stats will be reset every time the data is pulled. It means it can only be pulled by one
 * config on the device.
 *
 * Next tag: 14
 * Next tag: 15
 */
message BinderCalls {
    // UID of the process responsible for the binder transaction. It will be set if the process
    // executing the binder transaction attribute the transaction to another uid using
    // Binder.setThreadWorkSource().
    //
    // If not set, the value will be -1.
    optional int32 uid = 1 [(is_uid) = true];
    // UID of the process executing the binder transaction.
    optional int32 direct_caller_uid = 14;
    // Fully qualified class name of the API call.
    //
    // This is a system server class name.
+1 −0
Original line number Diff line number Diff line
@@ -1052,6 +1052,7 @@ public class StatsCompanionService extends IStatsCompanionService.Stub {
            e.writeLong(callStat.maxRequestSizeBytes);
            e.writeLong(callStat.recordedCallCount);
            e.writeInt(callStat.screenInteractive ? 1 : 0);
            e.writeInt(callStat.callingUid);
            pulledData.add(e);
        }
    }