diff options
author | Connor O'Brien <connoro@google.com> | 2022-02-07 18:53:53 -0800 |
---|---|---|
committer | Connor O'Brien <connoro@google.com> | 2022-02-07 18:56:39 -0800 |
commit | 1345c541398e8909219423999e377cbabe7a0bef (patch) | |
tree | 8c5f0fd3ed34661c59f8236ef93ec70d377b8fe3 | |
parent | 09fe4d2cc07beb8f776a6967fe3ae69d248c5fb1 (diff) | |
download | native-1345c541398e8909219423999e377cbabe7a0bef.tar.gz |
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: Connor O'Brien <connoro@google.com>
Change-Id: I453766c0f76e1aba5720400a0ec2e2f871967a91
-rw-r--r-- | services/gpuservice/bpfprogs/Android.bp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/services/gpuservice/bpfprogs/Android.bp b/services/gpuservice/bpfprogs/Android.bp index 9842ed7c3c..076affda5a 100644 --- a/services/gpuservice/bpfprogs/Android.bp +++ b/services/gpuservice/bpfprogs/Android.bp @@ -24,6 +24,7 @@ package { bpf { name: "gpu_mem.o", srcs: ["gpu_mem.c"], + btf: true, cflags: [ "-Wall", "-Werror", |