projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SoW-2020-0002: Trace Hit Counters
[lttng-tools.git]
/
src
/
common
/
utils.c
diff --git
a/src/common/utils.c
b/src/common/utils.c
index 134d2054fbde1ea74de3a8562c93c13067bfcf53..df409aa4cc6ddde35c81cda88f7b4ef7f6330894 100644
(file)
--- a/
src/common/utils.c
+++ b/
src/common/utils.c
@@
-1486,6
+1486,16
@@
fopen_error:
return ret;
}
return ret;
}
+LTTNG_HIDDEN
+int utils_get_number_of_possible_cpus(void)
+{
+ /*
+ * Return the number of configured cpus as opposed to number of online
+ * cpus.
+ */
+ return sysconf(_SC_NPROCESSORS_CONF);
+}
+
/*
* Returns an estimate of the number of bytes of memory available based on the
* the information in `/proc/meminfo`. The number returned by this function is
/*
* Returns an estimate of the number of bytes of memory available based on the
* the information in `/proc/meminfo`. The number returned by this function is
This page took
0.02461 seconds
and
5
git commands to generate.