//ust// #include <linux/mutex.h>
//ust// #include <linux/vmalloc.h>
-#include "kernelcompat.h"
+#include <ust/kernelcompat.h>
#include "channels.h"
#include "usterr.h"
-#include "marker.h"
+#include <ust/marker.h>
/*
* ltt_channel_mutex may be nested inside the LTT trace mutex.
* Called with trace lock held. Does not perform the trace buffer allocation,
* because we must let the user overwrite specific channel sizes.
*/
-struct ltt_channel_struct *ltt_channels_trace_alloc(unsigned int *nr_channels,
+struct ust_channel *ltt_channels_trace_alloc(unsigned int *nr_channels,
int overwrite,
int active)
{
- struct ltt_channel_struct *channel = NULL;
+ struct ust_channel *channel = NULL;
struct ltt_channel_setting *iter;
mutex_lock(<t_channel_mutex);
else
kref_get(&index_kref);
*nr_channels = free_index;
- channel = kzalloc(sizeof(struct ltt_channel_struct) * free_index,
+ channel = kzalloc(sizeof(struct ust_channel) * free_index,
GFP_KERNEL);
if (!channel) {
WARN("ltt_channel_struct: channel null after alloc");
* Called with trace lock held. The actual channel buffers must be freed before
* this function is called.
*/
-void ltt_channels_trace_free(struct ltt_channel_struct *channels)
+void ltt_channels_trace_free(struct ust_channel *channels)
{
lock_markers();
mutex_lock(<t_channel_mutex);