diff options
author | 2018-10-31 16:00:27 +0000 | |
---|---|---|
committer | 2018-10-31 16:00:27 +0000 | |
commit | 936b54b261d51e2edafdfe76b7ac908de37674bb (patch) | |
tree | 3aaec3df0eec7c754f78c46cdf681efc552be3ff | |
parent | e2b3a2fd1a383de5d80c3d10deaf26df6783e678 (diff) | |
parent | 720ec5baf96460fa264991f2d3a325a9728e2d7f (diff) |
Merge "Update the binder calls atom to track the calling app of a binder call."
-rw-r--r-- | cmds/statsd/src/atoms.proto | 9 | ||||
-rw-r--r-- | services/core/java/com/android/server/stats/StatsCompanionService.java | 1 |
2 files changed, 9 insertions, 1 deletions
diff --git a/cmds/statsd/src/atoms.proto b/cmds/statsd/src/atoms.proto index 51d05bbb86d1..ca049b03c4c7 100644 --- a/cmds/statsd/src/atoms.proto +++ b/cmds/statsd/src/atoms.proto @@ -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. diff --git a/services/core/java/com/android/server/stats/StatsCompanionService.java b/services/core/java/com/android/server/stats/StatsCompanionService.java index 7b35b9145f9a..465a2cfcc457 100644 --- a/services/core/java/com/android/server/stats/StatsCompanionService.java +++ b/services/core/java/com/android/server/stats/StatsCompanionService.java @@ -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); } } |