Commit | Line | Data |
---|---|---|
c01dcd34 | 1 | /* |
0235b0db | 2 | * SPDX-License-Identifier: MIT |
c01dcd34 | 3 | * |
0235b0db | 4 | * Copyright (C) 2016 Antoine Busque <antoine.busque@efficios.com> |
c01dcd34 AB |
5 | */ |
6 | ||
7 | #include <stdio.h> | |
8 | #define TRACEPOINT_DEFINE | |
9 | #include "tp.h" | |
10 | ||
11 | void foo() | |
12 | { | |
13 | tracepoint(my_provider, my_first_tracepoint, 42, "hello, tracer"); | |
14 | printf("foo\n"); | |
15 | } | |
16 | ||
17 | void bar() | |
18 | { | |
19 | tracepoint(my_provider, my_first_tracepoint, 57, | |
20 | "recoltes et semailles"); | |
21 | printf("bar\n"); | |
22 | } | |
23 | ||
24 | void baz() | |
25 | { | |
26 | tracepoint(my_provider, my_other_tracepoint, 1729); | |
27 | printf("baz\n"); | |
28 | } |