-
-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a bunch of TRACE_FUNC and make sure DEBUG calls can inject their …
…output to kmesg DEBUG function modified to split on last space before reaching safe max 960 characters This max characters lenght to be passed to kmesg was roughtly determined by PREFIX_MAX taken into consideration for LOG_LINE_MAX of printk of oldest 5.5.x kernel we need to respect: grep: build/ppc64/linux-5.5/linux-talos-2/source: warning: recursive directory loop build/ppc64/linux-5.5/kernel/printk/printk.c:446:#define PREFIX_MAX 48 build/ppc64/linux-5.5/kernel/printk/printk.c:448:#define PREFIX_MAX 32 build/ppc64/linux-5.5/kernel/printk/printk.c:450:#define LOG_LINE_MAX (1024 - PREFIX_MAX) build/ppc64/linux-5.5/kernel/printk/printk.c:1315: char prefix[PREFIX_MAX]; build/ppc64/linux-5.5/kernel/printk/printk.c:1356: text = kmalloc(LOG_LINE_MAX + PREFIX_MAX, GFP_KERNEL); build/ppc64/linux-5.5/kernel/printk/printk.c:1386: LOG_LINE_MAX + PREFIX_MAX); build/ppc64/linux-5.5/kernel/printk/printk.c:1428: text = kmalloc(LOG_LINE_MAX + PREFIX_MAX, GFP_KERNEL); build/ppc64/linux-5.5/kernel/printk/printk.c:1466: LOG_LINE_MAX + PREFIX_MAX); build/ppc64/linux-5.5/kernel/printk/printk.c:2066:#define PREFIX_MAX 0 build/ppc64/linux-5.5/kernel/printk/printk.c:2370: static char text[LOG_LINE_MAX + PREFIX_MAX]; build/ppc64/linux-5.5/include/uapi/linux/rtnetlink.h:552: __PREFIX_MAX build/ppc64/linux-5.5/include/uapi/linux/rtnetlink.h:555:#define PREFIX_MAX (__PREFIX_MAX - 1) build/ppc64/linux-5.5/linux-5.5/linux-talos-2/usr/include/linux/rtnetlink.h:552: __PREFIX_MAX build/ppc64/linux-5.5/linux-5.5/linux-talos-2/usr/include/linux/rtnetlink.h:555:#define PREFIX_MAX (__PREFIX_MAX - 1) Each DEBUG call also adds "DEBUG: " leaving us to a safe 960 char limit to respect and wrap around. Otherwise, calling DEBUG fails from scripts setting "set -e -o pipefail" Signed-off-by: Thierry Laurion <[email protected]>
- Loading branch information
Showing
4 changed files
with
17 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters