Export "written" information about fields
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 4 Sep 2012 16:51:43 +0000 (12:51 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 4 Sep 2012 16:51:43 +0000 (12:51 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/lttng/ust-abi.h
liblttng-ust/ltt-probes.c

index a72d67ef6ce837e2187a3632425f16a8255fdb4f..0489e89b8d206502f3a003869cd4bf6317ab6351 100644 (file)
@@ -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];
 };
 
index 8ccb6fab9d2f32c37e2c14fa945adbcb38a9b54e..884a97409eb4cc53470addcebc590b2790d5e531 100644 (file)
@@ -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;
                        }
                }
        }
This page took 0.026538 seconds and 4 git commands to generate.