~lttng/lttng-ust/lttng-ust

« back to all changes in this revision

Viewing changes to doc/examples/gen-tp/sample_tracepoint.tp

  • Committer: Mathieu Desnoyers
  • Date: 2012-02-16 17:20:36 UTC
  • Revision ID: git-v1:7ccf75d384dd852f7aa51b44663546dd3c6baa83
Install easy-ust and gen-tp examples in doc/

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
TRACEPOINT_EVENT(
 
2
        sample_tracepoint,
 
3
        message, // C++ Style comment
 
4
        TP_ARGS(char *, text),
 
5
        TP_FIELDS(
 
6
                ctf_string(message, text)
 
7
                  )
 
8
)
 
9
/*
 
10
 * Longer comments
 
11
 */
 
12
TRACEPOINT_LOGLEVEL(
 
13
        sample_tracepoint,
 
14
        message,
 
15
        TRACE_WARNING)