*/
#include "frontend.h"
-#include "ust/core.h"
#include <urcu-bp.h>
#include <urcu/compiler.h>
int cpu, nesting;
rcu_read_lock();
- cpu = ust_get_cpu();
+ cpu = lttng_ust_get_cpu();
nesting = ++lib_ring_buffer_nesting; /* TLS */
cmm_barrier();
*/
//prefetch(&buf->commit_hot[subbuf_index(*o_begin, chan)]);
+ /*
+ * Because we don't use any timer in the application, we
+ * currently cannot guarantee that we have frequent
+ * events that let us detect 27-bit overflows.
+ * Therefore, for now, we force event headers
+ * to contain 64-bit timestamps.
+ */
+ ctx->rflags |= RING_BUFFER_RFLAG_FULL_TSC;
+#if 0
if (last_tsc_overflow(config, buf, ctx->tsc))
ctx->rflags |= RING_BUFFER_RFLAG_FULL_TSC;
+#endif //0
if (caa_unlikely(subbuf_offset(*o_begin, chan) == 0))
return 1;