Home
last modified time | relevance | path

Searched refs:parseMeminfoValue (Results 1 – 4 of 4) sorted by relevance

/openbmc/google-misc/subprojects/metrics-ipmi-blobs/test/
H A Dutil_test.cpp103 EXPECT_TRUE(metric_blob::parseMeminfoValue(content, "MemTotal:", value)); in TEST()
105 EXPECT_TRUE(metric_blob::parseMeminfoValue(content, "MemFree:", value)); in TEST()
108 metric_blob::parseMeminfoValue(content, "MemAvailable:", value)); in TEST()
110 EXPECT_TRUE(metric_blob::parseMeminfoValue(content, "Buffers:", value)); in TEST()
112 EXPECT_TRUE(metric_blob::parseMeminfoValue(content, "Cached:", value)); in TEST()
114 EXPECT_TRUE(metric_blob::parseMeminfoValue(content, "SwapCached:", value)); in TEST()
116 EXPECT_TRUE(metric_blob::parseMeminfoValue(content, "Active:", value)); in TEST()
124 EXPECT_FALSE(metric_blob::parseMeminfoValue(invalid, "MemTotal:", value)); in TEST()
126 EXPECT_FALSE(metric_blob::parseMeminfoValue(invalid, "x", value)); in TEST()
/openbmc/google-misc/subprojects/metrics-ipmi-blobs/
H A Dutil.hpp48 bool parseMeminfoValue(std::string_view content, std::string_view keyword,
H A Dmetric.cpp337 if (parseMeminfoValue(data, "MemAvailable:", value)) in getMemMetric()
341 if (parseMeminfoValue(data, "Slab:", value)) in getMemMetric()
346 if (parseMeminfoValue(data, "KernelStack:", value)) in getMemMetric()
H A Dutil.cpp204 bool parseMeminfoValue(const std::string_view content, in parseMeminfoValue() function