#include <common/common.h>
#include <common/defaults.h>
+#include <common/trace-chunk.h>
#include "consumer.h"
#include "trace-kernel.h"
* Find the channel name for the given kernel session.
*/
struct ltt_kernel_channel *trace_kernel_get_channel_by_name(
- char *name, struct ltt_kernel_session *session)
+ const char *name, struct ltt_kernel_session *session)
{
struct ltt_kernel_channel *chan;
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) {
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);