diff options
| author | John Ogness <[email protected]> | 2021-03-03 10:15:19 +0000 |
|---|---|---|
| committer | Petr Mladek <[email protected]> | 2021-03-08 10:43:09 +0000 |
| commit | 4260e0e5510158d704898603331e5365ebe957de (patch) | |
| tree | 41aeee1ceed4a13329ff602ef230d68a9b643b8c /tools/perf/scripts/python/sctop.py | |
| parent | printk: refactor kmsg_dump_get_buffer() (diff) | |
| download | kernel-4260e0e5510158d704898603331e5365ebe957de.tar.gz kernel-4260e0e5510158d704898603331e5365ebe957de.zip | |
printk: consolidate kmsg_dump_get_buffer/syslog_print_all code
The logic for finding records to fit into a buffer is the same for
kmsg_dump_get_buffer() and syslog_print_all(). Introduce a helper
function find_first_fitting_seq() to handle this logic.
Signed-off-by: John Ogness <[email protected]>
Reviewed-by: Petr Mladek <[email protected]>
Signed-off-by: Petr Mladek <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions
