services/gpuservice/bpfprogs/Android.bp
0 → 100644
+22
−0
services/gpuservice/bpfprogs/gpu_mem.c
0 → 100644
+75
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
This change implements the bpf map and program to be attached to
gpu_mem/gpu_mem_total tracepoint. Access groups of both the map and the
program are setup properly for gpuservice.
Bug: 154524735
Test: After requiring gpu_mem.o, the below should exist
1. /system/etc/bpf/gpu_mem.o
2. /sys/fs/bpf/map_gpu_mem_gpu_mem_total_map
3. /sys/fs/bpf/prog_gpu_mem_tracepoint_gpu_mem_gpu_mem_total
Change-Id: Ic09cdfbbbd5de82920cba7b96045891b81a2ecf1