File: libhello.c

package info (click to toggle)
babeltrace2 2.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 42,660 kB
  • sloc: cpp: 106,162; ansic: 78,276; python: 27,115; sh: 9,053; makefile: 1,807; xml: 46
file content (28 lines) | stat: -rw-r--r-- 531 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * SPDX-License-Identifier: MIT
 *
 * Copyright (C) 2016 Antoine Busque <antoine.busque@efficios.com>
 */

#include <stdio.h>
#define TRACEPOINT_DEFINE
#include "tp.h"

void foo()
{
        tracepoint(my_provider, my_first_tracepoint, 42, "hello, tracer");
        printf("foo\n");
}

void bar()
{
        tracepoint(my_provider, my_first_tracepoint, 57,
                   "recoltes et semailles");
        printf("bar\n");
}

void baz()
{
        tracepoint(my_provider, my_other_tracepoint, 1729);
        printf("baz\n");
}