fix: namespacing of 'tp_rcu_read_lock'
[lttng-ust.git] / tests / compile / ctf-types / ctf-types.c
CommitLineData
c785c634 1/*
c0c0989a 2 * SPDX-License-Identifier: LGPL-2.1-only
c785c634 3 *
c0c0989a 4 * Copyright (C) 2014 Geneviève Bastien <gbastien@versatic.net>
c785c634
MD
5 */
6
7#include <unistd.h>
8
88c7c4ea 9#define LTTNG_UST_TRACEPOINT_DEFINE
c785c634
MD
10#include "ust_tests_ctf_types.h"
11
12int main(int argc, char **argv)
13{
14 int i;
15 int delay = 0;
16
17 if (argc == 2)
18 delay = atoi(argv[1]);
19
20 fprintf(stderr, "Hello, World!\n");
21
22 sleep(delay);
23
24 fprintf(stderr, "Tracing... ");
25 for (i = 0; i < 100; i++) {
cbc06a3b 26 lttng_ust_tracepoint(ust_tests_ctf_types, tptest, i, i % 6,
c785c634
MD
27 i % 21);
28 }
29
30 for (i = 0; i < 10; i++) {
cbc06a3b 31 lttng_ust_tracepoint(ust_tests_ctf_types, tptest_bis, i, i % 6);
c785c634
MD
32 }
33 fprintf(stderr, " done.\n");
34 return 0;
35}
This page took 0.027428 seconds and 4 git commands to generate.