From 56f2af81debbc7d2b40b44c9ecfd9e3c3cdbff2c Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 22 Sep 2005 10:46:06 +0200 Subject: [PATCH] [PATCH] blkparse: fix some pc command dumping --- blkparse.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/blkparse.c b/blkparse.c index 64bcc91..4a37c05 100644 --- a/blkparse.c +++ b/blkparse.c @@ -1091,7 +1091,9 @@ static void log_pc(struct per_cpu_info *pci, struct blk_io_trace *t, char *act) static void dump_trace_pc(struct blk_io_trace *t, struct per_cpu_info *pci) { - switch (t->action & 0xffff) { + int act = t->action & 0xffff; + + switch (act) { case __BLK_TA_QUEUE: log_generic(pci, t, "Q"); break; @@ -1110,8 +1112,11 @@ static void dump_trace_pc(struct blk_io_trace *t, struct per_cpu_info *pci) case __BLK_TA_COMPLETE: log_pc(pci, t, "C"); break; + case __BLK_TA_INSERT: + log_pc(pci, t, "I"); + break; default: - fprintf(stderr, "Bad pc action %x\n", t->action); + fprintf(stderr, "Bad pc action %x\n", act); break; } } -- 2.25.1