statedump cpu topology: introduce LTTNG_HAVE_STATEDUMP_CPU_TOPOLOGY
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 27 Oct 2018 19:33:02 +0000 (20:33 +0100)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 27 Oct 2018 19:33:02 +0000 (20:33 +0100)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
instrumentation/events/lttng-module/lttng-statedump.h
lttng-statedump-impl.c

index 7ca94a60cf0e930b9819c305dd7ad984cb24390a..14ec12779199d2762c16b2ac4f942ab9e85783a2 100644 (file)
@@ -140,6 +140,9 @@ LTTNG_TRACEPOINT_EVENT(lttng_statedump_interrupt,
 )
 
 #if defined(CONFIG_X86_32) || defined(CONFIG_X86_64)
+
+#define LTTNG_HAVE_STATEDUMP_CPU_TOPOLOGY
+
 LTTNG_TRACEPOINT_EVENT(lttng_statedump_cpu_topology,
        TP_PROTO(struct lttng_session *session, struct cpuinfo_x86 *c),
        TP_ARGS(session, c),
index 8c737f9b9f13d45c3b2799a6a1ab9228b0aa9d7c..6d91a2c1d28dea1374a427b465e25d0567e294b8 100644 (file)
@@ -63,7 +63,7 @@ DEFINE_TRACE(lttng_statedump_file_descriptor);
 DEFINE_TRACE(lttng_statedump_start);
 DEFINE_TRACE(lttng_statedump_process_state);
 DEFINE_TRACE(lttng_statedump_network_interface);
-#if defined(CONFIG_X86_32) || defined(CONFIG_X86_64)
+#ifdef LTTNG_HAVE_STATEDUMP_CPU_TOPOLOGY
 DEFINE_TRACE(lttng_statedump_cpu_topology);
 #endif
 
@@ -282,7 +282,7 @@ int lttng_enumerate_file_descriptors(struct lttng_session *session)
        return 0;
 }
 
-#if defined(CONFIG_X86_32) || defined(CONFIG_X86_64)
+#ifdef LTTNG_HAVE_STATEDUMP_CPU_TOPOLOGY
 static
 int lttng_enumerate_cpu_topology(struct lttng_session *session)
 {
This page took 0.027101 seconds and 4 git commands to generate.