aboutsummaryrefslogtreecommitdiffstats
path: root/src/ftdump.c
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2011-02-17 18:58:18 -0500
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2011-02-17 18:58:18 -0500
commit26b6535eaa2750df407ec06a37d05aca6183e163 (patch)
treeea183da5cd79b5991376575205d7b28bc4a46c93 /src/ftdump.c
parent5ba03d45f4b90c25dd5537e0b173568274fd2a14 (diff)
add support for release latency; make ftdump a bit prettier
Diffstat (limited to 'src/ftdump.c')
-rw-r--r--src/ftdump.c10
1 files changed, 8 insertions, 2 deletions
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 @@
29static void dump(struct timestamp* ts, size_t count) 29static void dump(struct timestamp* ts, size_t count)
30{ 30{
31 struct timestamp *x; 31 struct timestamp *x;
32 const char* name;
32 while (count--) { 33 while (count--) {
33 x = ts++; 34 x = ts++;
34 printf("event:%d seq:%u cpu:%d type:%d\n", 35 name = event2str(x->event);
35 (int) x->event, x->seq_no, x->cpu, x->task_type); 36 if (name)
37 printf("%-15s %-8s seq:%u cpu:%d timestamp:%llu\n",
38 name, task_type2str(x->task_type), x->seq_no, x->cpu, x->timestamp);
39 else
40 printf("event:%d seq:%u cpu:%d type:%s\n",
41 (int) x->event, x->seq_no, x->cpu, task_type2str(x->task_type));
36 } 42 }
37} 43}
38 44