No description
Find a file
Sergey Senozhatsky 96928d9032 seq_buf: Add seq_buf_do_printk() helper
Sometimes we use seq_buf to format a string buffer, which
we then pass to printk(). However, in certain situations
the seq_buf string buffer can get too big, exceeding the
PRINTKRB_RECORD_MAX bytes limit, and causing printk() to
truncate the string.

Add a new seq_buf helper. This helper prints the seq_buf
string buffer line by line, using \n as a delimiter,
rather than passing the whole string buffer to printk()
at once.

Link: https://lkml.kernel.org/r/20230415100110.1419872-1-senozhatsky@chromium.org

Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Tested-by: Yosry Ahmed <yosryahmed@google.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
2023-04-25 21:03:14 -04:00
arch
block
certs
crypto
Documentation tracing/user_events: Update documentation for ABI 2023-03-29 06:52:09 -04:00
drivers
fs tracing/user_events: Track fork/exec/exit for mm lifetime 2023-03-29 06:52:08 -04:00
include seq_buf: Add seq_buf_do_printk() helper 2023-04-25 21:03:14 -04:00
init
io_uring
ipc
kernel tracing: Fix print_fields() for __dyn_loc/__rel_loc 2023-04-25 20:11:26 -04:00
lib seq_buf: Add seq_buf_do_printk() helper 2023-04-25 21:03:14 -04:00
LICENSES
mm
net
rust
samples tracing/user_events: Use write ABI in example 2023-03-29 06:52:09 -04:00
scripts leaking_addresses: also skip canonical ftrace path 2023-03-29 06:52:08 -04:00
security
sound
tools tracing/user_events: Add ABI self-test 2023-03-29 06:52:09 -04:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
.rustfmt.toml
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.