summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorJohn Ogness <john.ogness@linutronix.de>2023-01-09 11:13:59 +0106
committerPetr Mladek <pmladek@suse.com>2023-01-11 15:35:12 +0100
commitea308da1198f8ca9de6e4ff7f22120e27d4e6338 (patch)
tree0968f1f55c9ba80b3109983e6d248073223d2c92 /tools/perf/scripts/python/bin
parentc4fcc617e148791fc45fd33b124301cb596bcbf6 (diff)
downloadkernel-ea308da1198f8ca9de6e4ff7f22120e27d4e6338.tar.gz
printk: use printk_buffers for devkmsg
Replace the buffers in struct devkmsg_user with a struct printk_buffers. This reduces the number of buffers to keep track of. As a side-effect, @text_buf was 8kB large, even though it only needed to be the max size of a ringbuffer record. By switching to struct printk_buffers, ~7kB less memory is allocated when opening /dev/kmsg. And since struct printk_buffers will be used now, reduce duplicate code by calling printk_get_next_message() to handle the record reading and formatting. Note that since /dev/kmsg never suppresses records based on loglevel, printk_get_next_message() is extended with an extra bool argument to specify if suppression is allowed. Signed-off-by: John Ogness <john.ogness@linutronix.de> Reviewed-by: Petr Mladek <pmladek@suse.com> Signed-off-by: Petr Mladek <pmladek@suse.com> Link: https://lore.kernel.org/r/20230109100800.1085541-8-john.ogness@linutronix.de
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
dlerStephen Hemminger 2010-05-16ext4: Use bitops to read/modify i_flags in struct ext4_inode_infoDmitry Monakhov 2010-05-16ext4: Convert calls of ext4_error() to EXT4_ERROR_INODE()Theodore Ts'o 2010-03-05Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jac...Linus Torvalds 2010-03-05dquot: cleanup space allocation / freeing routinesChristoph Hellwig 2010-02-15ext4: add missing error checking to ext4_expand_extra_isize_ea()Roel Kluin 2010-02-15ext4: move __func__ into a macro for ext4_warning, ext4_errorEric Sandeen 2010-01-24ext4: Use bitops to read/modify EXT4_I(inode)->i_stateTheodore Ts'o 2009-12-23ext4: Eliminate potential double free on error pathJulia Lawall 2009-12-16sanitize xattr handler prototypesChristoph Hellwig 2009-11-23ext4: call ext4_forget() from ext4_free_blocks()Theodore Ts'o 2009-11-15ext4: journal all modifications in ext4_xattr_set_handleEric Sandeen