summaryrefslogtreecommitdiff
path: root/opengl/libagl/matrix.cpp
diff options
context:
space:
mode:
author Connor O'Brien <connoro@google.com> 2019-08-21 12:08:39 -0700
committer Connor O'Brien <connoro@google.com> 2020-01-14 12:25:11 -0800
commit3fc2cb71bb642f1876437611b8cdc9b2288ad20e (patch)
tree1d637f8e27a83afba53cc5ffa9e94ebc8446adff /opengl/libagl/matrix.cpp
parent86df959afaa6794c995a51220217d6e57cc9ac2f (diff)
libtimeinstate: clear stale map values in startTrackingUidTimes()
If system_server is killed and restarted after attaching programs to tracepoints, the values in several maps will become stale before the programs are re-attached, leading to errors. For example, stale times in the cpu_last_update map will cause the entire time since the sched_switch program was detached to be attributed to the first task to switch out after reattach. To mitigate this, zero out all potentially stale map entries before attaching any bpf programs to tracepoints. Also, give the map fds in startTrackingUidTimes() more descriptive names now that there are six different maps being opened. Bug: 138317993 Test: libtimeinstate_test passes after restarting attaching process Change-Id: I786d728108ca40575047c5c22c76034d05b6e2c2 Signed-off-by: Connor O'Brien <connoro@google.com>
Diffstat (limited to 'opengl/libagl/matrix.cpp')
0 files changed, 0 insertions, 0 deletions