X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Ftrace-ust.hpp;h=46a69fe9d5f3105814ecf5853d02100993e80b8d;hb=66cefebdc240cbae0bc79594305f509b0779fa98;hp=99995373a3c50f2ccb7bc9984c6934b93f35a9db;hpb=c9e313bc594f40a86eed237dce222c0fc99c957f;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/trace-ust.hpp b/src/bin/lttng-sessiond/trace-ust.hpp index 99995373a..46a69fe9d 100644 --- a/src/bin/lttng-sessiond/trace-ust.hpp +++ b/src/bin/lttng-sessiond/trace-ust.hpp @@ -39,7 +39,7 @@ struct ltt_ust_context { /* UST event */ struct ltt_ust_event { - unsigned int enabled; + bool enabled; struct lttng_ust_abi_event attr; struct lttng_ht_node_str node; char *filter_expression; @@ -57,7 +57,7 @@ struct ltt_ust_event { /* UST channel */ struct ltt_ust_channel { uint64_t id; /* unique id per session. */ - unsigned int enabled; + bool enabled; /* * A UST channel can be part of a userspace sub-domain such as JUL, * Log4j, Python. @@ -100,7 +100,7 @@ struct ltt_ust_session { uid_t uid; gid_t gid; /* Is the session active meaning has is been started or stopped. */ - unsigned int active:1; + bool active; struct consumer_output *consumer; /* Sequence number for filters so the tracer knows the ordering. */ uint64_t filter_seq_num; @@ -209,6 +209,8 @@ int trace_ust_match_context(const struct ltt_ust_context *uctx, void trace_ust_delete_channel(struct lttng_ht *ht, struct ltt_ust_channel *channel); +int trace_ust_regenerate_metadata(struct ltt_ust_session *usess); + /* * Destroy functions free() the data structure and remove from linked list if * it's applies. @@ -348,6 +350,12 @@ void trace_ust_delete_channel( return; } +static inline int trace_ust_regenerate_metadata( + struct ltt_ust_session *usess __attribute__((unused))) +{ + return 0; +} + static inline struct agent *trace_ust_find_agent( struct ltt_ust_session *session __attribute__((unused)),