Update licensing info
[lttng-modules.git] / ltt-debugfs-abi.c
index d8164ffc360abac632f4c2ad9372e60fc204e085..e192474d5bac68664039c222a30f48d0dedb0959 100644 (file)
@@ -20,6 +20,8 @@
  *     - 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>
@@ -150,10 +152,16 @@ long lttng_abi_add_context(struct file *file,
                return -EFAULT;
 
        switch (context_param.ctx) {
-       case LTTNG_CONTEXT_PID:
+       case LTTNG_KERNEL_CONTEXT_PID:
                return lttng_add_pid_to_ctx(ctx);
-       case LTTNG_CONTEXT_PERF_COUNTER:
+       case LTTNG_KERNEL_CONTEXT_PRIO:
+               return lttng_add_prio_to_ctx(ctx);
+       case LTTNG_KERNEL_CONTEXT_NICE:
+               return lttng_add_nice_to_ctx(ctx);
+       case LTTNG_KERNEL_CONTEXT_PERF_COUNTER:
                return -ENOSYS;
+       case LTTNG_KERNEL_CONTEXT_COMM:
+               return lttng_add_comm_to_ctx(ctx);
        default:
                return -EINVAL;
        }
This page took 0.023782 seconds and 4 git commands to generate.