From: Pierre-Marc Fournier Date: Mon, 15 Jun 2009 17:57:19 +0000 (-0400) Subject: cleanups X-Git-Tag: v1.9.1~966 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=4268fdcdcb96f72e945f52b9f94f6ad841e297c9;p=lttng-ust.git cleanups --- diff --git a/libust/serialize.c b/libust/serialize.c index 04ece912..b8df1b3c 100644 --- a/libust/serialize.c +++ b/libust/serialize.c @@ -22,6 +22,7 @@ #include "kernelcompat.h" #define _LGPL_SOURCE #include +#include #include "relay.h" #include "tracer.h" @@ -587,7 +588,7 @@ notrace void ltt_vtrace(const struct marker *mdata, void *probe_data, struct ltt_serialize_closure closure; struct ltt_probe_private_data *private_data = call_data; void *serialize_private = NULL; - int cpu; +//ust// int cpu; unsigned int rflags; /* @@ -598,7 +599,7 @@ notrace void ltt_vtrace(const struct marker *mdata, void *probe_data, return; rcu_read_lock(); //ust// rcu_read_lock_sched_notrace(); - cpu = smp_processor_id(); +//ust// cpu = smp_processor_id(); //ust// __get_cpu_var(ltt_nesting)++; ltt_nesting++; diff --git a/libust/tracer.c b/libust/tracer.c index d3978a45..b0393e21 100644 --- a/libust/tracer.c +++ b/libust/tracer.c @@ -38,6 +38,8 @@ //ust// #include //ust// #include //ust// #include +#include + #include "kernelcompat.h" #include "tracercore.h" #include "tracer.h" diff --git a/share/kernelcompat.h b/share/kernelcompat.h index c03b4086..3c23ac99 100644 --- a/share/kernelcompat.h +++ b/share/kernelcompat.h @@ -188,14 +188,4 @@ static inline u32 trace_clock_freq_scale(void) } -/* LISTS */ - -#define list_add_rcu list_add -#define list_for_each_entry_rcu list_for_each_entry - - -#define EXPORT_SYMBOL_GPL(a) /*nothing*/ - -#define smp_processor_id() (-1) - #endif /* KERNELCOMPAT_H */