~mhr3/libunity/invalidate-on-subscopes

« back to all changes in this revision

Viewing changes to src/unity-trace.c

  • 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:
21
21
 
22
22
#include "unity-trace.h"
23
23
 
 
24
#ifdef ENABLE_LTTNG
 
25
#define TRACEPOINT_DEFINE
 
26
#include "lttng-component-provider.h"
 
27
#include "tp.c"
 
28
#endif
 
29
 
24
30
void
25
31
unity_trace_log_object_va (void        *obj,
26
32
                           const gchar *format,
52
58
  va_end (args);
53
59
}
54
60
 
 
61
#ifdef ENABLE_LTTNG
 
62
 
 
63
void
 
64
unity_trace_tracepoint_real (const gchar *format, va_list args)
 
65
{
 
66
  gchar *tmp = g_strdup_vprintf (format, args);
 
67
  tracepoint (libunity, message, tmp);
 
68
  g_free (tmp);
 
69
}
 
70
 
 
71
#endif