~lttng/lttng-ust/lttng-ust

« back to all changes in this revision

Viewing changes to tests/hello/tp.c

  • Committer: Pierre-Marc Fournier
  • Date: 2009-06-15 17:10:22 UTC
  • Revision ID: git-v1:6dd969b5dd702909b8eb827e850c851053774055
reorganize test programs into tests/ directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "tp.h"
 
2
#include "marker.h"
 
3
#include "usterr.h"
 
4
 
 
5
DEFINE_TRACE(hello_tptest);
 
6
 
 
7
void tptest_probe(int anint)
 
8
{
 
9
        DBG("in tracepoint probe...");
 
10
        trace_mark(ust, tptest, "anint %d", anint);
 
11
}
 
12
 
 
13
static void __attribute__((constructor)) init()
 
14
{
 
15
        DBG("connecting tracepoint...");
 
16
        register_trace_hello_tptest(tptest_probe);
 
17
}