tracepoint.h has the proper extern C guards, so every liblttng-ust API
called from the probe has the proper linkage.
The rest of the symbols are only meaningful within the probe, so we
don't care if they are mangled or not.
This fixes all UST applications in tests/
Fixes #597
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
13 files changed:
#if !defined(_TRACEPOINT_TP_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
#define _TRACEPOINT_TP_H
#if !defined(_TRACEPOINT_TP_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
#define _TRACEPOINT_TP_H
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*
* Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
/*
* Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
/* This part must be outside ifdef protection */
#include <lttng/tracepoint-event.h>
/* This part must be outside ifdef protection */
#include <lttng/tracepoint-event.h>
-
-#ifdef __cplusplus
-}
-#endif
#undef TRACEPOINT_PROVIDER
#define TRACEPOINT_PROVIDER ust_tests_exitfast
#undef TRACEPOINT_PROVIDER
#define TRACEPOINT_PROVIDER ust_tests_exitfast
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
#if !defined(_TRACEPOINT_UST_TESTS_EXITFAST_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
#define _TRACEPOINT_UST_TESTS_EXITFAST_H
#if !defined(_TRACEPOINT_UST_TESTS_EXITFAST_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
#define _TRACEPOINT_UST_TESTS_EXITFAST_H
#define TRACEPOINT_INCLUDE "./ust_tests_exitfast.h"
#include <lttng/tracepoint-event.h>
#define TRACEPOINT_INCLUDE "./ust_tests_exitfast.h"
#include <lttng/tracepoint-event.h>
-
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
#if !defined(_TRACEPOINT_TP_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
#define _TRACEPOINT_TP_H
#if !defined(_TRACEPOINT_TP_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
#define _TRACEPOINT_TP_H
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*
* Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
/*
* Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
/* This part must be outside ifdef protection */
#include <lttng/tracepoint-event.h>
/* This part must be outside ifdef protection */
#include <lttng/tracepoint-event.h>
-
-#ifdef __cplusplus
-}
-#endif
#if !defined(_TRACEPOINT_UST_TESTS_DEMO_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
#define _TRACEPOINT_UST_TESTS_DEMO_H
#if !defined(_TRACEPOINT_UST_TESTS_DEMO_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
#define _TRACEPOINT_UST_TESTS_DEMO_H
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*
* Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
/*
* Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
/* This part must be outside ifdef protection */
#include <lttng/tracepoint-event.h>
/* This part must be outside ifdef protection */
#include <lttng/tracepoint-event.h>
-
-#ifdef __cplusplus
-}
-#endif
#if !defined(_TRACEPOINT_UST_TESTS_DEMO2_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
#define _TRACEPOINT_UST_TESTS_DEMO2_H
#if !defined(_TRACEPOINT_UST_TESTS_DEMO2_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
#define _TRACEPOINT_UST_TESTS_DEMO2_H
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*
* Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
/*
* Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
/* This part must be outside ifdef protection */
#include <lttng/tracepoint-event.h>
/* This part must be outside ifdef protection */
#include <lttng/tracepoint-event.h>
-
-#ifdef __cplusplus
-}
-#endif
#if !defined(_TRACEPOINT_UST_TESTS_DEMO3_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
#define _TRACEPOINT_UST_TESTS_DEMO3_H
#if !defined(_TRACEPOINT_UST_TESTS_DEMO3_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
#define _TRACEPOINT_UST_TESTS_DEMO3_H
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*
* Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
/*
* Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
/* This part must be outside ifdef protection */
#include <lttng/tracepoint-event.h>
/* This part must be outside ifdef protection */
#include <lttng/tracepoint-event.h>
-
-#ifdef __cplusplus
-}
-#endif
#if !defined(_TRACEPOINT_TP_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
#define _TRACEPOINT_TP_H
#if !defined(_TRACEPOINT_TP_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
#define _TRACEPOINT_TP_H
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*
* Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
/*
* Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
/* This part must be outside ifdef protection */
#include <lttng/tracepoint-event.h>
/* This part must be outside ifdef protection */
#include <lttng/tracepoint-event.h>
-
-#ifdef __cplusplus
-}
-#endif
#if !defined(_TRACEPOINT_UST_GEN_NEVENTS_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
#define _TRACEPOINT_UST_GEN_NEVENTS_H
#if !defined(_TRACEPOINT_UST_GEN_NEVENTS_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
#define _TRACEPOINT_UST_GEN_NEVENTS_H
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*
* Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
/*
* Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
/* This part must be outside ifdef protection */
#include <lttng/tracepoint-event.h>
/* This part must be outside ifdef protection */
#include <lttng/tracepoint-event.h>
-
-#ifdef __cplusplus
-}
-#endif
#if !defined(_TRACEPOINT_UST_TESTS_DEMO_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
#define _TRACEPOINT_UST_TESTS_DEMO_H
#if !defined(_TRACEPOINT_UST_TESTS_DEMO_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
#define _TRACEPOINT_UST_TESTS_DEMO_H
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*
* Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
/*
* Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
/* This part must be outside ifdef protection */
#include <lttng/tracepoint-event.h>
/* This part must be outside ifdef protection */
#include <lttng/tracepoint-event.h>
-
-#ifdef __cplusplus
-}
-#endif
#if !defined(_TRACEPOINT_UST_TESTS_DEMO2_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
#define _TRACEPOINT_UST_TESTS_DEMO2_H
#if !defined(_TRACEPOINT_UST_TESTS_DEMO2_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
#define _TRACEPOINT_UST_TESTS_DEMO2_H
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*
* Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
/*
* Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
/* This part must be outside ifdef protection */
#include <lttng/tracepoint-event.h>
/* This part must be outside ifdef protection */
#include <lttng/tracepoint-event.h>
-
-#ifdef __cplusplus
-}
-#endif
#if !defined(_TRACEPOINT_UST_TESTS_DEMO3_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
#define _TRACEPOINT_UST_TESTS_DEMO3_H
#if !defined(_TRACEPOINT_UST_TESTS_DEMO3_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
#define _TRACEPOINT_UST_TESTS_DEMO3_H
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*
* Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
/*
* Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
/* This part must be outside ifdef protection */
#include <lttng/tracepoint-event.h>
/* This part must be outside ifdef protection */
#include <lttng/tracepoint-event.h>
-
-#ifdef __cplusplus
-}
-#endif
#if !defined(_TRACEPOINT_TP_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
#define _TRACEPOINT_TP_H
#if !defined(_TRACEPOINT_TP_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
#define _TRACEPOINT_TP_H
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*
* Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
/*
* Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
/* This part must be outside ifdef protection */
#include <lttng/tracepoint-event.h>
/* This part must be outside ifdef protection */
#include <lttng/tracepoint-event.h>
-
-#ifdef __cplusplus
-}
-#endif
#if !defined(_TRACEPOINT_TP_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
#define _TRACEPOINT_TP_H
#if !defined(_TRACEPOINT_TP_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
#define _TRACEPOINT_TP_H
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*
* Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
/*
* Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
/* This part must be outside ifdef protection */
#include <lttng/tracepoint-event.h>
/* This part must be outside ifdef protection */
#include <lttng/tracepoint-event.h>
-
-#ifdef __cplusplus
-}
-#endif