X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=inline;f=ltt-debugfs-abi.c;h=1314c663e77e321fc32bc638d0183bacc74f727a;hb=8289661dc0d57d1fe33253b651100ccabe5945da;hp=e192474d5bac68664039c222a30f48d0dedb0959;hpb=17baffe29814f2508556e498ab8c41a192e76b67;p=lttng-modules.git diff --git a/ltt-debugfs-abi.c b/ltt-debugfs-abi.c index e192474d..1314c663 100644 --- a/ltt-debugfs-abi.c +++ b/ltt-debugfs-abi.c @@ -159,7 +159,11 @@ long lttng_abi_add_context(struct file *file, 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: