X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt-probes.c;h=668f6678ad3ec13c15cfb8518e8d20b32b5afa76;hb=e17d7b2781e42b8bfe6f86272a29299dff6d2912;hp=ab4b349ee2c47c9ec581a67aaf971c2695639a26;hpb=cbd4ecb28a17e4e8888affb573bd3f7a2cae874a;p=lttng-modules.git diff --git a/ltt-probes.c b/ltt-probes.c index ab4b349e..668f6678 100644 --- a/ltt-probes.c +++ b/ltt-probes.c @@ -4,6 +4,8 @@ * Copyright 2010 (c) - Mathieu Desnoyers * * Holds LTTng probes registry. + * + * Dual LGPL v2.1/GPL v2 license. */ #include @@ -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,