Lines Matching defs:seqno
10 * - can write to /dev/kmsg and message seqno grows
114 unsigned long *seqno)
120 if (seqno)
121 *seqno = s;
279 unsigned long prefix, seqno, seqno_last = 0;
305 if (get_msg_fields(tmp, &prefix, &seqno) != 0) {
315 if (seqno > seqno_last) {
316 seqno_last = seqno;
318 tst_res(TFAIL, "seqno doesn't grow: %lu, "
319 "last: %lu", seqno, seqno_last);
330 unsigned long seqno[NUM_READ_MSGS + 1];
346 if (get_msg_fields(msg, NULL, &seqno[i]) != 0)
372 if (seqno[i] != seqno[i + 1])
379 tst_res(TINFO, "msg%d: %lu", i, seqno[i]);
387 unsigned long first_seqno = 0, seqno;
391 * We know first message is overwritten when its seqno changes */
398 tst_res(TINFO, "first seqno: %lu", first_seqno);
405 || get_msg_fields(msg, NULL, &seqno) != 0) {
409 if (first_seqno != seqno) {
411 tst_res(TINFO, "first seqno now: %lu", seqno);
438 static int read_msg_seqno(int fd, unsigned long *seqno)
449 if (get_msg_fields(msg, NULL, seqno) != 0) {
461 unsigned long seqno[2], tmp;
486 if (read_msg_seqno(fd, &seqno[0]))
495 if (read_msg_seqno(fd, &seqno[1]))
510 if (seqno[0] != seqno[1]) {
512 seqno[0], seqno[1]);