projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: tracepoint: Optimize using static_call() (v5.10)
[lttng-modules.git]
/
src
/
probes
/
lttng.c
diff --git
a/src/probes/lttng.c
b/src/probes/lttng.c
index 8a0dd4b8acdcefe06015d37d2599bb01ef7b907b..1892d5896d25780d763fded733f78bde086f072f 100644
(file)
--- a/
src/probes/lttng.c
+++ b/
src/probes/lttng.c
@@
-8,7
+8,7
@@
*/
#include <linux/module.h>
*/
#include <linux/module.h>
-#include <
linux
/tracepoint.h>
+#include <
wrapper
/tracepoint.h>
#include <linux/uaccess.h>
#include <linux/gfp.h>
#include <linux/fs.h>
#include <linux/uaccess.h>
#include <linux/gfp.h>
#include <linux/fs.h>
@@
-32,7
+32,10
@@
#define LTTNG_LOGGER_COUNT_MAX 1024
#define LTTNG_LOGGER_FILE "lttng-logger"
#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;
static struct proc_dir_entry *lttng_logger_dentry;
@@
-121,7
+124,7
@@
int __init lttng_logger_init(void)
/* /dev/lttng-logger */
ret = misc_register(&logger_dev);
if (ret) {
/* /dev/lttng-logger */
ret = misc_register(&logger_dev);
if (ret) {
- printk(KERN_ERR "
Error creating LTT
ng logger device\n");
+ printk(KERN_ERR "
LTTng: Error creati
ng logger device\n");
goto error;
}
goto error;
}
@@
-130,7
+133,7
@@
int __init lttng_logger_init(void)
S_IRUGO | S_IWUGO, NULL,
<tng_logger_proc_ops, NULL);
if (!lttng_logger_dentry) {
S_IRUGO | S_IWUGO, NULL,
<tng_logger_proc_ops, NULL);
if (!lttng_logger_dentry) {
- printk(KERN_ERR "
Error creating LTT
ng logger proc file\n");
+ printk(KERN_ERR "
LTTng: Error creati
ng logger proc file\n");
ret = -ENOMEM;
goto error_proc;
}
ret = -ENOMEM;
goto error_proc;
}
This page took
0.033961 seconds
and
4
git commands to generate.