Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Only output backtracking information in log level 2

Backtracking information is very verbose, don't print it in log
level 1 to improve readability.

Signed-off-by: Christy Lee <christylee@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20211216213358.3374427-4-christylee@fb.com

authored by

Christy Lee and committed by
Alexei Starovoitov
496f3324 2e576648

+3 -3
+3 -3
kernel/bpf/verifier.c
··· 2398 2398 2399 2399 if (insn->code == 0) 2400 2400 return 0; 2401 - if (env->log.level & BPF_LOG_LEVEL) { 2401 + if (env->log.level & BPF_LOG_LEVEL2) { 2402 2402 verbose(env, "regs=%x stack=%llx before ", *reg_mask, *stack_mask); 2403 2403 verbose(env, "%d: ", idx); 2404 2404 print_bpf_insn(&cbs, insn, env->allow_ptr_leaks); ··· 2656 2656 DECLARE_BITMAP(mask, 64); 2657 2657 u32 history = st->jmp_history_cnt; 2658 2658 2659 - if (env->log.level & BPF_LOG_LEVEL) 2659 + if (env->log.level & BPF_LOG_LEVEL2) 2660 2660 verbose(env, "last_idx %d first_idx %d\n", last_idx, first_idx); 2661 2661 for (i = last_idx;;) { 2662 2662 if (skip_first) { ··· 2743 2743 new_marks = true; 2744 2744 reg->precise = true; 2745 2745 } 2746 - if (env->log.level & BPF_LOG_LEVEL) { 2746 + if (env->log.level & BPF_LOG_LEVEL2) { 2747 2747 verbose(env, "parent %s regs=%x stack=%llx marks:", 2748 2748 new_marks ? "didn't have" : "already had", 2749 2749 reg_mask, stack_mask);