From 7d08b3b2b638bc75c8a37ceafdb79a410d0b0bac Mon Sep 17 00:00:00 2001 From: Hailong Liu Date: Tue, 18 Apr 2023 03:09:09 +0000 Subject: [PATCH] podMan: Fix some bugs Signed-off-by: Hailong Liu --- .../monitor/unity/collector/plugin/pmu_events/pmu_events.c | 2 +- source/tools/monitor/unity/collector/podMan/podFilter.lua | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/source/tools/monitor/unity/collector/plugin/pmu_events/pmu_events.c b/source/tools/monitor/unity/collector/plugin/pmu_events/pmu_events.c index f92af0f0..03aab36a 100644 --- a/source/tools/monitor/unity/collector/plugin/pmu_events/pmu_events.c +++ b/source/tools/monitor/unity/collector/plugin/pmu_events/pmu_events.c @@ -10,7 +10,7 @@ double summary[NR_EVENTS]; struct pcpu_hw_info *gpcpu_hwi; struct pmu_events *glb_pme; char *events_str[] = {"cycles", "ins", "refCyc", - "llcLoadMis", "llcStoreMis" + "llcLoadMis", "llcStoreMis", "llcLoad", "llcStore"}; char *value_str[] = {"cycles", "instructions", "CPI", "llc_load_ref", "llc_load_miss", "LLC_LMISS_RATE" diff --git a/source/tools/monitor/unity/collector/podMan/podFilter.lua b/source/tools/monitor/unity/collector/podMan/podFilter.lua index a1138215..60d62180 100644 --- a/source/tools/monitor/unity/collector/podMan/podFilter.lua +++ b/source/tools/monitor/unity/collector/podMan/podFilter.lua @@ -158,6 +158,7 @@ function CpodFilter:proc(elapsed, lines) local rec = {} if self._ino:isChange() then print("cgroup changed.") + local start = lua_local_clock() self._ino = Cinotifies.new() local newdirs = self:walkTops1(self._resYaml.container) --remove unacess able path @@ -173,7 +174,9 @@ function CpodFilter:proc(elapsed, lines) collectgarbage("collect") ret = 1 + local stop = lua_local_clock() print("add ".. #self._plugins) + delta = stop - start return ret, delta end -- Gitee