#include "kernelcompat.h"
#include "channels.h"
+#include "usterr.h"
/*
* ltt_channel_mutex may be nested inside the LTT trace mutex.
struct ltt_channel_setting *iter;
mutex_lock(<t_channel_mutex);
- if (!free_index)
+ if (!free_index) {
+ WARN("ltt_channels_trace_alloc: no free_index; are there any probes connected?");
goto end;
+ }
if (!atomic_read(&index_kref.refcount))
kref_init(&index_kref);
else
*nr_channels = free_index;
channel = kzalloc(sizeof(struct ltt_channel_struct) * free_index,
GFP_KERNEL);
- if (!channel)
+ if (!channel) {
+ WARN("ltt_channel_struct: channel null after alloc");
goto end;
+ }
list_for_each_entry(iter, <t_channels, list) {
if (!atomic_read(&iter->kref.refcount))
continue;
ret = 0;
else if (strcmp(name, "core_marker_format") == 0)
ret = 1;
+ else if (strcmp(name, "testev") == 0)
+ ret = 2;
else
ret = -ENOENT;
goto end;