summaryrefslogtreecommitdiff
path: root/opengl/libagl/texture.cpp
diff options
context:
space:
mode:
author Connor O'Brien <connoro@google.com> 2019-06-11 13:49:19 -0700
committer Steven Moreland <smoreland@google.com> 2020-01-13 15:58:05 -0800
commit26de80f7758d659c95332b959587bcbb47f5fac2 (patch)
tree2808ceeb7ba5c9c011a9f911ca85bc95d24e1e0d /opengl/libagl/texture.cpp
parent1a1804066329b7427187932bc9ff49a35cd98f17 (diff)
libtimeinstate: support concurrent_{active,policy}_time
Add support for querying and clearing stats for time each UID spent running concurrently with tasks on all other CPUs and on CPUs in the same cluster. Also add tests for the new functions, including consistency checks comparing time in state vs concurrent times. Finally, because the BPF program cannot update multiple map values atomically, userspace reads occasionally occur in between the updates to a UID's active and policy times. Add a check for this in our reader functions and retry once when it is detected. For the (very rare) case where the same race occurs when retrying, include a comment in our consistency test to help distinguish these transient failures from a more serious bug. Test: libtimeinstate_test passes Bug: 138317993 Change-Id: I429ed39d3ef82b6643fd042a74d9d403c658a8c1 Signed-off-by: Connor O'Brien <connoro@google.com> (cherry picked from commit daceef75545ccc041fc72582fba82625ac57f575) Merged-In: I429ed39d3ef82b6643fd042a74d9d403c658a8c1
Diffstat (limited to 'opengl/libagl/texture.cpp')
0 files changed, 0 insertions, 0 deletions