diff options
| author | h3288824963 <3288824963@qq.com> | 2026-03-17 18:57:11 +0800 |
|---|---|---|
| committer | Jonathan Corbet <corbet@lwn.net> | 2026-03-17 08:37:49 -0600 |
| commit | 04c612f6d7641dc563e8aac95649be6c888ba7db (patch) | |
| tree | d55fd3170bad5ae2b5c261bd00eeeeccbff6efba /tools/lib/python | |
| parent | 5e6df46dffb32342c4be6deb6f897363f207bf05 (diff) | |
Documentation: printk: Add section about avoiding lockups
Add a section 'Avoiding lockups from excessive printk() use' to
printk-basics.rst, explaining the risk of calling printk() in hot paths
with legacy consoles and suggesting alternatives.
The section covers:
- Rate-limited and one-time printing variants
- Log level filtering
- printk_deferred() for legacy consoles
- Porting to nbcon API (preferred solution)
- Using tracepoints for permanent debugging
This documentation is relevant only for legacy console drivers and
!PREEMPT_RT kernels.
Suggested-by: Petr Mladek <pmladek@suse.com>
Suggested-by: John Ogness <john.ogness@linutronix.de>
Signed-off-by: h3288824963 <3288824963@qq.com>
Reviewed-by: John Ogness <john.ogness@linutronix.de>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <tencent_FB5B7DCFFB10BCDE325397D1202226779D09@qq.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
