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, },
.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, },
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;
struct lttng_enum_desc {
const char *name;
- const struct lttng_enum_entry *entries;
+ const struct lttng_kernel_enum_entry *entries;
unsigned int nr_entries;
};
#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 \
};
#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) \
};
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);