summaryrefslogtreecommitdiff
path: root/tools/trace/lib/traceclass.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/lib/traceclass.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/lib/traceclass.py')
-rw-r--r--tools/trace/lib/traceclass.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/trace/lib/traceclass.py b/tools/trace/lib/traceclass.py
index 4c194c73..27b9ba53 100644
--- a/tools/trace/lib/traceclass.py
+++ b/tools/trace/lib/traceclass.py
@@ -21,6 +21,7 @@ class TraceEvent:
self.__name = name
self.__param_list = list()
self.__string = ""
+ self.callback = None
def name (self):
return self.__name
@@ -28,7 +29,7 @@ class TraceEvent:
def param_add (self, name, length):
param = TraceParam (name, length)
self.__param_list.append(param)
-
+
def param_get (self, pos):
if pos <= len (self.__param_list):
return self.__param_list[pos]