Bug #339
closedSubbuffer size of < 4096 are accepted but unable to use the channel afterwards
0%
Description
Using the code attached below to create the channel:
$ gcc -llttng-ctl lttng.c -o test-lttng
and
$ ./test-lttng
$ lttng enable-event -a -u -c mychan -s mysession
Outputs:
Error: Events: Enable UST event failed (channel mychan, session mysession)
The error is reported when enabling an event and not the channel itself.
Thanks!
Files
Updated by Mathieu Desnoyers about 12 years ago
- Status changed from New to Feedback
I tried 2 scenarios:
1) no app running, running the test program, and enable.
No error.
2) hello running in background (in a 3000 sec. wait), running the test program fails with:
Enable channel: UST create channel failed
(and there seems to be a missing \n after the error message)
So I cannot reproduce your problem. Maybe you ran the test prog, launched an UST app, and then got the error at enable event ?
Please detail your test case, including whether an UST app is running or not, so I can reproduce.
Thanks,
Mathieu
Updated by Mathieu Desnoyers about 12 years ago
- Status changed from Feedback to Resolved
For applications not started when issuing create channel, fixed by lttng-tools commit:
commit 95e047ff8e01767e2e18b892f7a1ba9bf28abcbe
Author: David Goulet <dgoulet@efficios.com>
Date: Thu Dec 13 17:51:45 2012 -0500
Fix: RCU unlock out of error path
On channel error, RCU was not unlocking the read side. Furthermore,
remove a check for a NULL session that was also not going through an RCU
unlock. Change it to an assert.
This also adds a channel subbuf size check when enabling a channel.
Signed-off-by: David Goulet <dgoulet@efficios.com>
For apps already started, it was already working fine.