Subbuffer size of < 4096 are accepted but unable to use the channel afterwards
Using the code attached below to create the channel:
$ gcc -llttng-ctl lttng.c -o test-lttng
$ lttng enable-event -a -u -c mychan -s mysession
Error: Events: Enable UST event failed (channel mychan, session mysession)
The error is reported when enabling an event and not the channel itself.
Updated by Mathieu Desnoyers about 11 years ago
- Status changed from New to Feedback
I tried 2 scenarios:
1) no app running, running the test program, and enable.
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.
Updated by Mathieu Desnoyers almost 11 years ago
- Status changed from Feedback to Resolved
For applications not started when issuing create channel, fixed by lttng-tools commit:
Author: David Goulet <email@example.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 <firstname.lastname@example.org>
For apps already started, it was already working fine.