projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: kernel metadata is generated on the fly for snapshot sessions
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
kernel.c
diff --git
a/src/bin/lttng-sessiond/kernel.c
b/src/bin/lttng-sessiond/kernel.c
index aac6665bef40a17021b03c88dc7f294be5e8553e..3ed65a83b206c2f3c6c374e031a428023305c80c 100644
(file)
--- a/
src/bin/lttng-sessiond/kernel.c
+++ b/
src/bin/lttng-sessiond/kernel.c
@@
-1476,7
+1476,7
@@
enum lttng_error_code kernel_clear_session(struct ltt_session *session)
assert(ksess);
assert(ksess->consumer);
assert(ksess);
assert(ksess->consumer);
- DBG("Clea
t
kernel session %s (session %" PRIu64 ")",
+ DBG("Clea
r
kernel session %s (session %" PRIu64 ")",
session->name, session->id);
rcu_read_lock();
session->name, session->id);
rcu_read_lock();
@@
-1500,6
+1500,15
@@
enum lttng_error_code kernel_clear_session(struct ltt_session *session)
}
}
}
}
+ if (!ksess->metadata) {
+ /*
+ * Nothing to do for the metadata.
+ * This is a snpashot session.
+ * The metadata is genererated on the fly.
+ */
+ continue;
+ }
+
/*
* Clear the metadata channel.
* Metadata channel is not cleared per se but we still need to
/*
* Clear the metadata channel.
* Metadata channel is not cleared per se but we still need to
This page took
0.024612 seconds
and
5
git commands to generate.