summaryrefslogtreecommitdiff
path: root/libs/binder/BufferedTextOutput.cpp
diff options
context:
space:
mode:
author Connor O'Brien <connoro@google.com> 2020-01-09 17:10:19 -0800
committer Connor O'Brien <connoro@google.com> 2020-01-27 14:01:25 -0800
commitb0491f89e880967e3b1c196df60cb96293e4b576 (patch)
tree79d8e0726da747fa48913be2ae6c77900ba86c6d /libs/binder/BufferedTextOutput.cpp
parent8e7d61c0b1258421a7ea9213aa80a6b64d947a1e (diff)
libtimeinstate: tolerate multiple calls to startTrackingUidTimes
system_server instantiates 2 of each type of KernelCpuUidTimeReader, but the logic in startTrackingUidTimes() must run exactly once. Revise startTrackingUidTimes() to return immediately if tracking is already active. This makes it safe to call from the KernelCpuUidTimeReader constructor, ensuring that tracking will start as early as possible. Bug: 138317993 Test: boot & check that time_in_state programs have been attached exactly once Change-Id: Ic64438a3270874b398a8db07531521fe1d02a3de Signed-off-by: Connor O'Brien <connoro@google.com>
Diffstat (limited to 'libs/binder/BufferedTextOutput.cpp')
0 files changed, 0 insertions, 0 deletions