* Copyright 2010 (c) - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
* Holds LTTng probes registry.
+ *
+ * Dual LGPL v2.1/GPL v2 license.
*/
#include <linux/module.h>
struct lttng_probe_desc *probe_desc;
int iter = 0, i;
+ mutex_lock(&probe_mutex);
list_for_each_entry(probe_desc, &probe_list, head) {
for (i = 0; i < probe_desc->nr_events; i++) {
if (iter++ >= *pos)
static
void tp_list_stop(struct seq_file *m, void *p)
{
+ mutex_unlock(&probe_mutex);
}
static
{
const struct lttng_event_desc *probe_desc = p;
+ /*
+ * Don't export lttng internal events (metadata).
+ */
+ if (!strncmp(probe_desc->name, "lttng_", sizeof("lttng_") - 1))
+ return 0;
seq_printf(m, "event { name = %s; };\n",
probe_desc->name);
return 0;