diff options
author | Maciej Żenczykowski <maze@google.com> | 2023-03-07 01:11:20 +0000 |
---|---|---|
committer | Maciej Żenczykowski <maze@google.com> | 2023-03-07 01:11:48 +0000 |
commit | 509b1b90b9df05dc296b0ff6aadded9918f3d4a5 (patch) | |
tree | 677c87f057abc8e37091c3af54dfb0027eb3afe9 | |
parent | 8d8e166e469b3fc9a89b6da3996a10ea0289e9ac (diff) | |
download | bpf-509b1b90b9df05dc296b0ff6aadded9918f3d4a5.tar.gz |
reduce bpfloader boot log spam
Bug: 261472074
Test: TreeHugger
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I57b97ac7978c85913c52443d7efe40813146a2ba
-rw-r--r-- | libbpf_android/Loader.cpp | 9 |
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); |