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

Commit 1345c541 authored by Connor O'Brien's avatar Connor O'Brien
Browse files

gpu_mem: enable BTF



Generate BTF debug info when building gpu_mem.o. bpfloader will load
map info alongside gpu_mem_total_map, which allows pretty-printing via
the "cat" command for easier debugging.

Test: m gpu_mem.o
Test: gpuservice_unittest --gtest_filter=GpuMem*
Test: cat /sys/fs/bpf/map_gpu_mem_gpu_mem_total_map
Bug: 203823368
Signed-off-by: default avatarConnor O'Brien <connoro@google.com>
Change-Id: I453766c0f76e1aba5720400a0ec2e2f871967a91
parent 09fe4d2c
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -24,6 +24,7 @@ package {
bpf {
bpf {
    name: "gpu_mem.o",
    name: "gpu_mem.o",
    srcs: ["gpu_mem.c"],
    srcs: ["gpu_mem.c"],
    btf: true,
    cflags: [
    cflags: [
        "-Wall",
        "-Wall",
        "-Werror",
        "-Werror",