~mhr3/libunity/invalidate-on-subscopes

« back to all changes in this revision

Viewing changes to src/lttng-component-provider.h

  • Committer: Tarmac
  • Author(s): Pawel Stolowski
  • Date: 2013-04-04 15:23:01 UTC
  • mfrom: (353.2.10 enable-lttng)
  • Revision ID: tarmac-20130404152301-0cxwpvvdrp9rw1gq
First cut at LTTNG instrumentation.

Approved by Michal Hruby, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#undef TRACEPOINT_PROVIDER
 
2
#define TRACEPOINT_PROVIDER libunity
 
3
 
 
4
#undef TRACEPOINT_INCLUDE
 
5
#define TRACEPOINT_INCLUDE "./lttng-component-provider.h"
 
6
 
 
7
#ifdef __cplusplus
 
8
extern "C" {
 
9
#endif /* __cplusplus */
 
10
 
 
11
#if !defined(_LIBUNITY_COMPONENT_PROVIDER_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
 
12
#define _LIBUNITY_COMPONENT_PROVIDER_H
 
13
 
 
14
#include <lttng/tracepoint.h> 
 
15
 
 
16
TRACEPOINT_EVENT(
 
17
        libunity,
 
18
        message,
 
19
        TP_ARGS(char *, text),
 
20
        TP_FIELDS(
 
21
                ctf_string(message, text)
 
22
        )
 
23
)
 
24
 
 
25
TRACEPOINT_LOGLEVEL(
 
26
        libunity,
 
27
        message,
 
28
        TRACE_INFO)
 
29
 
 
30
#endif
 
31
 
 
32
#include <lttng/tracepoint-event.h>
 
33
 
 
34
#ifdef __cplusplus
 
35
}
 
36
#endif /* __cplusplus */