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

Elad Lahav e2lahav at gmail.com
Mon Aug 15 12:56:16 EDT 2022


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 <mjeanson at efficios.com> wrote:
>
> 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 system with CPU information. The method for getting
> > information on processors is different, and I suspect that is true for
> > *BSDs and other non-Linux OSs.
> >
> > --Elad
>
> Can you try this patch [1] to see if it fixes the build on QNX? Can you
> also run 'make check' in 'tests/unit', the linux specific tests should
> be skipped.
>
> Michael
>
> [1] https://review.lttng.org/c/userspace-rcu/+/8664


More information about the lttng-dev mailing list