Don't list metadata tracepoint
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 10 Nov 2011 20:03:01 +0000 (15:03 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 10 Nov 2011 20:03:01 +0000 (15:03 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust/lttng-ust-abi.c

index cddfee900e5a039d202f69e2e2ac921e4ce10af2..8f38289b0d03c5c56511aafdbbec7cf8f5819300 100644 (file)
@@ -502,6 +502,7 @@ static
 void ltt_tracepoint_list_get(struct ltt_tracepoint_list *list,
                char *tp_list_entry)
 {
+next:
        if (!list->got_first) {
                tracepoint_iter_start(&list->iter);
                list->got_first = 1;
@@ -512,6 +513,8 @@ copy:
        if (!list->iter.tracepoint) {
                tp_list_entry[0] = '\0';        /* end of list */
        } else {
+               if (!strcmp((*list->iter.tracepoint)->name, "metadata"))
+                       goto next;
                memcpy(tp_list_entry, (*list->iter.tracepoint)->name,
                        LTTNG_UST_SYM_NAME_LEN);
        }
This page took 0.026505 seconds and 4 git commands to generate.