path: root/tools/trace/example/
diff options
authorNélio Laranjeiro2009-07-13 16:56:36 +0200
committerNélio Laranjeiro2009-07-13 16:56:36 +0200
commitbc6e46cce9e2f6e4555a2c6cff1521a522156c6d (patch)
treecb36983f58beaa124d2ea081e8f902a8727d40b3 /tools/trace/example/
parent41813460998b22f7ea3ac35ae6f8f9cda3886ac9 (diff)
* Added the possibility to add a callback file containing the function to decode traces. See the example/trace.trc to use it, the file containing the callback must be provided using the -c option in the interpretor.
Diffstat (limited to 'tools/trace/example/')
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/trace/example/ b/tools/trace/example/
new file mode 100644
index 00000000..84876016
--- /dev/null
+++ b/tools/trace/example/
@@ -0,0 +1,4 @@
+def ia (data):
+ string = "\"IA arg1: %d arg2: %d arg3: %d\""
+ string = string % tuple (data)
+ return string