Project

General

Profile

Bug #142 » sample_tracepoint.h

Yannick Brosseau, 03/01/2012 10:43 AM

 
1

    
2
#undef TRACEPOINT_PROVIDER
3
#define TRACEPOINT_PROVIDER sample_tracepoint
4

    
5
#undef TRACEPOINT_INCLUDE_FILE
6
#define TRACEPOINT_INCLUDE_FILE ./sample_tracepoint.h
7

    
8
#ifdef __cplusplus
9
#extern "C"{
10
#endif /*__cplusplus */
11

    
12

    
13
#if !defined(_SAMPLE_TRACEPOINT_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
14
#define _SAMPLE_TRACEPOINT_H
15

    
16
#include <lttng/tracepoint.h>
17

    
18
TRACEPOINT_EVENT(
19
	sample_tracepoint,
20
	message, // C++ Style comment
21
	TP_ARGS(char *, text),
22
	TP_FIELDS(
23
		ctf_string(message, text)
24
		  )
25
)
26
/*
27
 * Longer comments
28
 */
29
TRACEPOINT_LOGLEVEL(
30
	sample_tracepoint,
31
	message,
32
	TRACE_WARNING)
33

    
34
#endif /* _SAMPLE_TRACEPOINT_H */
35

    
36
#include <lttng/tracepoint-event.h>
37

    
38
#ifdef __cplusplus
39
}
40
#endif /*__cplusplus */
41

    
(4-4/4)