summaryrefslogtreecommitdiff
path: root/cesar/common/tools/traceviewer/annotate/cpu.py
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/common/tools/traceviewer/annotate/cpu.py')
-rw-r--r--cesar/common/tools/traceviewer/annotate/cpu.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cesar/common/tools/traceviewer/annotate/cpu.py b/cesar/common/tools/traceviewer/annotate/cpu.py
index 3e64981fd3..a50a4a371d 100644
--- a/cesar/common/tools/traceviewer/annotate/cpu.py
+++ b/cesar/common/tools/traceviewer/annotate/cpu.py
@@ -3,7 +3,7 @@ import re
def annotate (trace):
re_switch = re.compile (r'^switch .*to sp=(.*)')
- re_enter = re.compile (r'^(isr|dsr|phy)')
+ re_enter = re.compile (r'^(isr|dsr|phy) [^ ]*[0-9]')
re_exit = re.compile (r'^(?:isr|dsr|phy) exit')
stack = [ ]
for t in trace.trace:
@@ -19,7 +19,7 @@ def annotate (trace):
# Handle stack.
m_switch = re_switch.search (t.text)
if m_switch:
- stack = [ m_switch.group (1) ]
+ stack = [ 'thread' ]
elif re_exit.search (t.text):
if stack:
stack.pop ()