Move to kernel style SPDX license identifiers
[lttng-ust.git] / doc / examples / easy-ust / sample.c
CommitLineData
4807c6de 1/*
c0c0989a 2 * SPDX-License-Identifier: MIT
4807c6de 3 *
c0c0989a
MJ
4 * Copyright (C) 2011-2012 Matthew Khouzam <matthew.khouzam@ericsson.com>
5 * Copyright (C) 2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
4807c6de 6 */
a60af3a5 7
4807c6de
MD
8#include <unistd.h>
9
10/*
11 * We need to define TRACEPOINT_DEFINE in one C file in the program
12 * before including provider headers.
13 */
14#define TRACEPOINT_DEFINE
15#include "sample_component_provider.h"
16
17int main(int argc, char **argv)
18{
19 int i = 0;
20
21 for (i = 0; i < 100000; i++) {
9d36f30e 22 tracepoint(sample_component, message, "Hello World");
4807c6de
MD
23 usleep(1);
24 }
25 return 0;
26}
This page took 0.027182 seconds and 4 git commands to generate.