Move to kernel style SPDX license identifiers
[lttng-ust.git] / tests / compile / hello-many / hello-many.c
CommitLineData
69d6ee6e 1/*
c0c0989a 2 * SPDX-License-Identifier: LGPL-2.1-only
69d6ee6e 3 *
c0c0989a
MJ
4 * Copyright (C) 2009 Pierre-Marc Fournier
5 * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
69d6ee6e
MD
6 */
7
8#include <stdio.h>
9#include <unistd.h>
10#include <sys/mman.h>
11#include <stdarg.h>
12#include <sys/types.h>
13#include <sys/stat.h>
14#include <fcntl.h>
15#include <signal.h>
16#include <string.h>
17#include <stdlib.h>
18
19#define TRACEPOINT_DEFINE
20#include "ust_tests_hello_many.h"
21
22int main(int argc, char **argv)
23{
24 int delay = 0;
25
26 if (argc == 2)
27 delay = atoi(argv[1]);
28
29 fprintf(stderr, "Hello, World!\n");
30
31 sleep(delay);
32
33 fprintf(stderr, "Tracing... ");
34 tracepoint(ust_tests_hello_many, tptest_simple1);
35 tracepoint(ust_tests_hello_many, tptest_simple34);
36 fprintf(stderr, " done.\n");
37 return 0;
38}
This page took 0.023753 seconds and 4 git commands to generate.