Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b235b614 authored by Motomu Utsumi's avatar Motomu Utsumi
Browse files

Load gpuMem by rust bpfloader

No behavior change is expected.

Before this CL
"""
$ adb shell ls /etc/bpf/gpuMem.o
/etc/bpf/gpuMem.o

$ adb shell ls -lZ /sys/fs/bpf/*gpuMem_*
-rw-r----- 1 root graphics u:object_r:fs_bpf:s0  0 2025-05-28 16:01 /sys/fs/bpf/map_gpuMem_gpu_mem_total_map
-r--r----- 1 root graphics u:object_r:fs_bpf:s0  0 2025-05-28 16:01 /sys/fs/bpf/prog_gpuMem_tracepoint_gpu_mem_gpu_mem_total
"""

After this CL
"""
$ adb shell ls /etc/bpf/gpuMem.bpf
/etc/bpf/gpuMem.bpf

$ adb shell ls -lZ /sys/fs/bpf/*gpuMem_*
-rw-r----- 1 root graphics u:object_r:fs_bpf:s0  0 2025-05-28 16:24 /sys/fs/bpf/map_gpuMem_gpu_mem_total_map
-r--r----- 1 root graphics u:object_r:fs_bpf:s0  0 2025-05-28 16:24 /sys/fs/bpf/prog_gpuMem_tracepoint_gpu_mem_gpu_mem_total
"""

Test: Loaded successfully on kernel 5.10, 5.15, 6.1, 6.12
Bug: 410982483
Flag: EXEMPT refactoring
Change-Id: I6daae2a3e922db739ed6579d7c70cab9ea68c6ef
parent 3d5eeeb9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment