Project

General

Profile

Bug #1199 » ust_pipe_and_fork.h

Tai Dinh, 10/03/2019 04:05 PM

 
1
#undef TRACEPOINT_PROVIDER
2
#define TRACEPOINT_PROVIDER taidinh
3

    
4

    
5
#if !defined(_UST_PIPE_AND_FORK_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
6
#define _UST_PIPE_AND_FORK_H
7

    
8
#include <lttng/tracepoint.h>
9

    
10
TRACEPOINT_EVENT(
11
	/* Tracepoint provider name */
12
	taidinh,
13

    
14
	/* Tracepoint name */
15
	ust_pipe_and_fork,
16

    
17
	/* Input arguments */
18
	TP_ARGS(
19
		int, index,
20
		const char*, msg
21
		),
22

    
23
	/* Output event fields */
24
	TP_FIELDS(
25
		ctf_integer(int, index, index)
26
		ctf_string(msg, msg)
27
		)
28
	)
29

    
30
#endif /* _UST_PIPE_AND_FORK_H */
31

    
32
#undef TRACEPOINT_INCLUDE
33
#define TRACEPOINT_INCLUDE "./ust_pipe_and_fork.h"
34

    
35
#include <lttng/tracepoint-event.h>
(2-2/4)