From ad0369dfd7ded554244d457d4d4967427ea0832f Mon Sep 17 00:00:00 2001 From: Wonbin Jin <116508975+wbjin@users.noreply.github.com> Date: Sat, 2 Nov 2024 17:11:37 -0400 Subject: [PATCH] Update zeusd/src/devices/cpu/linux.rs for supporting zeusd in docker container Co-authored-by: Jae-Won Chung --- zeusd/src/devices/cpu/linux.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zeusd/src/devices/cpu/linux.rs b/zeusd/src/devices/cpu/linux.rs index 20e9ccae..67ba8c3a 100644 --- a/zeusd/src/devices/cpu/linux.rs +++ b/zeusd/src/devices/cpu/linux.rs @@ -14,6 +14,8 @@ use tokio::time::{sleep, Duration}; use crate::devices::cpu::{CpuManager, PackageInfo}; use crate::error::ZeusdError; +// NOTE: To support Zeusd deployment in a docker container, this should support +// sysfs mounts under places like `/zeus_sys`. static RAPL_DIR: &'static str = "/sys/class/powercap/intel-rapl"; pub struct RaplCpu {