projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix perf counter test bug
[lttng-modules.git]
/
ltt-debugfs-abi.c
diff --git
a/ltt-debugfs-abi.c
b/ltt-debugfs-abi.c
index e192474d5bac68664039c222a30f48d0dedb0959..1314c663e77e321fc32bc638d0183bacc74f727a 100644
(file)
--- 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:
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:
case LTTNG_KERNEL_CONTEXT_COMM:
return lttng_add_comm_to_ctx(ctx);
default:
This page took
0.034976 seconds
and
4
git commands to generate.