Add the written value when listing fields
authorDavid Goulet <dgoulet@efficios.com>
Mon, 17 Sep 2012 16:25:41 +0000 (12:25 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Mon, 17 Sep 2012 16:25:41 +0000 (12:25 -0400)
Signed-off-by: David Goulet <dgoulet@efficios.com>
include/lttng/lttng.h
src/bin/lttng-sessiond/ust-app.c
src/bin/lttng/commands/list.c

index a9aee7233e7307735982c951b937ed5c2012d38e..d066728528e419c1014be3a12e32cef4f33b1c84 100644 (file)
@@ -261,6 +261,7 @@ struct lttng_event_field {
        enum lttng_event_field_type type;
        char padding[LTTNG_EVENT_FIELD_PADDING];
        struct lttng_event event;
+       int written;
 };
 
 /*
index af0a51b8891d1ad952c2324786798acf6a2f0fdf..81b1f418a97b78a5a01ed7300f50fd2d38f0413d 100644 (file)
@@ -1667,6 +1667,7 @@ int ust_app_list_event_fields(struct lttng_event_field **fields)
 
                        memcpy(tmp[count].field_name, uiter.field_name, LTTNG_UST_SYM_NAME_LEN);
                        tmp[count].type = uiter.type;
+                       tmp[count].written = uiter.written;
 
                        memcpy(tmp[count].event.name, uiter.event_name, LTTNG_UST_SYM_NAME_LEN);
                        tmp[count].event.loglevel = uiter.loglevel;
index afd7cf0b3172c291046710c621625d465c675c3b..eced2b7165f1836098e415aad4768c772a581240 100644 (file)
@@ -280,8 +280,8 @@ static void print_event_field(struct lttng_event_field *field)
        if (!field->field_name[0]) {
                return;
        }
-       MSG("%sfield: %s (%s)", indent8, field->field_name,
-               field_type(field));
+       MSG("%sfield: %s (%s)%s", indent8, field->field_name,
+               field_type(field), field->written ? "" : " [no write]");
 }
 
 /*
This page took 0.039604 seconds and 4 git commands to generate.