mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-02 14:08:45 -04:00
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:
parent
635a975486
commit
3457dbcdf8
@ -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>
|
||||
|
@ -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
|
||||
|
@ -59,7 +59,7 @@ TRACEPOINT_EVENT(
|
||||
)
|
||||
)
|
||||
|
||||
#endif /* _HELLO_TP_H */
|
||||
#endif
|
||||
|
||||
#include <lttng/tracepoint-event.h>
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user