Namespace enumeration structures/enum with lttng_ust_ prefix
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 17 Mar 2021 20:13:54 +0000 (16:13 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 17 Mar 2021 20:14:36 +0000 (16:14 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Icefbecc56d6425d2e6a3adebc592babf70ff60f9

include/lttng/ust-events.h
include/lttng/ust-tracepoint-event.h
liblttng-ust-comm/lttng-ust-comm.c

index 946abe4b610d80fa2fb621d71a4404328d7cb4a1..18706fa898139e3161a0620196d1f60f0c0e16aa 100644 (file)
@@ -71,13 +71,13 @@ enum lttng_ust_string_encoding {
        NR_LTTNG_UST_STRING_ENCODING,
 };
 
-struct lttng_enum_value {
+struct lttng_ust_enum_value {
        unsigned long long value;
        unsigned int signedness:1;
 };
 
-enum lttng_enum_entry_options {
-       LTTNG_ENUM_ENTRY_OPTION_IS_AUTO = 1U << 0,
+enum lttng_ust_enum_entry_option {
+       LTTNG_UST_ENUM_ENTRY_OPTION_IS_AUTO = 1U << 0,
 };
 
 /*
@@ -95,7 +95,7 @@ enum lttng_enum_entry_options {
 struct lttng_ust_enum_entry {
        uint32_t struct_size;
 
-       struct lttng_enum_value start, end; /* start and end are inclusive */
+       struct lttng_ust_enum_value start, end; /* start and end are inclusive */
        const char *string;
        unsigned int options;
 
index 50cbfbbcf831dea3a3b830d791de86cb982ccbac..72a0cbec1777da7b94f8496b483b9f7e4faf65a4 100644 (file)
@@ -194,7 +194,7 @@ void __event_template_proto___##_provider##___##_name(_TP_ARGS_DATA_PROTO(_args)
                        .signedness = 0,                                \
                },                                                      \
                .string = (_string),                                    \
-               .options = LTTNG_ENUM_ENTRY_OPTION_IS_AUTO,             \
+               .options = LTTNG_UST_ENUM_ENTRY_OPTION_IS_AUTO,         \
        }),
 
 #undef TP_ENUM_VALUES
index 8e17e41726f60f499d81cc3ad6a0cdb2149cf438..0b6aa293c696516cbaa5a101dd96a983cad3a151 100644 (file)
@@ -1332,7 +1332,7 @@ int serialize_entries(struct ustctl_enum_entry **_entries,
                strncpy(uentry->string, lentry->string, LTTNG_UST_ABI_SYM_NAME_LEN);
                uentry->string[LTTNG_UST_ABI_SYM_NAME_LEN - 1] = '\0';
 
-               if (lentry->options & LTTNG_ENUM_ENTRY_OPTION_IS_AUTO) {
+               if (lentry->options & LTTNG_UST_ENUM_ENTRY_OPTION_IS_AUTO) {
                        uentry->u.extra.options |=
                                USTCTL_UST_ENUM_ENTRY_OPTION_IS_AUTO;
                }
This page took 0.028714 seconds and 4 git commands to generate.