summaryrefslogtreecommitdiff
path: root/blkparse.c
diff options
context:
space:
mode:
authorJens Axboe <jaxboe@fusionio.com>2011-08-03 15:06:18 +0200
committerJens Axboe <jaxboe@fusionio.com>2011-08-03 15:06:18 +0200
commitbc5f9ff87cb38ffa3b64ba607e535043eef06d14 (patch)
tree241627b88ed849148d09e2d61a1def44c1be8766 /blkparse.c
parentd0576a3a885b1b5fc6a47c35d9537d9717444238 (diff)
parent8e8bb835e375bd8cf0f01debff61f6bf467bb1ed (diff)
downloadblktrace-bc5f9ff87cb38ffa3b64ba607e535043eef06d14.tar.gz
blktrace-bc5f9ff87cb38ffa3b64ba607e535043eef06d14.tar.bz2
Merge branch 'master' of ssh://router.home.kernel.dk/data/git/blktrace
Diffstat (limited to 'blkparse.c')
-rw-r--r--blkparse.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/blkparse.c b/blkparse.c
index 8d5746f..12c7aae 100644
--- a/blkparse.c
+++ b/blkparse.c
@@ -2354,6 +2354,12 @@ static int ms_prime(struct ms_stream *msp)
if (verify_trace(bit))
goto err;
+ if (bit->cpu != pci->cpu) {
+ fprintf(stderr, "cpu %d trace info has error cpu %d\n",
+ pci->cpu, bit->cpu);
+ continue;
+ }
+
if (bit->action & BLK_TC_ACT(BLK_TC_NOTIFY) && bit->action != BLK_TN_MESSAGE) {
handle_notify(bit);
output_binary(bit, sizeof(*bit) + bit->pdu_len);