Re: [lttng-dev] babeltrace2 python api related question

2022-08-15 Thread Philippe Proulx via lttng-dev
On Sun, Aug 14, 2022 at 4:48 AM zenan wrote: > > In command line, I use “babeltrace2 net://somehost/some-session” to read live > lttng session trace, and I want to use python bindings to do the same, is it > possible? > > here is my code: Almost there. Some `src.ctf.lttng-live` component and

Re: [lttng-dev] Change to CPU number detection breaks QNX compilation

2022-08-15 Thread Elad Lahav via lttng-dev
/bin/sh on QNX is (by default) ksh, not bash, so perhaps that's the issue. Shouldn't block you from submitting that change. +1 from me, if that matters ;-) --Elad On Mon, 15 Aug 2022 at 13:39, Michael Jeanson wrote: > > On 2022-08-15 12 h 56, Elad Lahav wrote: > > That fixes the build, thanks.

Re: [lttng-dev] Change to CPU number detection breaks QNX compilation

2022-08-15 Thread Michael Jeanson via lttng-dev
On 2022-08-15 12 h 56, Elad Lahav wrote: That fixes the build, thanks. I see some errors coming out of "make check", though: ERROR: test_get_cpu_mask_from_sysfs - missing test plan ERROR: test_get_cpu_mask_from_sysfs - exited with status 1 --Elad I tested on Freebsd (as a non-linux target)

Re: [lttng-dev] Change to CPU number detection breaks QNX compilation

2022-08-15 Thread Elad Lahav via lttng-dev
That fixes the build, thanks. I see some errors coming out of "make check", though: ERROR: test_get_cpu_mask_from_sysfs - missing test plan ERROR: test_get_cpu_mask_from_sysfs - exited with status 1 --Elad On Mon, 15 Aug 2022 at 11:55, Michael Jeanson wrote: > > On 2022-08-15 10 h 04, Elad

Re: [lttng-dev] Change to CPU number detection breaks QNX compilation

2022-08-15 Thread Michael Jeanson via lttng-dev
On 2022-08-15 10 h 04, Elad Lahav wrote: The problem is the use of d_type as a member of the dirent structure. POSIX does not define such a member. I can provide the necessary code for getting the file type in a readdir() loop on QNX, but it seems unnecessary given that there is no /sys file

Re: [lttng-dev] Change to CPU number detection breaks QNX compilation

2022-08-15 Thread Michael Jeanson via lttng-dev
On 2022-08-13 19 h 10, Elad Lahav via lttng-dev wrote: Hello, I have just downloaded and built the library for QNX/aarch64 and noticed that the code in compat-smp.h breaks the build. This file appears to be a (very) recent addition, from this commit: --- commit

[lttng-dev] babeltrace2 python api related question

2022-08-15 Thread zenan via lttng-dev
In command line, I use “babeltrace2 net://somehost/some-session” to read live lttng session trace, and I want to use python bindings to do the same, is it possible? here is my code: import bt2 import sys # Create an empty graph. graph = bt2.Graph() # Add a `source.text.dmesg` component. #