diff --git a/powerstats/ZumaProCommonDataProviders.cpp b/powerstats/ZumaProCommonDataProviders.cpp index 8b14a6d..d63b176 100644 --- a/powerstats/ZumaProCommonDataProviders.cpp +++ b/powerstats/ZumaProCommonDataProviders.cpp @@ -475,6 +475,24 @@ void addPCIe(std::shared_ptr p) { p->addStateResidencyDataProvider(std::make_unique( "/sys/devices/platform/13120000.pcie/power_stats", pcieWifiCfgs)); + + // Add PCIe Modem GEN + const GenericStateResidencyDataProvider::StateResidencyConfig modemGenStateConfig = { + .entryCountSupported = true, + .entryCountPrefix = "count:", + .totalTimeSupported = true, + .totalTimePrefix = "duration msec:", + }; + const std::vector> modemGenStateHeaders = { + std::make_pair("GEN1", "Gen1:"), + std::make_pair("GEN3", "Gen3:"), + }; + const std::vector modemGenCfgs = { + {generateGenericStateResidencyConfigs(modemGenStateConfig, modemGenStateHeaders), + "PCIe-Modem-GEN", "link_speed:"} + }; + p->addStateResidencyDataProvider(std::make_unique( + "/sys/devices/platform/12100000.pcie/link_duration", modemGenCfgs)); } void addWifi(std::shared_ptr p) {