Also fix irq and softirq in resourceview
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Fri, 15 May 2009 12:39:28 +0000 (12:39 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Fri, 15 May 2009 12:39:28 +0000 (12:39 +0000)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
git-svn-id: http://ltt.polymtl.ca/svn@3382 04897980-b3bd-0310-b5e0-8ef037075253

trunk/lttv/lttv/modules/gui/resourceview/eventhooks.c

index c6cb2550d8f41f7d44722535b28d14abab8a178c..0befc8a78f052951181647e0459bb8dc8507d2b0 100644 (file)
@@ -847,6 +847,8 @@ int before_execmode_hook_irq(void *hook_data, void *call_data)
     irq = ltt_event_get_long_unsigned(e, lttv_trace_get_hook_field(th, 0));
   } else if (minfo->name == LTT_EVENT_IRQ_EXIT) {
     irq = ts->cpu_states[cpu].last_irq;
+    if (irq == -1)
+      return 0;
   } else
     return 0;
 
@@ -1027,6 +1029,8 @@ int before_execmode_hook_soft_irq(void *hook_data, void *call_data)
     softirq = ltt_event_get_long_unsigned(e, lttv_trace_get_hook_field(th, 0));
   } else if (minfo->name == LTT_EVENT_SOFT_IRQ_EXIT) {
     softirq = ts->cpu_states[cpu].last_soft_irq;
+    if (softirq == -1)
+      return 0;
   } else
     return 0;
 
This page took 0.02467 seconds and 4 git commands to generate.