ca2c759caaa3b65271ecd489dbb18e045eda4704
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
23 #if TEST_DYNAMIC_LINKAGE
24 #define TRACEPOINT_PROBE_DYNAMIC_LINKAGE
27 #include "ust_tests_demo.h"
28 #include "ust_tests_demo2.h"
29 #include "ust_tests_demo3.h"
31 int main(int argc
, char **argv
)
34 long values
[] = { 1, 2, 3 };
35 char text
[10] = "test";
41 delay
= atoi(argv
[1]);
43 fprintf(stderr
, "Demo program starting.\n");
47 fprintf(stderr
, "Tracing... ");
48 tracepoint(ust_tests_demo
, starting
, 123);
49 for (i
= 0; i
< 5; i
++) {
51 tracepoint(ust_tests_demo2
, loop
, i
, netint
, values
,
52 text
, strlen(text
), dbl
, flt
);
54 tracepoint(ust_tests_demo
, done
, 456);
55 tracepoint(ust_tests_demo3
, done
, 42);
56 fprintf(stderr
, " done.\n");
This page took 0.034825 seconds and 4 git commands to generate.