Allow rust bpfloader to load gpuWork.bpf

Test: TH
Bug: 410982483
Change-Id: I2d2f4d0995eb8533751c91465afcdc71619375cd
This commit is contained in:
Motomu Utsumi 2025-05-22 15:53:28 +09:00
commit 3023601201

View file

@ -249,6 +249,18 @@ const FILE_ARR: &[BpfFileDesc] = &[
maps: &[MapDesc::new(GID_MEDIA_RW, PERM_GRO, "gpu_mem_total_map")],
progs: &[ProgDesc::new(GID_GRAPHICS, "tracepoint_gpu_mem_gpu_mem_total")],
},
BpfFileDesc {
filename: "gpuWork.bpf",
dir: "/etc/bpf/",
prefix: "",
critical: false,
skip_on_user: false,
maps: &[
MapDesc::new(GID_GRAPHICS, PERM_GRW, "gpu_work_map"),
MapDesc::new(GID_GRAPHICS, PERM_GRW, "gpu_work_global_data"),
],
progs: &[ProgDesc::new(GID_GRAPHICS, "tracepoint_power_gpu_work_period")],
},
];
// TODO: Remove this code when fuse-bpf is upstreamed