Remove unused TRACEPOINT_HAS_DATA_ARG
[lttng-modules.git] / include / lttng / events.h
index 122ebc9608e082baaeb08d5efe75e8fc4b965f79..676d2869cbfa47c28050ee3a22f3d2200a6ab6bf 100644 (file)
@@ -292,7 +292,7 @@ struct lttng_kernel_event_field {
                }                                                                                       \
        }),
 
-struct lttng_probe_ctx {
+struct lttng_kernel_probe_ctx {
        struct lttng_kernel_event_common *event;
        uint8_t interruptible;
 };
@@ -318,46 +318,6 @@ struct lttng_kernel_probe_desc {
 
 struct lttng_krp;                              /* Kretprobe handling */
 
-enum lttng_kernel_bytecode_type {
-       LTTNG_KERNEL_BYTECODE_TYPE_FILTER,
-       LTTNG_KERNEL_BYTECODE_TYPE_CAPTURE,
-};
-
-struct lttng_bytecode_node {
-       enum lttng_kernel_bytecode_type type;
-       struct list_head node;
-       struct lttng_enabler *enabler;
-       struct {
-               uint32_t len;
-               uint32_t reloc_offset;
-               uint64_t seqnum;
-               char data[];
-       } bc;
-};
-
-struct lttng_interpreter_output;
-
-struct lttng_bytecode_runtime {
-       /* Associated bytecode */
-       enum lttng_kernel_bytecode_type type;
-       struct lttng_bytecode_node *bc;
-       int (*interpreter_func)(struct lttng_bytecode_runtime *kernel_bytecode,
-                               const char *interpreter_stack_data,
-                               struct lttng_probe_ctx *lttng_probe_ctx,
-                               void *caller_ctx);
-       int link_failed;
-       struct list_head node;  /* list of bytecode runtime in event */
-       struct lttng_kernel_ctx *ctx;
-};
-
-/*
- * Objects in a linked-list of enablers, owned by an event.
- */
-struct lttng_enabler_ref {
-       struct list_head node;                  /* enabler ref list */
-       struct lttng_enabler *ref;              /* backward ref */
-};
-
 struct lttng_uprobe_handler {
        struct lttng_kernel_event_common *event;
        loff_t offset;
@@ -410,7 +370,7 @@ struct lttng_kernel_event_common {
        int eval_filter;                                /* Need to evaluate filters */
        int (*run_filter)(const struct lttng_kernel_event_common *event,
                const char *stack_data,
-               struct lttng_probe_ctx *probe_ctx,
+               struct lttng_kernel_probe_ctx *probe_ctx,
                void *filter_ctx);
 };
 
@@ -436,15 +396,10 @@ struct lttng_kernel_event_notifier {
        int eval_capture;                               /* Need to evaluate capture */
        void (*notification_send)(struct lttng_kernel_event_notifier *event_notifier,
                const char *stack_data,
-               struct lttng_probe_ctx *probe_ctx,
+               struct lttng_kernel_probe_ctx *probe_ctx,
                struct lttng_kernel_notification_ctx *notif_ctx);
 };
 
-enum lttng_enabler_format_type {
-       LTTNG_ENABLER_FORMAT_STAR_GLOB,
-       LTTNG_ENABLER_FORMAT_NAME,
-};
-
 struct lttng_channel_ops {
        struct channel *(*channel_create)(const char *name,
                                void *priv,
@@ -733,22 +688,6 @@ void lttng_unlock_sessions(void);
 
 struct list_head *lttng_get_probe_list_head(void);
 
-struct lttng_event_enabler *lttng_event_enabler_create(
-               enum lttng_enabler_format_type format_type,
-               struct lttng_kernel_abi_event *event_param,
-               struct lttng_channel *chan);
-
-int lttng_event_enabler_enable(struct lttng_event_enabler *event_enabler);
-int lttng_event_enabler_disable(struct lttng_event_enabler *event_enabler);
-struct lttng_event_notifier_enabler *lttng_event_notifier_enabler_create(
-               struct lttng_event_notifier_group *event_notifier_group,
-               enum lttng_enabler_format_type format_type,
-               struct lttng_kernel_abi_event_notifier *event_notifier_param);
-
-int lttng_event_notifier_enabler_enable(
-               struct lttng_event_notifier_enabler *event_notifier_enabler);
-int lttng_event_notifier_enabler_disable(
-               struct lttng_event_notifier_enabler *event_notifier_enabler);
 int lttng_fix_pending_events(void);
 int lttng_fix_pending_event_notifiers(void);
 int lttng_session_active(void);
@@ -868,106 +807,6 @@ int lttng_session_list_tracker_ids(struct lttng_session *session,
 void lttng_clock_ref(void);
 void lttng_clock_unref(void);
 
-int lttng_desc_match_enabler(const struct lttng_kernel_event_desc *desc,
-               struct lttng_enabler *enabler);
-
-#if defined(CONFIG_HAVE_SYSCALL_TRACEPOINTS)
-int lttng_syscalls_register_event(struct lttng_event_enabler *event_enabler);
-int lttng_syscalls_unregister_channel(struct lttng_channel *chan);
-int lttng_syscalls_destroy_event(struct lttng_channel *chan);
-int lttng_syscall_filter_enable_event(
-               struct lttng_channel *chan,
-               struct lttng_kernel_event_recorder *event);
-int lttng_syscall_filter_disable_event(
-               struct lttng_channel *chan,
-               struct lttng_kernel_event_recorder *event);
-
-long lttng_channel_syscall_mask(struct lttng_channel *channel,
-               struct lttng_kernel_abi_syscall_mask __user *usyscall_mask);
-
-int lttng_syscalls_register_event_notifier(
-               struct lttng_event_notifier_enabler *event_notifier_enabler);
-int lttng_syscalls_create_matching_event_notifiers(
-               struct lttng_event_notifier_enabler *event_notifier_enabler);
-int lttng_syscalls_unregister_event_notifier_group(struct lttng_event_notifier_group *group);
-int lttng_syscall_filter_enable_event_notifier(struct lttng_kernel_event_notifier *event_notifier);
-int lttng_syscall_filter_disable_event_notifier(struct lttng_kernel_event_notifier *event_notifier);
-#else
-static inline int lttng_syscalls_register_event(
-               struct lttng_event_enabler *event_enabler)
-{
-       return -ENOSYS;
-}
-
-static inline int lttng_syscalls_unregister_channel(struct lttng_channel *chan)
-{
-       return 0;
-}
-
-static inline int lttng_syscalls_destroy(struct lttng_channel *chan)
-{
-       return 0;
-}
-
-static inline int lttng_syscall_filter_enable_event(struct lttng_channel *chan,
-               struct lttng_kernel_event_recorder *event);
-{
-       return -ENOSYS;
-}
-
-static inline int lttng_syscall_filter_disable_event(struct lttng_channel *chan,
-               struct lttng_kernel_event_recorder *event);
-{
-       return -ENOSYS;
-}
-
-static inline long lttng_channel_syscall_mask(struct lttng_channel *channel,
-               struct lttng_kernel_syscall_mask __user *usyscall_mask)
-{
-       return -ENOSYS;
-}
-
-static inline int lttng_syscalls_register_event_notifier(
-               struct lttng_event_notifier_group *group)
-{
-       return -ENOSYS;
-}
-
-static inline int lttng_syscalls_unregister_event_notifier_group(
-               struct lttng_event_notifier_group *group)
-{
-       return 0;
-}
-
-static inline int lttng_syscall_filter_enable_event_notifier(
-               struct lttng_event_notifier_group *group,
-               const char *name)
-{
-       return -ENOSYS;
-}
-
-static inline int lttng_syscall_filter_disable_event_notifier(
-               struct lttng_event_notifier_group *group,
-               const char *name)
-{
-       return -ENOSYS;
-}
-
-#endif
-
-int lttng_event_enabler_attach_filter_bytecode(struct lttng_event_enabler *event_enabler,
-               struct lttng_kernel_abi_filter_bytecode __user *bytecode);
-int lttng_event_notifier_enabler_attach_filter_bytecode(
-               struct lttng_event_notifier_enabler *event_notifier_enabler,
-               struct lttng_kernel_abi_filter_bytecode __user *bytecode);
-int lttng_event_notifier_enabler_attach_capture_bytecode(
-               struct lttng_event_notifier_enabler *event_notifier_enabler,
-               struct lttng_kernel_abi_capture_bytecode __user *bytecode);
-
-void lttng_enabler_link_bytecode(const struct lttng_kernel_event_desc *event_desc,
-               struct lttng_kernel_ctx *ctx,
-               struct list_head *instance_bytecode_runtime_head,
-               struct list_head *enabler_bytecode_runtime_head);
 void lttng_free_event_filter_runtime(struct lttng_kernel_event_common *event);
 
 int lttng_probes_init(void);
@@ -1135,6 +974,4 @@ int lttng_calibrate(struct lttng_kernel_abi_calibrate *calibrate);
 extern const struct file_operations lttng_tracepoint_list_fops;
 extern const struct file_operations lttng_syscall_list_fops;
 
-#define TRACEPOINT_HAS_DATA_ARG
-
 #endif /* _LTTNG_EVENTS_H */
This page took 0.025216 seconds and 4 git commands to generate.