AP_HAL_Linux: rename lttng define

Like others, use HAVE_ prefix and name it HAVE_LTTNG_UST to be the same
name as exported by pkg-config While at it remove wrong comment with
_HELLO_TP_H.
This commit is contained in:
Lucas De Marchi 2016-05-21 11:47:52 -03:00
parent 635a975486
commit 3457dbcdf8
4 changed files with 6 additions and 6 deletions

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#if !defined(PERF_LTTNG)
#ifndef HAVE_LTTNG_UST
#include <limits.h>
#include <time.h>

View File

@ -12,7 +12,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#if defined(PERF_LTTNG)
#ifdef HAVE_LTTNG_UST
#define TRACEPOINT_CREATE_PROBES
#define TRACEPOINT_DEFINE

View File

@ -59,7 +59,7 @@ TRACEPOINT_EVENT(
)
)
#endif /* _HELLO_TP_H */
#endif
#include <lttng/tracepoint-event.h>

View File

@ -34,10 +34,10 @@ COPTS = -ffunction-sections -fdata-sections -fsigned-char
ASOPTS = -x assembler-with-cpp
# features: TODO detect dependecy and make them optional
HAVE_LTTNG=
HAVE_LTTNG_UST=
ifeq ($(HAVE_LTTNG),1)
DEFINES += -DPERF_LTTNG=1
ifeq ($(HAVE_LTTNG_UST),1)
DEFINES += -DHAVE_LTTNG_UST=1
LIBS += -llttng-ust -ldl
endif