Merge branch 'fix-utils-functions-visibility' into 'master'
Set symbols visibility to public for util functions See merge request micro-ROS/ros_tracing/ros2_tracing!104
This commit is contained in:
commit
e381a88b5d
10 changed files with 19 additions and 11 deletions
|
@ -14,7 +14,13 @@ endif()
|
||||||
|
|
||||||
find_package(ament_cmake_ros REQUIRED)
|
find_package(ament_cmake_ros REQUIRED)
|
||||||
|
|
||||||
option(TRACETOOLS_DISABLED "Explicitly disable support for tracing with LTTng" OFF)
|
if(WIN32)
|
||||||
|
set(DISABLED_DEFAULT ON)
|
||||||
|
else()
|
||||||
|
set(DISABLED_DEFAULT OFF)
|
||||||
|
endif()
|
||||||
|
option(TRACETOOLS_DISABLED "Explicitly disable support for tracing with LTTng" ${DISABLED_DEFAULT})
|
||||||
|
|
||||||
if(NOT TRACETOOLS_DISABLED)
|
if(NOT TRACETOOLS_DISABLED)
|
||||||
# Set TRACING_ENABLED if we can find lttng-ust
|
# Set TRACING_ENABLED if we can find lttng-ust
|
||||||
find_package(PkgConfig)
|
find_package(PkgConfig)
|
||||||
|
|
|
@ -18,11 +18,13 @@
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
|
||||||
|
#include "tracetools/visibility_control.hpp"
|
||||||
|
|
||||||
#define SYMBOL_UNKNOWN "UNKNOWN"
|
#define SYMBOL_UNKNOWN "UNKNOWN"
|
||||||
|
|
||||||
const char * _demangle_symbol(const char * mangled);
|
TRACETOOLS_PUBLIC const char * _demangle_symbol(const char * mangled);
|
||||||
|
|
||||||
const char * _get_symbol_funcptr(void * funcptr);
|
TRACETOOLS_PUBLIC const char * _get_symbol_funcptr(void * funcptr);
|
||||||
|
|
||||||
template<typename T, typename ... U>
|
template<typename T, typename ... U>
|
||||||
const char * get_symbol(std::function<T(U...)> f)
|
const char * get_symbol(std::function<T(U...)> f)
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<version>0.2.8</version>
|
<version>0.2.8</version>
|
||||||
<description>Tracing wrapper for ROS 2.</description>
|
<description>Tracing wrapper for ROS 2.</description>
|
||||||
<maintainer email="bedard.christophe@gmail.com">Christophe Bedard</maintainer>
|
<maintainer email="bedard.christophe@gmail.com">Christophe Bedard</maintainer>
|
||||||
<maintainer email="ingo.luetkebohle@de.bosch.com">Ingo Lütkebohle</maintainer>
|
<maintainer email="ingo.luetkebohle@de.bosch.com">Ingo Luetkebohle</maintainer>
|
||||||
<license>Apache 2.0</license>
|
<license>Apache 2.0</license>
|
||||||
<author email="ingo.luetkebohle@de.bosch.com">Ingo Lütkebohle</author>
|
<author email="ingo.luetkebohle@de.bosch.com">Ingo Lütkebohle</author>
|
||||||
<author email="fixed-term.christophe.bourquebedard@de.bosch.com">Christophe Bedard</author>
|
<author email="fixed-term.christophe.bourquebedard@de.bosch.com">Christophe Bedard</author>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<version>0.2.8</version>
|
<version>0.2.8</version>
|
||||||
<description>Launch integration for tracing.</description>
|
<description>Launch integration for tracing.</description>
|
||||||
<maintainer email="bedard.christophe@gmail.com">Christophe Bedard</maintainer>
|
<maintainer email="bedard.christophe@gmail.com">Christophe Bedard</maintainer>
|
||||||
<maintainer email="ingo.luetkebohle@de.bosch.com">Ingo Lütkebohle</maintainer>
|
<maintainer email="ingo.luetkebohle@de.bosch.com">Ingo Luetkebohle</maintainer>
|
||||||
<license>Apache 2.0</license>
|
<license>Apache 2.0</license>
|
||||||
<author email="fixed-term.christophe.bourquebedard@de.bosch.com">Christophe Bedard</author>
|
<author email="fixed-term.christophe.bourquebedard@de.bosch.com">Christophe Bedard</author>
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ setup(
|
||||||
install_requires=['setuptools'],
|
install_requires=['setuptools'],
|
||||||
maintainer=(
|
maintainer=(
|
||||||
'Christophe Bedard, '
|
'Christophe Bedard, '
|
||||||
'Ingo Lütkebohle'
|
'Ingo Luetkebohle'
|
||||||
),
|
),
|
||||||
maintainer_email=(
|
maintainer_email=(
|
||||||
'bedard.christophe@gmail.com, '
|
'bedard.christophe@gmail.com, '
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<version>0.2.8</version>
|
<version>0.2.8</version>
|
||||||
<description>Tools for reading traces.</description>
|
<description>Tools for reading traces.</description>
|
||||||
<maintainer email="bedard.christophe@gmail.com">Christophe Bedard</maintainer>
|
<maintainer email="bedard.christophe@gmail.com">Christophe Bedard</maintainer>
|
||||||
<maintainer email="ingo.luetkebohle@de.bosch.com">Ingo Lütkebohle</maintainer>
|
<maintainer email="ingo.luetkebohle@de.bosch.com">Ingo Luetkebohle</maintainer>
|
||||||
<license>Apache 2.0</license>
|
<license>Apache 2.0</license>
|
||||||
<author email="fixed-term.christophe.bourquebedard@de.bosch.com">Christophe Bedard</author>
|
<author email="fixed-term.christophe.bourquebedard@de.bosch.com">Christophe Bedard</author>
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ setup(
|
||||||
install_requires=['setuptools'],
|
install_requires=['setuptools'],
|
||||||
maintainer=(
|
maintainer=(
|
||||||
'Christophe Bedard, '
|
'Christophe Bedard, '
|
||||||
'Ingo Lütkebohle'
|
'Ingo Luetkebohle'
|
||||||
),
|
),
|
||||||
maintainer_email=(
|
maintainer_email=(
|
||||||
'bedard.christophe@gmail.com, '
|
'bedard.christophe@gmail.com, '
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<version>0.2.8</version>
|
<version>0.2.8</version>
|
||||||
<description>Testing utilities and tests for the tracetools package.</description>
|
<description>Testing utilities and tests for the tracetools package.</description>
|
||||||
<maintainer email="bedard.christophe@gmail.com">Christophe Bedard</maintainer>
|
<maintainer email="bedard.christophe@gmail.com">Christophe Bedard</maintainer>
|
||||||
<maintainer email="ingo.luetkebohle@de.bosch.com">Ingo Lütkebohle</maintainer>
|
<maintainer email="ingo.luetkebohle@de.bosch.com">Ingo Luetkebohle</maintainer>
|
||||||
<license>Apache 2.0</license>
|
<license>Apache 2.0</license>
|
||||||
<author email="fixed-term.christophe.bourquebedard@de.bosch.com">Christophe Bedard</author>
|
<author email="fixed-term.christophe.bourquebedard@de.bosch.com">Christophe Bedard</author>
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<version>0.2.8</version>
|
<version>0.2.8</version>
|
||||||
<description>Tools for setting up tracing sessions.</description>
|
<description>Tools for setting up tracing sessions.</description>
|
||||||
<maintainer email="bedard.christophe@gmail.com">Christophe Bedard</maintainer>
|
<maintainer email="bedard.christophe@gmail.com">Christophe Bedard</maintainer>
|
||||||
<maintainer email="ingo.luetkebohle@de.bosch.com">Ingo Lütkebohle</maintainer>
|
<maintainer email="ingo.luetkebohle@de.bosch.com">Ingo Luetkebohle</maintainer>
|
||||||
<license>Apache 2.0</license>
|
<license>Apache 2.0</license>
|
||||||
<author email="fixed-term.christophe.bourquebedard@de.bosch.com">Christophe Bedard</author>
|
<author email="fixed-term.christophe.bourquebedard@de.bosch.com">Christophe Bedard</author>
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ setup(
|
||||||
install_requires=['setuptools'],
|
install_requires=['setuptools'],
|
||||||
maintainer=(
|
maintainer=(
|
||||||
'Christophe Bedard, '
|
'Christophe Bedard, '
|
||||||
'Ingo Lütkebohle'
|
'Ingo Luetkebohle'
|
||||||
),
|
),
|
||||||
maintainer_email=(
|
maintainer_email=(
|
||||||
'bedard.christophe@gmail.com, '
|
'bedard.christophe@gmail.com, '
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue