X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=ltt-debugfs-abi.c;h=1314c663e77e321fc32bc638d0183bacc74f727a;hb=c24a0d710f6aac1484bd02bb6375e8de7429edd0;hp=e192474d5bac68664039c222a30f48d0dedb0959;hpb=a0bea89bba00be4c2fc348b7c21fa7b0e4298a66;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: