lttng-dev.lists.lttng.org archive mirror
 help / color / mirror / Atom feed
* [lttng-dev] Change to CPU number detection breaks QNX compilation
@ 2022-08-13 23:10 Elad Lahav via lttng-dev
  2022-08-15 13:53 ` Michael Jeanson via lttng-dev
  0 siblings, 1 reply; 7+ messages in thread
From: Elad Lahav via lttng-dev @ 2022-08-13 23:10 UTC (permalink / raw)
  To: lttng-dev

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 5cfe81b7ddff9543d451746de9965cac58c67182
Author: Michael Jeanson <mjeanson@efficios.com>
Date:   Wed Jul 27 10:44:00 2022 -0400

    fix: sysconf(_SC_NPROCESSORS_CONF) can be less than max cpu id

---

I started working around it, but it got a bit ugly. Is the change not
a Linuxism? Does it make sense on other systems? If QNX is the
exception then I can try to come up with a patch, but if not perhaps
the entire code should be wrapped by #ifdef __linux__?

--Elad
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-08-16 15:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-13 23:10 [lttng-dev] Change to CPU number detection breaks QNX compilation Elad Lahav via lttng-dev
2022-08-15 13:53 ` Michael Jeanson via lttng-dev
     [not found]   ` <CAJbg=FWjjBT1RbGxvCcx1+6qgJfhqtF3h3WpLB11cGSb1Efzqw@mail.gmail.com>
2022-08-15 15:55     ` Michael Jeanson via lttng-dev
2022-08-15 16:56       ` Elad Lahav via lttng-dev
2022-08-15 17:39         ` Michael Jeanson via lttng-dev
2022-08-15 17:52           ` Elad Lahav via lttng-dev
2022-08-16 15:20             ` Michael Jeanson via lttng-dev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).