projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tests: Introduce conf_proc_count()
[lttng-tools.git]
/
tests
/
utils
/
utils.sh
diff --git
a/tests/utils/utils.sh
b/tests/utils/utils.sh
index 9e78dc23478ccf582aad94fb5f8b8b9c68c13052..1f116a6d66134d2115db8dcd838e4077338376e0 100644
(file)
--- a/
tests/utils/utils.sh
+++ b/
tests/utils/utils.sh
@@
-92,6
+92,16
@@
function randstring()
echo
}
echo
}
+# Return the number of _configured_ CPUs.
+function conf_proc_count()
+{
+ getconf _NPROCESSORS_CONF
+ if [ $? -ne 0 ]; then
+ diag "Failed to get the number of configured CPUs"
+ fi
+ echo
+}
+
function lttng_enable_kernel_event
{
local sess_name=$1
function lttng_enable_kernel_event
{
local sess_name=$1
This page took
0.023044 seconds
and
4
git commands to generate.