projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean-up: replace uses of `int enabled` with boolean flags
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
trace-ust.hpp
diff --git
a/src/bin/lttng-sessiond/trace-ust.hpp
b/src/bin/lttng-sessiond/trace-ust.hpp
index 99995373a3c50f2ccb7bc9984c6934b93f35a9db..46a69fe9d5f3105814ecf5853d02100993e80b8d 100644
(file)
--- 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 {
/* 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;
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. */
/* 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.
/*
* 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. */
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;
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);
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.
/*
* 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;
}
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)),
static inline
struct agent *trace_ust_find_agent(
struct ltt_ust_session *session __attribute__((unused)),
This page took
0.031159 seconds
and
4
git commands to generate.