From: Mathieu Desnoyers Date: Wed, 1 Jun 2011 17:20:43 +0000 (-0400) Subject: Don't export lttng metadata event in event list X-Git-Tag: v2.0-pre1~77 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=7516d0ea57cbca254ad60c4f1c5b809681fa2d0c;p=lttng-modules.git Don't export lttng metadata event in event list Signed-off-by: Mathieu Desnoyers --- diff --git a/ltt-probes.c b/ltt-probes.c index ab4b349e..94beb05b 100644 --- a/ltt-probes.c +++ b/ltt-probes.c @@ -129,6 +129,11 @@ int tp_list_show(struct seq_file *m, void *p) { 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;