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

Michael Jeanson mjeanson at efficios.com
Mon Aug 15 11:55:48 EDT 2022


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