summaryrefslogtreecommitdiffhomepage
path: root/tools/trace/example/callback.py
diff options
context:
space:
mode:
authorNélio Laranjeiro2009-07-13 16:56:36 +0200
committerNélio Laranjeiro2009-07-13 16:56:36 +0200
commitbc6e46cce9e2f6e4555a2c6cff1521a522156c6d (patch)
treecb36983f58beaa124d2ea081e8f902a8727d40b3 /tools/trace/example/callback.py
parent41813460998b22f7ea3ac35ae6f8f9cda3886ac9 (diff)
*tools/trace:
* 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/callback.py')
-rw-r--r--tools/trace/example/callback.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/trace/example/callback.py b/tools/trace/example/callback.py
new file mode 100644
index 00000000..84876016
--- /dev/null
+++ b/tools/trace/example/callback.py
@@ -0,0 +1,4 @@
+def ia (data):
+ string = "\"IA arg1: %d arg2: %d arg3: %d\""
+ string = string % tuple (data)
+ return string