]> git.lttng.org Git - lttng-tools.git/commit
common: Add helper to get max possible CPU count
authorKienan Stewart <kstewart@efficios.com>
Wed, 13 Nov 2024 19:53:03 +0000 (14:53 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 3 Dec 2024 18:35:02 +0000 (13:35 -0500)
commitf338ec6562c62f8d88a6c5fe968bc5f555d2afe4
treedcd44dc34354f38303595da9f1e56ddcc848a9dc
parent8c914f59259a286cd684a252adb7c96ad15d5d05
common: Add helper to get max possible CPU count

`get_max_possible_cpu_id()` is adapted from lttng-ust[1].

[1]: https://github.com/lttng/lttng-ust/blob/c0de10a2dab6d5cc6568e12c0ad3b97d85e0dc6b/src/common/smp.c#L197

Change-Id: I2697be51b21dad424c74d7397c1e6649ca7456bb
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/defaults.hpp
src/common/exception.hpp
src/common/utils.cpp
src/common/utils.hpp
This page took 0.030473 seconds and 4 git commands to generate.