projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
probes lttng: remove compatibility code
[lttng-modules.git]
/
probes
/
lttng.c
diff --git
a/probes/lttng.c
b/probes/lttng.c
index c883429fa2e3401b83fb87181557213c008bdb40..ae7dce64399f938eaf96822389304685d944b3f8 100644
(file)
--- a/
probes/lttng.c
+++ b/
probes/lttng.c
@@
-1,4
+1,4
@@
-/* SPDX-License-Identifier: (GPL-2.0
or LGPL-2.1
)
+/* SPDX-License-Identifier: (GPL-2.0
-only or LGPL-2.1-only
)
*
* lttng.c
*
*
* lttng.c
*
@@
-16,7
+16,6
@@
#include <linux/slab.h>
#include <linux/mm.h>
#include <linux/miscdevice.h>
#include <linux/slab.h>
#include <linux/mm.h>
#include <linux/miscdevice.h>
-#include <wrapper/vmalloc.h>
#include <lttng-events.h>
#define TP_MODULE_NOAUTOLOAD
#include <lttng-events.h>
#define TP_MODULE_NOAUTOLOAD
@@
-93,6
+92,10
@@
static const struct file_operations lttng_logger_operations = {
.write = lttng_logger_write,
};
.write = lttng_logger_write,
};
+static const struct proc_ops lttng_logger_proc_ops = {
+ .proc_write = lttng_logger_write,
+};
+
static struct miscdevice logger_dev = {
.minor = MISC_DYNAMIC_MINOR,
.name = "lttng-logger",
static struct miscdevice logger_dev = {
.minor = MISC_DYNAMIC_MINOR,
.name = "lttng-logger",
@@
-104,8
+107,6
@@
int __init lttng_logger_init(void)
{
int ret = 0;
{
int ret = 0;
- wrapper_vmalloc_sync_all();
-
/* /dev/lttng-logger */
ret = misc_register(&logger_dev);
if (ret) {
/* /dev/lttng-logger */
ret = misc_register(&logger_dev);
if (ret) {
@@
-116,7
+117,7
@@
int __init lttng_logger_init(void)
/* /proc/lttng-logger */
lttng_logger_dentry = proc_create_data(LTTNG_LOGGER_FILE,
S_IRUGO | S_IWUGO, NULL,
/* /proc/lttng-logger */
lttng_logger_dentry = proc_create_data(LTTNG_LOGGER_FILE,
S_IRUGO | S_IWUGO, NULL,
- <tng_logger_
operation
s, NULL);
+ <tng_logger_
proc_op
s, NULL);
if (!lttng_logger_dentry) {
printk(KERN_ERR "Error creating LTTng logger proc file\n");
ret = -ENOMEM;
if (!lttng_logger_dentry) {
printk(KERN_ERR "Error creating LTTng logger proc file\n");
ret = -ENOMEM;
This page took
0.024915 seconds
and
4
git commands to generate.