summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Żenczykowski <maze@google.com>2023-03-08 02:30:28 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-03-08 02:30:28 +0000
commitf718a01dd2e001e91ca07215688cc381142eb721 (patch)
tree677c87f057abc8e37091c3af54dfb0027eb3afe9
parent9bbde576816787a8ae4ecca895c65cf289da209e (diff)
parent84bd7711b7903a1c3afeb47d96ffdc5e0f5217d8 (diff)
downloadbpf-f718a01dd2e001e91ca07215688cc381142eb721.tar.gz
reduce bpfloader boot log spam am: 509b1b90b9 am: 84bd7711b7
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/2473464 Change-Id: Ib0a8dfe11a1e9aae5ba90d13f344737189d4e188 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--libbpf_android/Loader.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/libbpf_android/Loader.cpp b/libbpf_android/Loader.cpp
index fddb1a7..99c160a 100644
--- a/libbpf_android/Loader.cpp
+++ b/libbpf_android/Loader.cpp
@@ -955,9 +955,12 @@ static void applyRelo(void* insnsPtr, Elf64_Addr offset, int fd) {
insnIndex = offset / sizeof(struct bpf_insn);
insn = &insns[insnIndex];
- ALOGD("applying relo to instruction at byte offset: %llu, "
- "insn offset %d, insn %llx",
- (unsigned long long)offset, insnIndex, *(unsigned long long*)insn);
+ // Occasionally might be useful for relocation debugging, but pretty spammy
+ if (0) {
+ ALOGD("applying relo to instruction at byte offset: %llu, "
+ "insn offset %d, insn %llx",
+ (unsigned long long)offset, insnIndex, *(unsigned long long*)insn);
+ }
if (insn->code != (BPF_LD | BPF_IMM | BPF_DW)) {
ALOGE("Dumping all instructions till ins %d", insnIndex);