From c4af1a930d54a8118f44fdf0cb71864d28548616 Mon Sep 17 00:00:00 2001 From: Kris Nova Date: Thu, 30 Apr 2020 20:59:08 +0000 Subject: [PATCH] feat(arm support): Adjusting CGROUP_VAL_MAX for 32 bits In order to work for 32 bit we are using a long long. Tested on armv6 and armv7 chips. Signed-off-by: Kris Nova --- userspace/libsinsp/cgroup_limits.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userspace/libsinsp/cgroup_limits.cpp b/userspace/libsinsp/cgroup_limits.cpp index 78c732efae..dea4245209 100644 --- a/userspace/libsinsp/cgroup_limits.cpp +++ b/userspace/libsinsp/cgroup_limits.cpp @@ -9,7 +9,7 @@ namespace { // This reports extremely large values (e.g. almost-but-not-quite 9EiB as set by k8s) as unlimited. // Note: we use the same maximum value for cpu shares/quotas as well; the typical values are much lower // and so should never exceed CGROUP_VAL_MAX either -constexpr const int64_t CGROUP_VAL_MAX = (1UL << 42u) - 1; +constexpr const int64_t CGROUP_VAL_MAX = (1ULL << 42u) - 1; /** * \brief Read a single int64_t value from cgroupfs