X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=include%2Flttng%2Fevents.h;h=5d439bcbbcc0a1dc8321819032edb860565c867c;hb=c3eddb2e2effc01eee7bc778c21431bf45a8ffdc;hp=6aa880f82eb1b8737dad767b0c5e94a23a159888;hpb=484ec2179e14ae9272a7ad3d1820c837136fd144;p=lttng-modules.git diff --git a/include/lttng/events.h b/include/lttng/events.h index 6aa880f8..5d439bcb 100644 --- a/include/lttng/events.h +++ b/include/lttng/events.h @@ -353,6 +353,10 @@ struct lttng_event { int has_enablers_without_bytecode; }; +struct lttng_kernel_notifier_ctx { + int eval_capture; +}; + // FIXME: Really similar to lttng_event above. Could those be merged ? struct lttng_event_notifier { enum lttng_event_type evtype; /* First field. */ @@ -385,10 +389,12 @@ struct lttng_event_notifier { size_t num_captures; struct list_head capture_bytecode_runtime_head; int has_enablers_without_bytecode; + int eval_capture; /* Should evaluate capture */ void (*send_notification)(struct lttng_event_notifier *event_notifier, struct lttng_probe_ctx *lttng_probe_ctx, - const char *interpreter_stack_data); + const char *interpreter_stack_data, + struct lttng_kernel_notifier_ctx *notif_ctx); struct lttng_event_notifier_group *group; /* Weak ref */ };