Revert "Revert "Clear BPF data in KernelCpuUidTimeReader.removeUid()""
This reverts commit0648bad1b6. Reason for revert: commit0208449c3b("Defer UID data removal until after reading is finished") has now been merged to remove the deadlock that required reverting. Bug: 177011744 Bug: 174739872 Change-Id: I4fc120dc4410e21327700cb62900b3991ec981ec
This commit is contained in:
@@ -143,6 +143,10 @@ public abstract class KernelCpuUidTimeReader<T> {
|
||||
*/
|
||||
public void removeUid(int uid) {
|
||||
mLastTimes.delete(uid);
|
||||
|
||||
if (mBpfTimesAvailable) {
|
||||
mBpfReader.removeUidsInRange(uid, uid);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user