Babeltrace is an open source trace format converter.
Questions tagged [babeltrace]
22 questions
6
votes
1 answer
Building Perf with Babeltrace (for Perf to CTF Conversion)
I am trying to use TraceCompass in order to further investigate my system trace. For that purpose, you need CTF format and there are two possible ways to obtain it in Linux, afaik:
Using LTTng for tracing and using CTF format from that
Using 'perf…

mozcelikors
- 2,582
- 8
- 43
- 77
4
votes
1 answer
Wrong timestamps in lttng
I'm trying to use lttng to analyse the scheduling on a remote system.
However, displaying the trace as text format with babeltrace shows that all recorded events have the same timestamp. Consequently, the visualization in TraceCompass…

Thomas McGuire
- 5,308
- 26
- 45
2
votes
1 answer
Cloning Babeltrace events from generator for random-access traversal
I'm trying to check for a certain chain of events in an LTTNG event log using Babeltrace 1. The LTTNG log is loaded using a Babeltrace collection:
import babeltrace
my_collection =…

Some programmer dude
- 400,186
- 35
- 402
- 621
2
votes
0 answers
Is it possible to use babeltrace Python API (or any other software tool) for reading “live” LTTng traces?
I am using LTTng to trace an application. To read the LTTng trace data I am using Python API babeltrace.
I switch-on the LTTng tracing and the trace data is stored in a folder. I use Python API babeltrace to read the recorded traced data. Now, is it…

NewToCoding
- 199
- 1
- 2
- 15
1
vote
0 answers
Is there a way to use the babeltrace2-sink.text.pretty component in the c api
I'd like to use the babeltrace c api to print out formatted text for a lttng trace.
Is there any way to use the already existing component babeltrace2-sink.text.pretty?
Can someone help me with this?
Thanks in advance

OhioDschungel6
- 11
- 1
1
vote
0 answers
How to find out who is registring for lttng tracepoint probes?
I am getting an error as follows on running my application :
LTTng-UST: Error (-17) while registering tracepoint probe. Duplicate
registration of tracepoint probes having the same name is not allowed.
Based on error, looks like multiple…

Kailas
- 807
- 1
- 6
- 20
1
vote
0 answers
Building Perf with Babeltrace on CentOS 7.2 using rpms
I wish to use CTF conversion with perf. From the scarce information around, I've figured out that I need to recompile perf.
I've installed the epel repository and used yum to install
babeltrace and libbabeltrace
for the run time as well…

Robert.M.Frank
- 21
- 2
1
vote
1 answer
How can we make babeltrace survive the restart of the node and resume after restart
In lttng live streaming and looking at it through babeltrace; when the node restarts, it continues to send the traces but babeltrace has already done a shutdown because the flow has ended.
So in this stage if babeltrace is restarted manually, it…

Govardhan Reddy
- 115
- 1
- 11
0
votes
0 answers
Transform/translate Common Trace Format (CTF) data to customized pretty text
Task: get custom human readable output from already generated CTF data, like babeltrace's sink.text.pretty.
Question: Does anyone know the cheapest solution to solve this task? Has anyone already tried one of the mentioned options?
Possible…

Max
- 31
- 4
0
votes
0 answers
How can I include C with dependencies in Rust?
I want to use C code which depends on babeltrace2 in Rust.
For now I have in my main.rs, where prepare_graph is a custom C function:
#[link(name = "bt_util", kind = "static")]
extern "C" {
fn prepare_graph(
ctf_directory: *const…

HaralToepfer
- 11
- 4
0
votes
1 answer
Babeltrace2 Python binding - how to convert ClockSnapshot to a normal time stamp
How would you convert the BabelTrace ClockSnapshot into something printable in Python?
For example in:
@bt2.plugin_component_class
class MyFirstSink(bt2._UserSinkComponent):
def __init__(self, config, params, obj):
self._port =…

user1147851
- 63
- 5
0
votes
1 answer
How to get ThreadId during tracing EventSources with lttng
USING: .NET Core 6 on linux / lttng / babeltrace 2
I use lttng to collect the information about functions which were called while my program is running. I want to understand in which thread function was called.
I run this script
export…

Фёдор Надуткин
- 13
- 3
0
votes
0 answers
Babeltrace 2.0 C API usage
I' using lttng to trace the execution of a program and compute the average exectuion time of some functions. As there are millions of traces generated, Python bindings for babeltrace result to be really slow analysing them.
I was wondering if it is…

JMC
- 1
- 1
0
votes
1 answer
Generate well behaved trace in "Trace Compass" with python binding
I'm using babeltrace python binding to crate a trace file from some data I have: The data represent system execution information so there are Tasks being created and run.
I am able to display the trace file in Trace Compass: information pops up in…

Guido Roncarolo
- 51
- 1
0
votes
0 answers
Babeltrace Connection Refused
I'm using LTTng for live debugging. The target machine which I'm debugging has connectivity to only one other machine (say M1), which in turn has connectivity to the external world. I've started lttng-relayd on M1. M1 and my dev host can ping each…

Ganesh Sathyanarayanan
- 21
- 1
- 2