Fix: free_event_id check should compare unsigned int with -1U
[lttng-modules.git] / lttng-abi.c
index c44989549ef64a217c6901153f08bd4734972ba3..26a02edcb0a82231bad60526b3a688eb941fe5c3 100644 (file)
@@ -1,10 +1,25 @@
 /*
  * lttng-abi.c
  *
- * Copyright 2010-2011 (c) - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
- *
  * LTTng ABI
  *
+ * Copyright (C) 2010-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; only
+ * version 2.1 of the License.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ *
  * Mimic system calls for:
  * - session creation, returns a file descriptor or failure.
  *   - channel creation, returns a file descriptor or failure.
@@ -20,8 +35,6 @@
  *     - Takes an instrumentation source as parameter
  *       - e.g. tracepoints, dynamic_probes...
  *     - Takes instrumentation source specific arguments.
- *
- * Dual LGPL v2.1/GPL v2 license.
  */
 
 #include <linux/module.h>
@@ -135,9 +148,9 @@ long lttng_abi_tracer_version(struct file *file,
 {
        struct lttng_kernel_tracer_version v;
 
-       v.version = LTTNG_VERSION;
-       v.patchlevel = LTTNG_PATCHLEVEL;
-       v.sublevel = LTTNG_SUBLEVEL;
+       v.major = LTTNG_MODULES_MAJOR_VERSION;
+       v.minor = LTTNG_MODULES_MINOR_VERSION;
+       v.patchlevel = LTTNG_MODULES_PATCHLEVEL_VERSION;
 
        if (copy_to_user(uversion_param, &v, sizeof(v)))
                return -EFAULT;
@@ -749,7 +762,7 @@ int __init lttng_abi_init(void)
        int ret = 0;
 
        wrapper_vmalloc_sync_all();
-       lttng_proc_dentry = proc_create_data("lttng", S_IWUSR, NULL,
+       lttng_proc_dentry = proc_create_data("lttng", S_IRUSR | S_IWUSR, NULL,
                                        &lttng_fops, NULL);
        
        if (!lttng_proc_dentry) {
This page took 0.024824 seconds and 4 git commands to generate.