From 671c625bcec1e67296ad3f6227a8c490689ec02b Mon Sep 17 00:00:00 2001 From: pmf Date: Tue, 27 Nov 2007 16:42:31 +0000 Subject: [PATCH] resourceview: display IRQ descriptions git-svn-id: http://ltt.polymtl.ca/svn@2759 04897980-b3bd-0310-b5e0-8ef037075253 --- .../poly/lttv/modules/gui/resourceview/eventhooks.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ltt/branches/poly/lttv/modules/gui/resourceview/eventhooks.c b/ltt/branches/poly/lttv/modules/gui/resourceview/eventhooks.c index 4fa5db7b..71d5553e 100644 --- a/ltt/branches/poly/lttv/modules/gui/resourceview/eventhooks.c +++ b/ltt/branches/poly/lttv/modules/gui/resourceview/eventhooks.c @@ -828,6 +828,15 @@ int before_execmode_hook_irq(void *hook_data, void *call_data) ProcessList *process_list = resourceview_data->process_list; hashed_process_data = resourcelist_obtain_irq(resourceview_data, trace_num, irq); + // TODO: fix this, it's ugly and slow: + GQuark name; + { + gchar *str; + str = g_strdup_printf("IRQ %llu [%s]", irq, (char*)g_quark_to_string(ts->irq_names[irq])); + name = g_quark_from_string(str); + g_free(str); + } + gtk_tree_store_set(resourceview_data->process_list->list_store, &hashed_process_data->y_iter, NAME_COLUMN, g_quark_to_string(name), -1); /* Now, the process is in the state hash and our own process hash. * We definitely can draw the items related to the ending state. -- 2.34.1