block layer instrumentation: fix cmd field
[lttng-modules.git] / ltt-probes.c
index ab4b349ee2c47c9ec581a67aaf971c2695639a26..668f6678ad3ec13c15cfb8518e8d20b32b5afa76 100644 (file)
@@ -4,6 +4,8 @@
  * Copyright 2010 (c) - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
  *
  * Holds LTTng probes registry.
+ *
+ * Dual LGPL v2.1/GPL v2 license.
  */
 
 #include <linux/module.h>
@@ -129,6 +131,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;
@@ -149,6 +156,7 @@ int lttng_tracepoint_list_open(struct inode *inode, struct file *file)
 }
 
 const struct file_operations lttng_tracepoint_list_fops = {
+       .owner = THIS_MODULE,
        .open = lttng_tracepoint_list_open,
        .read = seq_read,
        .llseek = seq_lseek,
This page took 0.02435 seconds and 4 git commands to generate.