//ust// #include <linux/ltt-tracer.h>
#include <string.h>
#include <stdint.h>
+
#include "kernelcompat.h"
+#define _LGPL_SOURCE
+#include <urcu.h>
+
#include "relay.h"
#include "tracer.h"
-#include "list.h"
+//#include "list.h"
#include "usterr.h"
enum ltt_type {
if (unlikely(ltt_traces.num_active_traces == 0))
return;
- rcu_read_lock_sched_notrace();
+ rcu_read_lock(); //ust// rcu_read_lock_sched_notrace();
cpu = smp_processor_id();
//ust// __get_cpu_var(ltt_nesting)++;
ltt_nesting++;
va_end(args_copy);
/* Out-of-order commit */
ltt_commit_slot(channel, &transport_data, buf_offset,
- slot_size);
+ data_size, slot_size);
printf("just commited event at offset %d and size %d\n", buf_offset, slot_size);
}
//ust// __get_cpu_var(ltt_nesting)--;
ltt_nesting--;
- rcu_read_unlock_sched_notrace();
+ rcu_read_unlock(); //ust// rcu_read_unlock_sched_notrace();
}
EXPORT_SYMBOL_GPL(ltt_vtrace);