X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=include%2Flttng%2Flttng-bytecode.h;h=37c0e8a04fd9700cf881c2bd566c47bb966e2611;hb=8c36b1385480103f12373817016ff22d20301f5b;hp=1ffb115e82e21fa7c301b693ff9baae8dda9f19f;hpb=dc7350d64398c28628d40d8afcfae8de9d76e6f7;p=lttng-modules.git diff --git a/include/lttng/lttng-bytecode.h b/include/lttng/lttng-bytecode.h index 1ffb115e..37c0e8a0 100644 --- a/include/lttng/lttng-bytecode.h +++ b/include/lttng/lttng-bytecode.h @@ -13,6 +13,7 @@ #include #include +#include #include /* Interpreter stack length, in number of entries */ @@ -101,6 +102,7 @@ struct bytecode_get_index_data { size_t len; enum object_type type; bool rev_bo; /* reverse byte order */ + bool user; /* from userspace */ } elem; }; @@ -110,6 +112,7 @@ struct vstack_load { enum object_type object_type; const struct lttng_kernel_event_field *field; bool rev_bo; /* reverse byte order */ + bool user; /* from userspace */ }; struct vstack_entry { @@ -179,6 +182,7 @@ struct load_ptr { const void *ptr; size_t nr_elem; bool rev_bo; + bool user; /* from userspace */ /* Temporary place-holders for contexts. */ union { int64_t s64; @@ -198,7 +202,7 @@ struct estack_entry { const char __user *user_str; size_t seq_len; enum estack_string_literal_type literal_type; - int user; /* is string from userspace ? */ + bool user; /* is string from userspace ? */ } s; struct load_ptr ptr; } u; @@ -270,7 +274,9 @@ struct lttng_interpreter_output { struct { const char *str; + const char __user *user_str; size_t len; + bool user; /* is string from userspace ? */ } str; struct { const void *ptr; @@ -291,12 +297,12 @@ int lttng_bytecode_specialize(const struct lttng_kernel_event_desc *event_desc, int lttng_bytecode_interpret_error(struct lttng_kernel_bytecode_runtime *bytecode_runtime, const char *stack_data, - struct lttng_probe_ctx *probe_ctx, + 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_probe_ctx *lttng_probe_ctx, + struct lttng_kernel_probe_ctx *lttng_probe_ctx, void *caller_ctx); #endif /* _LTTNG_FILTER_H */