Add abi0 conflict tests
[lttng-ust.git] / tests / regression / abi0-conflict / app_ust.c
CommitLineData
d2a010d1
MJ
1/*
2 * SPDX-License-Identifier: LGPL-2.1-only
3 *
4 * Copyright (C) 2021 Michael Jeanson <mjeanson@efficios.com>
5 */
6
7#include <stdlib.h>
8#include <stdbool.h>
9#include <stdio.h>
10#include <arpa/inet.h>
11
12#include "./libzero.h"
13#include "./libone.h"
14
15#define LTTNG_UST_TRACEPOINT_DEFINE
16#include "ust_tests_hello.h"
17
18int main(void)
19{
20 int i, netint;
21 long values[] = { 1, 2, 3 };
22 char text[10] = "test";
23 double dbl = 2.0;
24 float flt = 2222.0;
25 bool mybool = 123; /* should print "1" */
26
27 printf("This application is linked on liblttng-ust.\n");
28
29#ifdef USE_LIBZERO
30 libzero();
31#endif
32#ifdef USE_LIBONE
33 libone();
34#endif
35
36 for (i = 0; i < 10; i++) {
37 netint = htonl(i);
38 lttng_ust_tracepoint(ust_tests_hello, tptest, i, netint, values,
39 text, strlen(text), dbl, flt, mybool);
40 }
41
42 return 0;
43}
This page took 0.024636 seconds and 4 git commands to generate.