struct lttng_kernel_type_struct {
struct lttng_kernel_type_common parent;
unsigned int nr_fields;
- const struct lttng_kernel_event_field **fields; /* Array of pointers to fields. */
+ const struct lttng_kernel_event_field * const *fields; /* Array of pointers to fields. */
unsigned int alignment;
};
struct lttng_kernel_type_variant {
struct lttng_kernel_type_common parent;
const char *tag_name; /* Tag field name. If NULL, use previous field. */
- const struct lttng_kernel_event_field **choices; /* Array of pointers to fields. */
+ const struct lttng_kernel_event_field * const *choices; /* Array of pointers to fields. */
unsigned int nr_choices;
unsigned int alignment;
};
struct lttng_kernel_enum_desc {
const char *name;
- const struct lttng_kernel_enum_entry **entries;
+ const struct lttng_kernel_enum_entry * const *entries;
unsigned int nr_entries;
const struct lttng_kernel_probe_desc *probe_desc;
};
struct lttng_kernel_tracepoint_class {
void (*probe_callback)(void);
- const struct lttng_kernel_event_field **fields; /* event payload */
+ const struct lttng_kernel_event_field * const *fields; /* event payload */
unsigned int nr_fields;
const struct lttng_kernel_probe_desc *probe_desc;
};
struct lttng_kernel_probe_desc {
const char *provider_name;
- const struct lttng_kernel_event_desc **event_desc;
+ const struct lttng_kernel_event_desc * const *event_desc;
unsigned int nr_events;
struct list_head head; /* chain registered probes */
struct list_head lazy_init_head;
#ifndef LTTNG_TRACEPOINT_TYPE_EXTERN
# undef LTTNG_TRACEPOINT_ENUM
# define LTTNG_TRACEPOINT_ENUM(_name, _values) \
- static const struct lttng_kernel_enum_entry *__enum_values__##_name[] = { \
+ static const struct lttng_kernel_enum_entry * const __enum_values__##_name[] = { \
_values \
};
#endif
#undef LTTNG_TRACEPOINT_EVENT_CLASS_CODE_NOARGS
#define LTTNG_TRACEPOINT_EVENT_CLASS_CODE_NOARGS(_name, _locvar, _code_pre, _fields, _code_post) \
- static const struct lttng_kernel_event_field *__event_fields___##_name[] = { \
+ static const struct lttng_kernel_event_field * const __event_fields___##_name[] = { \
_fields \
}; \
static const struct lttng_kernel_tracepoint_class lttng_kernel__event_class___##_name = { \
#define TP_ID1(_token, _system) _token##_system
#define TP_ID(_token, _system) TP_ID1(_token, _system)
-static const struct lttng_kernel_event_desc *TP_ID(__event_desc___, TRACE_SYSTEM)[] = {
+static const struct lttng_kernel_event_desc * const TP_ID(__event_desc___, TRACE_SYSTEM)[] = {
#include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
};
const char *field_name,
enum bytecode_op bytecode_op)
{
- const struct lttng_kernel_event_field **fields, *field = NULL;
+ const struct lttng_kernel_event_field * const *fields, *field = NULL;
unsigned int nr_fields, i;
struct load_op *op;
uint32_t field_offset = 0;
struct trace_syscall_entry {
void *event_func;
const struct lttng_kernel_event_desc *desc;
- const struct lttng_kernel_event_field **fields;
+ const struct lttng_kernel_event_field * const *fields;
unsigned int nrargs;
};