X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=tests%2Fcompile%2Fapi1%2Fhello-many%2Fhello-many.c;fp=tests%2Fcompile%2Fapi1%2Fhello-many%2Fhello-many.c;h=1cae515ff36421935129b2f0840525a26e257951;hb=bebb067ef8020d5c36ab48271b0d9d9bb2b24e11;hp=0000000000000000000000000000000000000000;hpb=4405cc3e105e60c95939e595b8dddcd0940a0b92;p=lttng-ust.git diff --git a/tests/compile/api1/hello-many/hello-many.c b/tests/compile/api1/hello-many/hello-many.c new file mode 100644 index 00000000..1cae515f --- /dev/null +++ b/tests/compile/api1/hello-many/hello-many.c @@ -0,0 +1,38 @@ +/* + * SPDX-License-Identifier: LGPL-2.1-only + * + * Copyright (C) 2009 Pierre-Marc Fournier + * Copyright (C) 2011 Mathieu Desnoyers + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#define LTTNG_UST_TRACEPOINT_DEFINE +#include "ust_tests_hello_many.h" + +int main(int argc, char **argv) +{ + int delay = 0; + + if (argc == 2) + delay = atoi(argv[1]); + + fprintf(stderr, "Hello, World!\n"); + + sleep(delay); + + fprintf(stderr, "Tracing... "); + lttng_ust_tracepoint(ust_tests_hello_many, tptest_simple1); + lttng_ust_tracepoint(ust_tests_hello_many, tptest_simple34); + fprintf(stderr, " done.\n"); + return 0; +}