X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=tests%2Fcompile%2Fapi0%2Fhello-many%2Fhello-many.c;fp=tests%2Fcompile%2Fapi0%2Fhello-many%2Fhello-many.c;h=24736f6854058616efa42bcec894cb6f544a878c;hb=d0e8dd3951870f4341b50598afd0fd7c42516866;hp=0000000000000000000000000000000000000000;hpb=bebb067ef8020d5c36ab48271b0d9d9bb2b24e11;p=lttng-ust.git diff --git a/tests/compile/api0/hello-many/hello-many.c b/tests/compile/api0/hello-many/hello-many.c new file mode 100644 index 00000000..24736f68 --- /dev/null +++ b/tests/compile/api0/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 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... "); + tracepoint(ust_tests_hello_many, tptest_simple1); + tracepoint(ust_tests_hello_many, tptest_simple34); + fprintf(stderr, " done.\n"); + return 0; +}