Prefix lttng_enum_value and lttng_enum_entry with lttng_kernel_
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 7 Apr 2021 18:00:37 +0000 (14:00 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 14 Apr 2021 20:38:35 +0000 (16:38 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I4b4d502e2af9a1ca6425889da2697c5633200f52

include/instrumentation/events/net.h
include/lttng/events.h
include/lttng/tracepoint-event-impl.h
include/lttng/types.h
src/lttng-events.c

index d0227423339b3cf2b3a9458e48ad69cbe548f1da..ee171dadd5dea09aec0e43da88793d2c07c9c60d 100644 (file)
@@ -235,7 +235,7 @@ static inline enum transport_header_types __get_transport_header_type(struct sk_
        return TH_NONE;
 }
 
-static struct lttng_enum_entry proto_transport_enum_entries[] = {
+static struct lttng_kernel_enum_entry proto_transport_enum_entries[] = {
        [0] = {
                .start = { .value = 0, .signedness = 0, },
                .end = { .value = IPPROTO_ICMP - 1, .signedness = 0, },
@@ -279,7 +279,7 @@ static const struct lttng_enum_desc proto_transport_header_type = {
        .nr_entries = ARRAY_SIZE(proto_transport_enum_entries),
 };
 
-static struct lttng_enum_entry transport_enum_entries[] = {
+static struct lttng_kernel_enum_entry transport_enum_entries[] = {
        [0] = {
                .start = { .value = TH_NONE, .signedness = 0, },
                .end = { .value = TH_NONE, .signedness = 0, },
index 5e456c52a38e3e3b3886fbfb7dff2b19637362b1..5e3800665ff6ab86e8ae0dd2e066de4d97ecb277 100644 (file)
@@ -58,13 +58,13 @@ enum channel_type {
        METADATA_CHANNEL,
 };
 
-struct lttng_enum_value {
+struct lttng_kernel_enum_value {
        unsigned long long value;
        unsigned int signedness:1;
 };
 
-struct lttng_enum_entry {
-       struct lttng_enum_value start, end;     /* start and end are inclusive */
+struct lttng_kernel_enum_entry {
+       struct lttng_kernel_enum_value start, end;      /* start and end are inclusive */
        const char *string;
        struct {
                unsigned int is_auto:1;
@@ -132,7 +132,7 @@ struct lttng_type {
 
 struct lttng_enum_desc {
        const char *name;
-       const struct lttng_enum_entry *entries;
+       const struct lttng_kernel_enum_entry *entries;
        unsigned int nr_entries;
 };
 
index 74e246b8b3ade6423ab9c338f49bf5f4c16e1e11..bc13e56dc77087164b86b0d2d74805c97c7a2019 100644 (file)
@@ -272,7 +272,7 @@ void __event_notifier_template_proto___##_name(void);
 
 #undef LTTNG_TRACEPOINT_ENUM
 #define LTTNG_TRACEPOINT_ENUM(_name, _values)                          \
-       const struct lttng_enum_entry __enum_values__##_name[] = { \
+       const struct lttng_kernel_enum_entry __enum_values__##_name[] = { \
                _values                                                 \
        };
 
index e5e25e0eecefa0ee7a3b4ee4504de293b46fb090..687a0860fa3e23b2fe0ed5dd07ae3ef660d88f12 100644 (file)
@@ -33,7 +33,7 @@
 
 #undef TRACE_EVENT_ENUM
 #define TRACE_EVENT_ENUM(_name, _entries...)                           \
-       const struct lttng_enum_entry __trace_event_enum_##_name[] = {  \
+       const struct lttng_kernel_enum_entry __trace_event_enum_##_name[] = {   \
                PARAMS(_entries)                                        \
        };
 
index a21073d37c5af03de8a09bc15817710fe7c4cea9..d64440d3fcc30a3b6652ffcbdf29831b0bd0ab53 100644 (file)
@@ -3294,7 +3294,7 @@ int _lttng_enum_type_statedump(struct lttng_session *session,
                goto end;
        /* Dump all entries */
        for (i = 0; i < nr_entries; i++) {
-               const struct lttng_enum_entry *entry = &enum_desc->entries[i];
+               const struct lttng_kernel_enum_entry *entry = &enum_desc->entries[i];
                int j, len;
 
                ret = print_tabs(session, nesting + 1);
This page took 0.030041 seconds and 4 git commands to generate.