OSDN Git Service

Allow gpuservice to read tracefs entries
authorKalesh Singh <kaleshsingh@google.com>
Tue, 7 Dec 2021 00:45:59 +0000 (16:45 -0800)
committerKalesh Singh <kaleshsingh@google.com>
Fri, 14 Jan 2022 18:50:40 +0000 (18:50 +0000)
Gpu service needs tracefs access to attach the BPF program
to the gpu_mem_total tracepoint for GPU memory tracking.

Bug: 208892266
Bug: 209513178
Bug: 214061655
Test: adb shell dumpsys gpu --gpumem
Change-Id: I10fd54544bee940313f3987247c1841101a9d03a
Merged-In: I10fd54544bee940313f3987247c1841101a9d03a

services/gpuservice/gpuservice.rc

index 65a5c27..0da8bd3 100644 (file)
@@ -1,4 +1,4 @@
 service gpu /system/bin/gpuservice
     class core
     user gpu_service
-    group graphics
+    group graphics readtracefs