convert from svn repository: remove tags directory
[lttv.git] / trunk / lttv / lttv / lttv / print.c
index 95c09ead0d26da6ec079a018fce736a637eca674..b303900a216b7328761bd7bc6e02d90e1c1c72e8 100644 (file)
@@ -62,14 +62,18 @@ static inline void print_enum_events(LttEvent *e, struct marker_field *f,
                && f->name == LTT_FIELD_SOFT_IRQ_ID) {
       g_string_append_printf(s, " [%s]",
         g_quark_to_string(ts->soft_irq_names[value]));
+    } else if (info->name == LTT_EVENT_KPROBE
+               && f->name == LTT_FIELD_IP) {
+#if (__SIZEOF_LONG__ == 4)
+      GQuark symbol = (GQuark)g_hash_table_lookup(ts->kprobe_hash,
+                                          (gconstpointer)&value);
+#else
+      GQuark symbol = (GQuark)g_hash_table_lookup(ts->kprobe_hash,
+                                          (gconstpointer)value);
+#endif
+      if (symbol)
+        g_string_append_printf(s, " [%s]", g_quark_to_string(symbol));
     }
-/* TODO : implement hash table.
-      else if (info->name == LTT_EVENT_KPROBE
-               && f->name = LTT_FIELD_IP) {
-      g_string_append_printf(s, " [%s]",
-        g_quark_to_string(ts->kprobe_symbols[value]));
-    }
-*/
   }
 }
 
This page took 0.024715 seconds and 4 git commands to generate.