Rename struct lttng_probe_ctx to struct lttng_kernel_probe_ctx
[lttng-modules.git] / include / lttng / lttng-bytecode.h
index b72d9a2a8c590197e515a90a4c7278d7cfc2b09a..87a0c13d95c4631f2ffcf1752553970cf9bec12e 100644 (file)
@@ -34,9 +34,9 @@ do {                                                          \
 } while (0)
 #endif
 
-/* Linked bytecode. Child of struct lttng_bytecode_runtime. */
+/* Linked bytecode. Child of struct lttng_kernel_bytecode_runtime. */
 struct bytecode_runtime {
-       struct lttng_bytecode_runtime p;
+       struct lttng_kernel_bytecode_runtime p;
        size_t data_len;
        size_t data_alloc_len;
        char *data;
@@ -284,26 +284,19 @@ struct lttng_interpreter_output {
 
 const char *lttng_bytecode_print_op(enum bytecode_op op);
 
-void lttng_bytecode_filter_sync_state(struct lttng_bytecode_runtime *runtime);
-void lttng_bytecode_capture_sync_state(struct lttng_bytecode_runtime *runtime);
+void lttng_bytecode_sync_state(struct lttng_kernel_bytecode_runtime *runtime);
 int lttng_bytecode_validate(struct bytecode_runtime *bytecode);
 int lttng_bytecode_specialize(const struct lttng_kernel_event_desc *event_desc,
                struct bytecode_runtime *bytecode);
 
-uint64_t lttng_bytecode_filter_interpret_false(void *filter_data,
-               struct lttng_probe_ctx *lttng_probe_ctx,
-               const char *filter_stack_data);
-uint64_t lttng_bytecode_filter_interpret(void *filter_data,
-               struct lttng_probe_ctx *lttng_probe_ctx,
-               const char *filter_stack_data);
-
-uint64_t lttng_bytecode_capture_interpret_false(void *capture_data,
-               struct lttng_probe_ctx *lttng_probe_ctx,
-               const char *capture_stack_data,
-               struct lttng_interpreter_output *output);
-uint64_t lttng_bytecode_capture_interpret(void *capture_data,
-               struct lttng_probe_ctx *lttng_probe_ctx,
-               const char *capture_stack_data,
-               struct lttng_interpreter_output *output);
+int lttng_bytecode_interpret_error(struct lttng_kernel_bytecode_runtime *bytecode_runtime,
+               const char *stack_data,
+               struct lttng_kernel_probe_ctx *probe_ctx,
+               void *ctx);
+
+int lttng_bytecode_interpret(struct lttng_kernel_bytecode_runtime *kernel_bytecode,
+               const char *interpreter_stack_data,
+               struct lttng_kernel_probe_ctx *lttng_probe_ctx,
+               void *caller_ctx);
 
 #endif /* _LTTNG_FILTER_H */
This page took 0.024463 seconds and 4 git commands to generate.