From: Mathieu Desnoyers Date: Tue, 5 May 2015 19:42:37 +0000 (-0400) Subject: Fix: printk instrumentation: remove "condition" tracepoints X-Git-Tag: v2.7.0-rc1~23 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=47046cfcb4f3aa2df5047657889810c4cecddeea;p=lttng-modules.git Fix: printk instrumentation: remove "condition" tracepoints Signed-off-by: Mathieu Desnoyers --- diff --git a/instrumentation/events/lttng-module/printk.h b/instrumentation/events/lttng-module/printk.h index 77fe081b..488ac5b5 100644 --- a/instrumentation/events/lttng-module/printk.h +++ b/instrumentation/events/lttng-module/printk.h @@ -24,7 +24,7 @@ LTTNG_TRACEPOINT_EVENT_MAP(console, #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)) -LTTNG_TRACEPOINT_EVENT_CONDITION_MAP(console, +LTTNG_TRACEPOINT_EVENT_MAP(console, printk_console, @@ -33,8 +33,6 @@ LTTNG_TRACEPOINT_EVENT_CONDITION_MAP(console, TP_ARGS(log_buf, start, end, log_buf_len), - TP_CONDITION(start != end), - TP_FIELDS( ctf_sequence_text(char, msg, log_buf + start, size_t, end - start) @@ -43,7 +41,7 @@ LTTNG_TRACEPOINT_EVENT_CONDITION_MAP(console, #else /* (LINUX_VERSION_CODE < KERNEL_VERSION(3,5,0)) */ -LTTNG_TRACEPOINT_EVENT_CONDITION_MAP(console, +LTTNG_TRACEPOINT_EVENT_MAP(console, printk_console, @@ -52,8 +50,6 @@ LTTNG_TRACEPOINT_EVENT_CONDITION_MAP(console, TP_ARGS(log_buf, start, end, log_buf_len), - TP_CONDITION(start != end), - TP_FIELDS( /* * printk buffer is gathered from two segments on older kernels.