From: Mathieu Desnoyers Date: Sat, 27 Oct 2018 19:33:02 +0000 (+0100) Subject: statedump cpu topology: introduce LTTNG_HAVE_STATEDUMP_CPU_TOPOLOGY X-Git-Tag: v2.12.0-pre~105 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=d0b55e4c36990120862226d239322118618fc7f1;p=lttng-modules.git statedump cpu topology: introduce LTTNG_HAVE_STATEDUMP_CPU_TOPOLOGY Signed-off-by: Mathieu Desnoyers --- diff --git a/instrumentation/events/lttng-module/lttng-statedump.h b/instrumentation/events/lttng-module/lttng-statedump.h index 7ca94a60..14ec1277 100644 --- a/instrumentation/events/lttng-module/lttng-statedump.h +++ b/instrumentation/events/lttng-module/lttng-statedump.h @@ -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), diff --git a/lttng-statedump-impl.c b/lttng-statedump-impl.c index 8c737f9b..6d91a2c1 100644 --- a/lttng-statedump-impl.c +++ b/lttng-statedump-impl.c @@ -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) {