From bc6e46cce9e2f6e4555a2c6cff1521a522156c6d Mon Sep 17 00:00:00 2001 From: NĂ©lio Laranjeiro Date: Mon, 13 Jul 2009 16:56:36 +0200 Subject: *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. --- tools/trace/example/callback.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 tools/trace/example/callback.py (limited to 'tools/trace/example/callback.py') 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 -- cgit v1.2.3