From b9be4a00cd91015a0091ed5173f40538be5f4e09 Mon Sep 17 00:00:00 2001 From: "Bjoern B. Brandenburg" Date: Thu, 17 Feb 2011 21:55:49 -0500 Subject: show non-consecutive sequence numbers --- src/ftdump.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ftdump.c') diff --git a/src/ftdump.c b/src/ftdump.c index e7b5064..b955a5b 100644 --- a/src/ftdump.c +++ b/src/ftdump.c @@ -29,10 +29,14 @@ static void dump(struct timestamp* ts, size_t count) { struct timestamp *x; + unsigned int last_seq = 0; const char* name; while (count--) { x = ts++; name = event2str(x->event); + if (last_seq && last_seq + 1 != x->seq_no) + printf("==== non-consecutive sequence number ====\n"); + last_seq = x->seq_no; if (name) printf("%-15s %-8s seq:%u cpu:%d timestamp:%llu\n", name, task_type2str(x->task_type), x->seq_no, x->cpu, x->timestamp); -- cgit v1.2.2