Commit | Line | Data |
---|---|---|
10b56aef MD |
1 | /* |
2 | * Copyright (C) 2014 Geneviève Bastien <gbastien@versatic.net> | |
3 | * | |
9d16b343 | 4 | * SPDX-License-Identifier: LGPL-2.1-only |
10b56aef | 5 | * |
10b56aef MD |
6 | */ |
7 | ||
8 | /* | |
9 | * This test generates a few events and exits. | |
10 | */ | |
11 | ||
12 | #include <unistd.h> | |
13 | ||
14 | #define TRACEPOINT_DEFINE | |
15 | #define TRACEPOINT_CREATE_PROBES | |
16 | #include "ust_tests_td.h" | |
17 | ||
18 | int main(int argc, char *argv[]) | |
19 | { | |
20 | int i; | |
21 | ||
22 | for (i = 0; i < 2; i++) { | |
23 | tracepoint(ust_tests_td, tptest, i % 2, (i+1) % 2, i % 21); | |
24 | tracepoint(ust_tests_td, tptest_bis, i % 2); | |
25 | } | |
26 | ||
358f4691 PP |
27 | tracepoint(ust_tests_td, test_auto); |
28 | ||
10b56aef MD |
29 | return 0; |
30 | } |