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: remove dead assignments while setting session trace chunk
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
trace-kernel.c
diff --git
a/src/bin/lttng-sessiond/trace-kernel.c
b/src/bin/lttng-sessiond/trace-kernel.c
index dcb1bd647b9a0a622b6cbd39c94979d1e0d30e1a..36af00b2d09a4ba3d5b97e0b74eed509fedd64c2 100644
(file)
--- a/
src/bin/lttng-sessiond/trace-kernel.c
+++ b/
src/bin/lttng-sessiond/trace-kernel.c
@@
-28,6
+28,7
@@
#include <common/common.h>
#include <common/defaults.h>
#include <common/common.h>
#include <common/defaults.h>
+#include <common/trace-chunk.h>
#include "consumer.h"
#include "trace-kernel.h"
#include "consumer.h"
#include "trace-kernel.h"
@@
-328,8
+329,8
@@
enum lttng_error_code trace_kernel_create_event(
break;
case LTTNG_EVENT_USERSPACE_PROBE:
{
break;
case LTTNG_EVENT_USERSPACE_PROBE:
{
- struct lttng_userspace_probe_location* location = NULL;
- struct lttng_userspace_probe_location_lookup_method *lookup = NULL;
+
const
struct lttng_userspace_probe_location* location = NULL;
+
const
struct lttng_userspace_probe_location_lookup_method *lookup = NULL;
location = lttng_event_get_userspace_probe_location(ev);
if (!location) {
location = lttng_event_get_userspace_probe_location(ev);
if (!location) {
@@
-709,7
+710,11
@@
void trace_kernel_destroy_session(struct ltt_kernel_session *session)
cds_list_for_each_entry_safe(channel, ctmp, &session->channel_list.head, list) {
trace_kernel_destroy_channel(channel);
}
cds_list_for_each_entry_safe(channel, ctmp, &session->channel_list.head, list) {
trace_kernel_destroy_channel(channel);
}
+}
+/* Free elements needed by destroy notifiers. */
+void trace_kernel_free_session(struct ltt_kernel_session *session)
+{
/* Wipe consumer output object */
consumer_output_put(session->consumer);
/* Wipe consumer output object */
consumer_output_put(session->consumer);
This page took
0.035075 seconds
and
4
git commands to generate.