oeAware-manager/0009-cycles-sample-add-elf-resolve-to-support-d-fot.patch
fly_1997 f807f0f894 fix header, spe memory free, cycles sample bugs
(cherry picked from commit f990ed00c3b7ec2393dff9d2eb60da1939e1ff4a)
2024-12-11 19:12:08 +08:00

25 lines
880 B
Diff

From 5315e7712951014a238e98ab1613e41edc0e8cb9 Mon Sep 17 00:00:00 2001
From: LHesperus <2639350497@qq.com>
Date: Wed, 4 Dec 2024 19:46:04 +0800
Subject: [PATCH 4/4] cycles sample add elf resolve to support d-fot
---
src/plugin/collect/pmu/pmu_sampling_collector.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/plugin/collect/pmu/pmu_sampling_collector.cpp b/src/plugin/collect/pmu/pmu_sampling_collector.cpp
index 8f8576f..59ba800 100644
--- a/src/plugin/collect/pmu/pmu_sampling_collector.cpp
+++ b/src/plugin/collect/pmu/pmu_sampling_collector.cpp
@@ -67,6 +67,7 @@ int PmuSamplingCollector::OpenSampling(const oeaware::Topic &topic)
if (topic.topicName == "cycles") {
attr.freq = CYCLES_FREQ;
attr.useFreq = 1;
+ attr.symbolMode = RESOLVE_ELF;
} else {
attr.period = NET_RECEIVE_TRACE_SAMPLE_PERIOD;
}
--
2.33.0