From: Mathieu Desnoyers Date: Thu, 10 Nov 2011 20:03:01 +0000 (-0500) Subject: Don't list metadata tracepoint X-Git-Tag: v1.9.1~109^2~1 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=40e8d353a7ce33e5bf82537b9faf599e41fefdfd;p=lttng-ust.git Don't list metadata tracepoint Signed-off-by: Mathieu Desnoyers --- diff --git a/liblttng-ust/lttng-ust-abi.c b/liblttng-ust/lttng-ust-abi.c index cddfee90..8f38289b 100644 --- a/liblttng-ust/lttng-ust-abi.c +++ b/liblttng-ust/lttng-ust-abi.c @@ -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); }