From 40e8d353a7ce33e5bf82537b9faf599e41fefdfd Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 10 Nov 2011 15:03:01 -0500 Subject: [PATCH] Don't list metadata tracepoint Signed-off-by: Mathieu Desnoyers --- liblttng-ust/lttng-ust-abi.c | 3 +++ 1 file changed, 3 insertions(+) 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); } -- 2.34.1