~lttng/lttng-ust/lttng-ust

« back to all changes in this revision

Viewing changes to tests/gen-tp/sample_tracepoint.tp

  • Committer: Mathieu Desnoyers
  • Author(s): Yannick Brosseau
  • Date: 2012-02-16 14:11:11 UTC
  • Revision ID: git-v1:b25c5b37ef536d7b09fe901d97e678220ec69c9a
Create the lttng-gen-tp tools as an helper to generate UST .h and .c files

Based on a template file which contains TRACEPOINT_EVENT definition, the
tools generate the necessary .h and .c to create the probes.

Include an example use in tests/gen-tp/

(refs #24)

Signed-off-by: Yannick Brosseau <yannick.brosseau@gmail.com>
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)