Change __SIZEOF_LONG__ for __WORDSIZE
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Thu, 12 Nov 2009 22:43:31 +0000 (17:43 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Thu, 12 Nov 2009 22:43:31 +0000 (17:43 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
lttv/lttv/print.c
lttv/lttv/state.c

index f217b136e538b3a1a46b07402fff5e49ce02d49b..f0dabbccbddefffab9bb169055982abbc7b6031d 100644 (file)
@@ -65,7 +65,7 @@ static inline void print_enum_events(LttEvent *e, struct marker_field *f,
         g_quark_to_string(nt->soft_irq_names[value]));
     } else if (info->name == LTT_EVENT_KPROBE
                && f->name == LTT_FIELD_IP) {
-#if (__SIZEOF_LONG__ == 4)
+#if (__WORDSIZE == 32)
       GQuark symbol = (GQuark)g_hash_table_lookup(nt->kprobe_hash,
                                           (gconstpointer)&value);
 #else
index d65ee57f67ef5c78f0cdc11dcdd9b85eb11a687f..5c6f77c095c6f331d85183bc2f3653fcfa54b148 100644 (file)
@@ -232,7 +232,7 @@ static void bdevstate_free_cb(gpointer key, gpointer value, gpointer user_data);
 static LttvBdevState *bdevstate_copy(LttvBdevState *bds);
 
 
-#if (__SIZEOF_LONG__ == 4)
+#if (__WORDSIZE == 32)
 guint guint64_hash(gconstpointer key)
 {
        guint64 ukey = *(const guint64 *)key;
@@ -355,7 +355,7 @@ static void expand_syscall_table(LttvTraceState *ts, int id)
 static void expand_kprobe_table(LttvTraceState *ts, guint64 ip, char *symbol)
 {
   LttvNameTables *nt = ts->name_tables;
-#if (__SIZEOF_LONG__ == 4)
+#if (__WORDSIZE == 32)
   guint64 *ip_ptr = g_new(guint64, 1);
   g_hash_table_insert(nt->kprobe_hash, ip_ptr,
     (gpointer)(glong)g_quark_from_string(symbol));
@@ -2085,7 +2085,7 @@ create_name_tables(LttvTraceState *tcs)
 
   g_string_free(fe_name, TRUE);
 
-#if (__SIZEOF_LONG__ == 4)
+#if (__WORDSIZE == 32)
   name_tables->kprobe_hash = g_hash_table_new_full(guint64_hash, guint64_equal,
     g_free, NULL);
 #else
This page took 0.025637 seconds and 4 git commands to generate.