| commit | b72194dcc4ef715f48629ea47a1fa65832c0a68a | [log] [tgz] |
|---|---|---|
| author | Yiwei Zhang <zzyiwei@google.com> | Tue Jul 28 23:11:21 2020 -0700 |
| committer | Yiwei Zhang <zzyiwei@google.com> | Wed Jul 29 16:47:58 2020 +0000 |
| tree | d7c4fd5ecd8aa5a980ff28f9fd06e54cf53ff5b3 | |
| parent | 9e5ab12b9b06d4ba58ef5ed0f30f71afb6ebdaa8 [diff] [blame] |
GpuService: secure setUpdatableDriverPath setUpdatableDriverPath should only be called by system_server and developer driver path needs to be protected by a lock. Bug: 162383705 Bug: 159240322 Test: ./gapit validate_gpu_profiling --os android Change-Id: I48896325598acab89079dbc658ddf9b92d303244 Merged-In: I48896325598acab89079dbc658ddf9b92d303244
diff --git a/services/gpuservice/GpuService.h b/services/gpuservice/GpuService.h index ba44fe0..d1c3aab 100644 --- a/services/gpuservice/GpuService.h +++ b/services/gpuservice/GpuService.h
@@ -75,7 +75,8 @@ * Attributes */ std::unique_ptr<GpuStats> mGpuStats; - std::string developerDriverPath; + std::mutex mLock; + std::string mDeveloperDriverPath; }; } // namespace android