From 26b6535eaa2750df407ec06a37d05aca6183e163 Mon Sep 17 00:00:00 2001 From: "Bjoern B. Brandenburg" Date: Thu, 17 Feb 2011 18:58:18 -0500 Subject: add support for release latency; make ftdump a bit prettier --- src/ftdump.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/ftdump.c') diff --git a/src/ftdump.c b/src/ftdump.c index 599473b..e7b5064 100644 --- a/src/ftdump.c +++ b/src/ftdump.c @@ -29,10 +29,16 @@ static void dump(struct timestamp* ts, size_t count) { struct timestamp *x; + const char* name; while (count--) { x = ts++; - printf("event:%d seq:%u cpu:%d type:%d\n", - (int) x->event, x->seq_no, x->cpu, x->task_type); + name = event2str(x->event); + 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); + else + printf("event:%d seq:%u cpu:%d type:%s\n", + (int) x->event, x->seq_no, x->cpu, task_type2str(x->task_type)); } } -- cgit v1.2.2