lkml.org 
[lkml]   [2020]   [Jul]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [printk] 18a2dc6982: ltp.kmsg01.fail
On (20/07/09 15:14), kernel test robot wrote:
[..]

Took me a while to find the FAIL-ed test:

> kmsg01.c:393: INFO: TEST: read returns EPIPE when messages get overwritten
> kmsg01.c:398: INFO: first seqno: 0
> kmsg01.c:411: INFO: first seqno now: 881
> kmsg01.c:425: FAIL: read returned: 77: SUCCESS (0)

So this is seq number related
https://github.com/linux-test-project/ltp/blob/master/testcases/kernel/logging/kmsg/kmsg01.c#L383

LTP writes a gazillion (roughly, maybe a bit less than that)
filler messages to /dev/kmsg in order to cause logbuf overlap:
...
19490 [ 172.301584] LTP kmsg01 FILLER MESSAGE TO OVERWRITE OTHERS
19491 [ 172.308730] LTP kmsg01 FILLER MESSAGE TO OVERWRITE OTHERS
19492 [ 172.313852] LTP kmsg01 FILLER MESSAGE TO OVERWRITE OTHERS
19493 [ 172.320988] LTP kmsg01 FILLER MESSAGE TO OVERWRITE OTHERS
19494 [ 172.325618] LTP kmsg01 FILLER MESSAGE TO OVERWRITE OTHERS
...

-ss

\
 
 \ /
  Last update: 2020-07-09 10:35    [W:0.412 / U:0.416 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site