X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=ltt-debugfs-abi.c;h=1314c663e77e321fc32bc638d0183bacc74f727a;hb=f5cf8eff6312d07b6e2cf012e04fce554613a748;hp=aee5bf5da37c6bc912ec694e9d265300d2ff60c3;hpb=a8ad3613f2e0e272487b8ec0f0ec8e3c6da689f9;p=lttng-modules.git diff --git a/ltt-debugfs-abi.c b/ltt-debugfs-abi.c index aee5bf5d..1314c663 100644 --- a/ltt-debugfs-abi.c +++ b/ltt-debugfs-abi.c @@ -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 @@ -154,8 +156,14 @@ long lttng_abi_add_context(struct file *file, return lttng_add_pid_to_ctx(ctx); 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; + context_param.u.perf_counter.name[LTTNG_SYM_NAME_LEN - 1] = '\0'; + return lttng_add_perf_counter_to_ctx(context_param.u.perf_counter.type, + context_param.u.perf_counter.config, + context_param.u.perf_counter.name, + ctx); case LTTNG_KERNEL_CONTEXT_COMM: return lttng_add_comm_to_ctx(ctx); default: