Commit
"Introduce API to remap event names exposed by LTTng"
failed to map the event names enabled by the user to tracepoint names
known to the kernel. For instance, tracing with the kmem_kmalloc event
enabled is not gathering any event. This issue applies to all tracepoint
events declared with a different name within LTTng than within the Linux
kernel.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
ret = -ENOENT;
goto register_error;
}
- ret = kabi_2635_tracepoint_probe_register(event_param->name,
+ ret = kabi_2635_tracepoint_probe_register(event->desc->kname,
event->desc->probe_callback,
event);
if (ret) {
};
struct lttng_event_desc {
- const char *name;
+ const char *name; /* lttng-modules name */
+ const char *kname; /* Linux kernel name (tracepoints) */
void *probe_callback;
const struct lttng_event_ctx *ctx; /* context */
const struct lttng_event_field *fields; /* event payload */
static const struct lttng_event_desc __event_desc___##_map = { \
.fields = __event_fields___##_template, \
.name = #_map, \
+ .kname = #_name, \
.probe_callback = (void *) TP_PROBE_CB(_template), \
.nr_fields = ARRAY_SIZE(__event_fields___##_template), \
.owner = THIS_MODULE, \