commit | a265b40f0b731b0e484fe9b48504f1b6ed0e9e57 | [log] [tgz] |
---|---|---|
author | Yiwei Zhang <zzyiwei@google.com> | Thu Jun 25 22:02:29 2020 -0700 |
committer | Yiwei Zhang <zzyiwei@google.com> | Fri Jun 26 01:33:56 2020 -0700 |
tree | c5147ea5b04c69a62835cea293877468576109da | |
parent | 514b046bbb620bc2e45c961cc734025b9677428a [diff] |
GPU Memory: ensure bpf program is attached to the tracepoint Previously GpuMem is gated upon bpfloader loaded. Recently, bpfloader gets initialized much earlier which in return makes GpuMem initialize earlier. However, at that time, the kernel gfx driver may still not get loaded yet. This change fixes the racing here. Bug: 159963505 Test: adb shell dumpsys gpu --gpumem Test: atest gpuservice_unittest:GpuMemTest Change-Id: If434c205ff3175354d85924075fc1de1e91151f9