Tests: Add get_possible_cpus_count utility
authorOlivier Dion <odion@efficios.com>
Wed, 1 Feb 2023 21:04:14 +0000 (16:04 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 13 Feb 2023 21:16:39 +0000 (16:16 -0500)
commit198b841770f31d35afe1e50ff52e41e7599759e3
treeebc64b0c8a2f3570b450dea1f4d0a99a5e11686e
parented0c6be4278ed647f5f7d682169557b72776484e
Tests: Add get_possible_cpus_count utility

lttng-ust uses the possible number of CPUs to allocate its ring buffers.
Certain tests have to take that into consideration in their calculation
instead of relying on online processors.

Thus, add the same logic for calculating the possible CPUs on the
system.

Change-Id: I9f14afba3e4adad9547cbd9386f8e1b1b55a3253
Signed-off-by: Olivier Dion <odion@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/utils/utils.sh
This page took 0.025147 seconds and 4 git commands to generate.