diff options
author | Maciej Żenczykowski <maze@google.com> | 2021-07-02 12:57:06 -0700 |
---|---|---|
committer | Maciej Żenczykowski <maze@google.com> | 2021-07-02 12:57:21 -0700 |
commit | 0adfbb9ee015b7671e231d599d7bb51e89526842 (patch) | |
tree | 1d5e175d683075b3fa169dd4d287c050a4bf88a3 | |
parent | 02c4473bcc9e43c0299c8809215257aaa341d878 (diff) | |
download | native-0adfbb9ee015b7671e231d599d7bb51e89526842.tar.gz |
gpu mem bpf program - switch to LICENSE macro
Without this resulting .o is incorrectly formatted
and fails to load with newer bpfloader.
Bug: 190519702
Test: atest, TreeHugger - existing bpf programs load
examination of bpfloader logs
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Ie1a3ed0cdaebc533e4533ed5bfefd369ec2a87b3
-rw-r--r-- | services/gpuservice/bpfprogs/gpu_mem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/gpuservice/bpfprogs/gpu_mem.c b/services/gpuservice/bpfprogs/gpu_mem.c index c75213bbd4..16e1e8a1ef 100644 --- a/services/gpuservice/bpfprogs/gpu_mem.c +++ b/services/gpuservice/bpfprogs/gpu_mem.c @@ -72,4 +72,4 @@ DEFINE_BPF_PROG("tracepoint/gpu_mem/gpu_mem_total", AID_ROOT, AID_GRAPHICS, tp_g return 0; } -char _license[] SEC("license") = "Apache 2.0"; +LICENSE("Apache 2.0"); |