Comment out unimplemented vtid
[lttng-ust.git] / include / ust / tracepoint.h
index 18ee28b064e9e39e3519f43d8514daec9562256b..158d9b8a4cc1d3d28fdf4546f058dc8f83868152 100644 (file)
@@ -2,7 +2,7 @@
 #define _UST_TRACEPOINT_H
 
 /*
- * Copyright (C) 2008 Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
+ * Copyright (C) 2008-2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
  * Copyright (C) 2009 Pierre-Marc Fournier
  * Copyright (C) 2009 Steven Rostedt <rostedt@goodmis.org>
  *
@@ -197,7 +197,36 @@ int tracepoint_unregister_lib(struct tracepoint * const *tracepoints_start);
 
 #ifndef TRACEPOINT_EVENT
 /*
- * For use with the TRACEPOINT_EVENT macro:
+ * Usage of the TRACEPOINT_EVENT macro:
+ *
+ * In short, an example:
+ *
+ * TRACEPOINT_EVENT(< [com_company_]project_[component_]event >,
+ *     TP_PROTO(int arg0, void *arg1, char *string, size_t strlen,
+ *              long *arg4, size_t arg4_len),
+ *     TP_ARGS(arg0, arg1, string, strlen, arg4, arg4_len),
+ *     TP_FIELDS(
+ *
+ *         * Integer, printed in base 10 * 
+ *         ctf_integer(int, field_a, arg0)
+ *
+ *         * Integer, printed with 0x base 16 * 
+ *         ctf_integer_hex(unsigned long, field_d, arg1)
+ *
+ *         * Array Sequence, printed as UTF8-encoded array of bytes * 
+ *         ctf_array_text(char, field_b, string, FIXED_LEN)
+ *         ctf_sequence_text(char, field_c, string, size_t, strlen)
+ *
+ *         * String, printed as UTF8-encoded string * 
+ *         ctf_string(field_e, string)
+ *
+ *         * Array sequence of signed integer values * 
+ *         ctf_array(long, field_f, arg4, FIXED_LEN4)
+ *         ctf_sequence(long, field_g, arg4, size_t, arg4_len)
+ *     )
+ * )
+ *
+ * In more detail:
  *
  * We define a tracepoint, its arguments, and its 'fast binary record'
  * layout.
@@ -217,8 +246,10 @@ int tracepoint_unregister_lib(struct tracepoint * const *tracepoints_start);
  *   project_event
  *
  * Where "project" is the name of the project,
- *       "component" is the name of the project component where the
- *         tracepoint is located (optional),
+ *       "component" is the name of the project component (which may
+ *       include several levels of sub-components, e.g.
+ *       ...component_subcomponent_...) where the tracepoint is located
+ *       (optional),
  *       "event" is the name of the tracepoint event.
  *
  * For projects issued from a single company wishing to advertise that
@@ -232,8 +263,10 @@ int tracepoint_unregister_lib(struct tracepoint * const *tracepoints_start);
  *
  * Where "company" is the name of the company,
  *       "project" is the name of the project,
- *       "component" is the name of the project component where the
- *         tracepoint is located (optional),
+ *       "component" is the name of the project component (which may
+ *       include several levels of sub-components, e.g.
+ *       ...component_subcomponent_...) where the tracepoint is located
+ *       (optional),
  *       "event" is the name of the tracepoint event.
  *
  *
This page took 0.024455 seconds and 4 git commands to generate.