I made 2 small modifications to the previous patch : *) print time with more digits (to facilitate processing the output as fixed-width columns) *) if first clock tick not found, initialize time to 0 ms
diff to previously posted patch :
%------------------------------
--- ecos/packages/kernel/current/host/instr/dump_instr.c.patch1
2007-10-12 11:02:12.000000000 +0200
+++ ecos/packages/kernel/current/host/instr/dump_instr.c.patch2
2007-10-12 10:49:06.000000000 +0200
@@ -156,7 +156,7 @@
printf("%4d Record type 0x%04x, thread %2d, ",
cnt, record.type, record.thread);
#endif
- printf("time %10lld, arg1 0x%08x, arg2 0x%08x\n",
+ printf("time %12lld, arg1 0x%08x, arg2 0x%08x\n",
cvt_time(record.timestamp), record.arg1,
record.arg2);
@@ -170,6 +170,7 @@
if (findfirstclock) {
printf("first tick not found\r\n");
+ ticks = 0;
}
}
%----------------------------
Because the previous patch was not applied (yet), the full diff to
latest version in anoncvs is attached too.
Pieter-Jan Busschaert
dump_instr.diff
Description: Binary data
-- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
