X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=liblttng-ust%2Fltt-probes.c;h=35f742a98074b1bb53b8d21de5af907e60d9cf0b;hb=882a56d75d6054e1bf35d1bcddd668be4da4980f;hp=903e05298a7c96a72f081265681d4d3c86ff8c0e;hpb=75c5ad79cbdc0b7d0579ccd1c97902ded5bdc08a;p=lttng-ust.git diff --git a/liblttng-ust/ltt-probes.c b/liblttng-ust/ltt-probes.c index 903e0529..35f742a9 100644 --- a/liblttng-ust/ltt-probes.c +++ b/liblttng-ust/ltt-probes.c @@ -17,6 +17,7 @@ #include #include +#include "tracepoint-internal.h" #include "ltt-tracer-core.h" #include "jhash.h" #include "error.h" @@ -168,15 +169,9 @@ int ltt_probes_get_event_list(struct lttng_ust_tracepoint_list *list) LTTNG_UST_SYM_NAME_LEN); list_entry->tp.name[LTTNG_UST_SYM_NAME_LEN - 1] = '\0'; if (!probe_desc->event_desc[i]->loglevel) { - list_entry->tp.loglevel[0] = '\0'; - list_entry->tp.loglevel_value = 0; + list_entry->tp.loglevel = TRACE_DEFAULT; } else { - strncpy(list_entry->tp.loglevel, - (*probe_desc->event_desc[i]->loglevel)->identifier, - LTTNG_UST_SYM_NAME_LEN); - list_entry->tp.loglevel[LTTNG_UST_SYM_NAME_LEN - 1] = '\0'; - list_entry->tp.loglevel_value = - (*probe_desc->event_desc[i]->loglevel)->value; + list_entry->tp.loglevel = *(*probe_desc->event_desc[i]->loglevel); } } } @@ -259,11 +254,9 @@ void _probes_create_wildcard_events(struct wildcard_entry *entry, && (strlen(entry->name) == 1 || !strncmp(event_desc->name, entry->name, strlen(entry->name) - 1))) { - /* TODO: get value from loglevel. */ - /* TODO: check if loglevel match */ //if (event_desc->loglevel - // && (*event_desc->loglevel)->value ...) + // && (*event_desc->loglevel) ...) match = 1; } if (match) {