Allow rust bpfloader to load gpuWork.bpf
Test: TH Bug: 410982483 Change-Id: I2d2f4d0995eb8533751c91465afcdc71619375cd
This commit is contained in:
parent
8b9682001f
commit
3023601201
1 changed files with 12 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue