2 * Copyright (C) 2009 Pierre-Marc Fournier
3 * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
5 * SPDX-License-Identifier: LGPL-2.1-only
13 #include <sys/types.h>
18 #include <arpa/inet.h>
21 #define TRACEPOINT_DEFINE
22 #define TRACEPOINT_PROBE_DYNAMIC_LINKAGE
23 #include "ust_tests_demo.h"
24 #include "ust_tests_demo2.h"
25 #include "ust_tests_demo3.h"
27 int main(int argc
, char **argv
)
30 long values
[] = { 1, 2, 3 };
31 char text
[10] = "test";
37 delay
= atoi(argv
[1]);
39 fprintf(stderr
, "Demo program starting.\n");
43 fprintf(stderr
, "Tracing... ");
44 tracepoint(ust_tests_demo
, starting
, 123);
45 for (i
= 0; i
< 5; i
++) {
47 tracepoint(ust_tests_demo2
, loop
, i
, netint
, values
,
48 text
, strlen(text
), dbl
, flt
);
50 tracepoint(ust_tests_demo
, done
, 456);
51 tracepoint(ust_tests_demo3
, done
, 42);
52 fprintf(stderr
, " done.\n");
This page took 0.029279 seconds and 4 git commands to generate.