X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=include%2Flttng%2Fmsgpack.h;h=0d19518dd46b0c1d24eb0402733ec039be68438b;hb=e2a5259590728af9f088c61dafe8e5c5dd2003db;hp=a5c03ba67d56694df68c0571176a1cb6f4635aa9;hpb=afa8f7a5a71b4348647253ffe6db07ec083bdafd;p=lttng-modules.git diff --git a/include/lttng/msgpack.h b/include/lttng/msgpack.h index a5c03ba6..0d19518d 100644 --- a/include/lttng/msgpack.h +++ b/include/lttng/msgpack.h @@ -21,7 +21,6 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include #ifdef __KERNEL__ #include #else /* __KERNEL__ */ @@ -51,10 +50,15 @@ int lttng_msgpack_write_signed_integer( struct lttng_msgpack_writer *writer, int64_t value); int lttng_msgpack_write_str(struct lttng_msgpack_writer *writer, const char *value); +int lttng_msgpack_write_user_str(struct lttng_msgpack_writer *writer, + const char __user *value); int lttng_msgpack_begin_map(struct lttng_msgpack_writer *writer, size_t count); int lttng_msgpack_end_map(struct lttng_msgpack_writer *writer); int lttng_msgpack_begin_array( struct lttng_msgpack_writer *writer, size_t count); int lttng_msgpack_end_array(struct lttng_msgpack_writer *writer); +int lttng_msgpack_save_writer_pos(struct lttng_msgpack_writer *writer, uint8_t **pos); +int lttng_msgpack_restore_writer_pos(struct lttng_msgpack_writer *writer, uint8_t *pos); + #endif /* _LTTNG_KERNEL_MSGPACK_H */