Zack's Kernel News

Zack's Kernel News

Article from Issue 240/2020
Author(s):

Chronicler Zack Brown reports on a stone so large..., a global stats-gathering interface, and the Kernel development process.

A Stone So Large …

A lot of kernel patches just fix little things or make something slightly more convenient for system administrators and kernel developers. Recently, Joe Perches pointed out that the Arm architecture could conceivably invoke the Linux kernel with a command line that was longer than what printk() was able to output. So you could launch the kernel, but you couldn't then go back and see exactly how you'd done it.

He posted a patch to split long lines up so that printk() could output them.

Sergey Senozhatsky liked the overall idea, but pointed out a bug in Joe's code – he noted that printk() would also output a bit of prefix text, to let the user know what was being output. In this case, the prefix was "Kernel command line". Sergey reported that Joe's patch neglected to take the length of that prefix text into account when seeing whether the full output string was over the maximum size. So the text could still be slightly too big for printk(). Joe agreed and fixed it.

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Kernel News

    Zack Brown discusses preventing the kernel from tainting, encrypting printk() output, and a new kernel bug reporting bot. 

  • Kernel News

    Chronicler Zack Brown reports on printk() wrangling, persistent memory as a generalized resource, making Kernel headers available on running systems, and Kernel licensing Hell. 

  • Kernel News

    This month in Kernel News: Shared Processes with Hyper-Threading; Cleaning Up printk(); and Rust in the Kernel.

  • Performance Tools

    We describe five tools you can use to monitor and troubleshoot your system's performance.

  • Kernel News

    Chronicler Zack Brown reports on the latest news, views, dilemmas, and developments within the Linux kernel community.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News