From 1867be14cee78bc822685cbb815d333b7ccab569 Mon Sep 17 00:00:00 2001 From: Hailong Liu Date: Thu, 29 Jun 2023 14:59:44 +0800 Subject: [PATCH] pmu_events: Fix the null pointer in string array Signed-off-by: Hailong Liu --- .../monitor/unity/collector/plugin/pmu_events/pmu_events.c | 2 +- 1 file changed, 1 insertion(+), 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" -- Gitee