From c40595d1ffa127cacb61ebbc4e56f46d4d9bfe3a Mon Sep 17 00:00:00 2001 From: compudj Date: Fri, 15 May 2009 12:39:28 +0000 Subject: [PATCH] Also fix irq and softirq in resourceview Signed-off-by: Mathieu Desnoyers git-svn-id: http://ltt.polymtl.ca/svn@3382 04897980-b3bd-0310-b5e0-8ef037075253 --- trunk/lttv/lttv/modules/gui/resourceview/eventhooks.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/trunk/lttv/lttv/modules/gui/resourceview/eventhooks.c b/trunk/lttv/lttv/modules/gui/resourceview/eventhooks.c index c6cb2550..0befc8a7 100644 --- a/trunk/lttv/lttv/modules/gui/resourceview/eventhooks.c +++ b/trunk/lttv/lttv/modules/gui/resourceview/eventhooks.c @@ -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; -- 2.34.1