Skip to content

Commit

Permalink
kernel: printk: Filter out LibBpfLoader information
Browse files Browse the repository at this point in the history
Since Android 12, Android BPF loader has been dumping its loading
information on a huge scale. They are hardly useful and only take
up the space of dmesg. Filter them out.

Signed-off-by: Tashfin Shakeer Rhythm <[email protected]>
  • Loading branch information
Tashar02 committed Jan 7, 2024
1 parent 4579c03 commit 341f358
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/printk/printk.c
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,7 @@ static ssize_t devkmsg_write(struct kiocb *iocb, struct iov_iter *from)

if (strstr(line, "healthd") || strstr(line, "logd") ||
strstr(line, "DM_DEV_STATUS") || strstr(line, "Untracked pid") ||
strstr(line, "usb_gadget"))
strstr(line, "usb_gadget") || strstr(line, "LibBpfLoader"))
return len;

printk_emit(facility, level, NULL, 0, "%s", line);
Expand Down

0 comments on commit 341f358

Please sign in to comment.