X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=include%2Flttng%2Flttng-consumer.h;fp=include%2Flttng%2Flttng-consumer.h;h=81fd83e0ff4845574f4ddf3762129a2935bf7138;hp=e5672d7b78ef81f45d7ea8134bb288f78253f8dc;hb=6df2e2c977b698cc6b8f15c90b649516674028f9;hpb=a991f516ac2783c833ebbc6ac0ac3c0e4ca71371 diff --git a/include/lttng/lttng-consumer.h b/include/lttng/lttng-consumer.h index e5672d7b7..81fd83e0f 100644 --- a/include/lttng/lttng-consumer.h +++ b/include/lttng/lttng-consumer.h @@ -22,6 +22,7 @@ #include #include +#include #include #include @@ -120,6 +121,9 @@ struct lttng_consumer_stream { struct lttng_ust_lib_ring_buffer *buf; int cpu; int hangup_flush_done; + /* UID/GID of the user owning the session to which stream belongs */ + uid_t uid; + gid_t gid; }; /* @@ -265,7 +269,9 @@ extern struct lttng_consumer_stream *consumer_allocate_stream( enum lttng_consumer_stream_state state, uint64_t mmap_len, enum lttng_event_output output, - const char *path_name); + const char *path_name, + uid_t uid, + gid_t gid); extern int consumer_add_stream(struct lttng_consumer_stream *stream); extern void consumer_del_stream(struct lttng_consumer_stream *stream); extern void consumer_change_stream_state(int stream_key,