summaryrefslogtreecommitdiff
path: root/blkparse_fmt.c
diff options
context:
space:
mode:
authorAlan D. Brunelle <alan.brunelle@hp.com>2008-05-27 08:19:57 -0400
committerAlan D. Brunelle <alan.brunelle@hp.com>2008-05-27 08:19:57 -0400
commit1a15f6a82d62babb9d2f04a7400ff316a666dd42 (patch)
treea86b8ba4795e7a2eab1b7cdc991ea16b3fc54877 /blkparse_fmt.c
parent5bebfd168c3f3f42acfd4a0263e9f4d1f5faea16 (diff)
downloadblktrace-1a15f6a82d62babb9d2f04a7400ff316a666dd42.tar.gz
blktrace-1a15f6a82d62babb9d2f04a7400ff316a666dd42.tar.bz2
Added in handling of MESSAGE notes
Sample output: 8,16 1 691118 17.417000000 0 C R 2660776 + 8 [0] 8,16 1 691119 17.417000000 0 D R 2660792 + 8 [swapper] 8,16 1 691120 17.417000000 4688 U N [dd] 42 8,16 1 0 17.418000000 0 m N elv switch: noop 8,16 1 691121 17.418000000 4638 C R 2660784 + 8 [0] 8,16 1 691122 17.418000000 4638 D R 2660800 + 8 [bash] 8,16 1 691123 17.418000000 4638 C R 2660792 + 8 [0] Thanks to Carl Henrik Lunde <chlunde@ping.uio.no> for adding in sequence printing & time-stamp correction.
Diffstat (limited to 'blkparse_fmt.c')
-rw-r--r--blkparse_fmt.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/blkparse_fmt.c b/blkparse_fmt.c
index 2f21f6b..364f27c 100644
--- a/blkparse_fmt.c
+++ b/blkparse_fmt.c
@@ -390,12 +390,16 @@ static void process_default(char *act, struct per_cpu_info *pci,
MAJOR(r.device), MINOR(r.device),
(unsigned long long) r.sector);
break;
-
+
case 'X': /* Split */
fprintf(ofp, "%llu / %u [%s]\n", (unsigned long long) t->sector,
get_pdu_int(t), name);
break;
+ case 'm': /* Message */
+ fprintf(ofp, "%*s\n", pdu_len, pdu_buf);
+ break;
+
default:
fprintf(stderr, "Unknown action %c\n", act[0]);
break;