aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJohn Ogness <[email protected]>2021-01-13 15:48:34 +0106
committerPetr Mladek <[email protected]>2021-01-15 11:30:03 +0100
commit668af87f995b6d6d09595c088ad1fb5dd9ff25d2 (patch)
tree45dd411f4de2f3e058c5349ea06ffccf3d121308 /tools/perf/scripts/python
parentb031a684bfd01d633c79d281bd0cf11c2f834ada (diff)
printk: ringbuffer: fix line counting
Counting text lines in a record simply involves counting the number of newline characters (+1). However, it is searching the full data block for newline characters, even though the text data can be (and often is) a subset of that area. Since the extra area in the data block was never initialized, the result is that extra newlines may be seen and counted. Restrict newline searching to the text data length. Fixes: b6cf8b3f3312 ("printk: add lockless ringbuffer") Signed-off-by: John Ogness <[email protected]> Reviewed-by: Petr Mladek <[email protected]> Acked-by: Sergey Senozhatsky <[email protected]> Signed-off-by: Petr Mladek <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions