-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How we can make barectf to output logs into lttng-session? #25
Comments
I'm sure many people would be interested in getting LTTng(-UST) on FreeRTOS 😀 |
@demvy, I'm afraid there's no way to do what you want with barectf out of the box. You could indeed mimic what LTTng does with its live protocol so that you can see your data in "real time" in Babeltrace 2 (and Trace Compass I think). That being said, there's no up-to-date documentation for the LTTng live protocol. There's this, but it might be missing parts or might be hard to follow, just like the corresponding Babeltrace 2 code (most of which was moved as is from the Babeltrace 1 project). If you want to go that way, what I suggest is starting with the faux LTTng live server we're using in Babeltrace 2 to test the Another way to achieve what you want, if you just care about reading the data as your tracer produces it, is to write each CTF packet (or small group of packets) to its own file, then move it to some directory D containing them, then, periodically:
Here's an example using Bash:
Use:
This approach is similar to the recording session rotation feature of LTTng. Hope it helps. |
@eepp, thank you for good points, I'll check them. Also, about live capture of barectf log: I've thought creation of tool that will redirect data from barectf to lttng-relayd through TCP sockets. There are 2 ports: control and data. Seems, they can be emulated on barectf side. What do you think about this way? |
Sorry for the late reply.
No.
You can add two
Yes you can to that way, although I'm not sure it will be much more simple than emulating the relay daemon itself. |
Hello,
I'm pretty new in CTF tracing, but interested in LTTng and barectf. Want to trace events from my Arduino and capture them in live mode on host by LTTng (with other LTTng events). I've wrote barectf platform files to send data to one of host's devices. So, data is on host and if I collect it to file, I can read it with babeltrace.
Problem: I want to have live data from my sensors. After searching for a while, found LTTng with live mode. Seems, it is using TCP sockets, but there is no mention about how to interract.
Can I somehow connect barectf on my device and lttng on host? How to do this? Without porting lttng-ust on FreeRTOS, of course :)
Can you please help?
The text was updated successfully, but these errors were encountered: