Linux btrace development
 help / color / mirror / Atom feed
* bad trace magic
@ 2008-11-19 11:38 Martin Peschke
  2008-11-19 11:49 ` Jens Axboe
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Martin Peschke @ 2008-11-19 11:38 UTC (permalink / raw)
  To: linux-btrace

Hi,

I run across blktrace complaints about broken traces once in a while.
I have pimped up the debugging output in verify_trace():

  --- bad trace magic ---
  magic    0x00000000
  sequence 0x00000000
  time     0x0000000000000000
  sector   0x0000000000000000
  bytes	   0x65617407		<--- begin of trace (trace magic)
  action   0x000005b0
  pid      0x0000029c
  device   0x7c185ac0
  cpu      0x00000000
  error    0x0036
  pdu_len  0x18c0

  00000000 00000000 00000000 00000000 00000000 00000000
  65617407 000005b0 0000029c 7c185ac0 00000000 003618c0

  bad trace in /sys/kernel/debug/block/sdbm/trace1

Traces appear to get out of place by some bytes. The offset varies.


I have got a couple of questions:

Does blktrace stop processing of a trace stream in this case, doesn't
it?

Next I am going to dump the trace which precedes a broken trace.
Any better ideas how to debug this one?


Thanks,
Martin


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-11-26  9:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-19 11:38 bad trace magic Martin Peschke
2008-11-19 11:49 ` Jens Axboe
2008-11-19 12:43 ` Martin Peschke
2008-11-19 12:44 ` Jens Axboe
2008-11-19 15:00 ` Martin Peschke
2008-11-19 15:07 ` Jens Axboe
2008-11-19 17:41 ` Martin Peschke
2008-11-26  9:33 ` Martin Peschke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox