*/
#include <linux/module.h>
-#include <linux/tracepoint.h>
+#include <wrapper/tracepoint.h>
#include <linux/uaccess.h>
#include <linux/gfp.h>
#include <linux/fs.h>
#define LTTNG_LOGGER_COUNT_MAX 1024
#define LTTNG_LOGGER_FILE "lttng-logger"
-DEFINE_TRACE(lttng_logger);
+LTTNG_DEFINE_TRACE(lttng_logger,
+ PARAMS(const char __user *text, size_t len),
+ PARAMS(text, len)
+);
static struct proc_dir_entry *lttng_logger_dentry;
/* /dev/lttng-logger */
ret = misc_register(&logger_dev);
if (ret) {
- printk(KERN_ERR "Error creating LTTng logger device\n");
+ printk(KERN_ERR "LTTng: Error creating logger device\n");
goto error;
}
S_IRUGO | S_IWUGO, NULL,
<tng_logger_proc_ops, NULL);
if (!lttng_logger_dentry) {
- printk(KERN_ERR "Error creating LTTng logger proc file\n");
+ printk(KERN_ERR "LTTng: Error creating logger proc file\n");
ret = -ENOMEM;
goto error_proc;
}