resourceview: display IRQ descriptions
authorpmf <pmf@04897980-b3bd-0310-b5e0-8ef037075253>
Tue, 27 Nov 2007 16:42:31 +0000 (16:42 +0000)
committerpmf <pmf@04897980-b3bd-0310-b5e0-8ef037075253>
Tue, 27 Nov 2007 16:42:31 +0000 (16:42 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@2759 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/lttv/modules/gui/resourceview/eventhooks.c

index 4fa5db7b5334175dcc8ab5a78966c1c3acf93798..71d5553e562a61e92dc48f6490ebd88bc9c5374b 100644 (file)
@@ -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.
This page took 0.024951 seconds and 4 git commands to generate.