From 5087294d8174c16b0b46fc591f3fcc716cd20023 Mon Sep 17 00:00:00 2001 From: James Mills Date: Fri, 29 May 2020 12:27:22 +1000 Subject: Add support for eBPF for Netdata static64 (kickstart-static64.sh) (#9104) * Add tool to build the dist and static x864_64 artifacts * Add tool to bump the Netdata packaging version * Cleanup all the makeself scripts and update to Alpine 3.11 * Add zgrep and xz to Alpine 3.7 container used to build x86_64 static Netdata so check-kernel-config.sh does not fail * Explicitly bundle the -static varient of the eBPF kernel-collector library/programs --- packaging/installer/functions.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'packaging/installer') diff --git a/packaging/installer/functions.sh b/packaging/installer/functions.sh index 8680b3f4c5..af8e08022a 100644 --- a/packaging/installer/functions.sh +++ b/packaging/installer/functions.sh @@ -202,6 +202,11 @@ safe_pidof() { # ----------------------------------------------------------------------------- find_processors() { + # Most UNIX systems have `nproc` as part of their userland (including macOS, Linux and BSD) + if command -v nproc > /dev/null; then + nproc && return + fi + local cpus if [ -f "/proc/cpuinfo" ]; then # linux -- cgit v1.2.3