aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdityaK <appujee@google.com>2024-01-31 16:13:14 -0800
committerAdityaK <appujee@google.com>2024-01-31 16:13:41 -0800
commitf423962a1d06466fda8c4b25f262a1ab2bada56a (patch)
tree13306ee8fe0cb8e69d82be6b662a1facf8f62f07
parent145549b639b7df1b3fee330aaa3bd2e57d234c47 (diff)
downloadbcc-f423962a1d06466fda8c4b25f262a1ab2bada56a.tar.gz
Increase bpf stack size and add -g to pass compilation
Error1: external/bcc/libbpf-tools/runqlat.bpf.c:88:17: error: using builtin_preserve_access_index() without -g Error2: external/bcc/libbpf-tools/cpudist.bpf.c:70:3: error: Looks like the BPF stack limit is exceeded. Please move large on stack variables into BPF per-cpu array map. For non-kernel uses, the stack can be increased using -mllvm -bpf-stack-size. Bug: b/308826679 Change-Id: I832c71fe6eb60603b4dc91295d9f8e25207eed37
-rw-r--r--libbpf-tools/Android.bp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libbpf-tools/Android.bp b/libbpf-tools/Android.bp
index 8bf6064d..d7602bcc 100644
--- a/libbpf-tools/Android.bp
+++ b/libbpf-tools/Android.bp
@@ -37,6 +37,8 @@ cc_defaults {
"-Wno-pointer-arith",
"-Wno-unused-command-line-argument",
"-Wno-unused-parameter",
+ "-mllvm -bpf-stack-size=1024",
+ "-g",
],
header_libs: [
"bpf_prog_headers",