From: Mathieu Desnoyers Date: Tue, 4 Sep 2012 16:51:43 +0000 (-0400) Subject: Export "written" information about fields X-Git-Tag: v2.1.0-rc1~5 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;h=38cb89917116813af9f12bfeb2c389628e2ac901;p=lttng-ust.git Export "written" information about fields Signed-off-by: Mathieu Desnoyers --- diff --git a/include/lttng/ust-abi.h b/include/lttng/ust-abi.h index a72d67ef..0489e89b 100644 --- a/include/lttng/ust-abi.h +++ b/include/lttng/ust-abi.h @@ -99,12 +99,13 @@ enum lttng_ust_field_type { LTTNG_UST_FIELD_STRING = 4, }; -#define LTTNG_UST_FIELD_ITER_PADDING LTTNG_UST_SYM_NAME_LEN + 32 +#define LTTNG_UST_FIELD_ITER_PADDING LTTNG_UST_SYM_NAME_LEN + 28 struct lttng_ust_field_iter { char event_name[LTTNG_UST_SYM_NAME_LEN]; char field_name[LTTNG_UST_SYM_NAME_LEN]; enum lttng_ust_field_type type; int loglevel; /* event loglevel */ + int written; char padding[LTTNG_UST_FIELD_ITER_PADDING]; }; diff --git a/liblttng-ust/ltt-probes.c b/liblttng-ust/ltt-probes.c index 8ccb6fab..884a9740 100644 --- a/liblttng-ust/ltt-probes.c +++ b/liblttng-ust/ltt-probes.c @@ -296,6 +296,7 @@ int ltt_probes_get_field_list(struct lttng_ust_field_list *list) } else { list_entry->field.loglevel = *(*event_desc->loglevel); } + list_entry->field.written = event_field->written; } } }