63 lines
1.7 KiB
Diff
63 lines
1.7 KiB
Diff
From f1df31f0dfcd96791430ffc4d4f85499db35f8b2 Mon Sep 17 00:00:00 2001
|
|
From: zhoukaiqi <zhoukaiqi@huawei.com>
|
|
Date: Wed, 8 May 2024 16:02:55 +0800
|
|
Subject: [PATCH] replace enable and disable API in reflash_ring_buf
|
|
|
|
---
|
|
pmu/plugin/plugin_counting.c | 4 ++--
|
|
pmu/plugin/plugin_sampling.c | 4 ++--
|
|
pmu/plugin/plugin_uncore.c | 4 ++--
|
|
3 files changed, 6 insertions(+), 6 deletions(-)
|
|
|
|
diff --git a/pmu/plugin/plugin_counting.c b/pmu/plugin/plugin_counting.c
|
|
index 363b892..b18b8be 100644
|
|
--- a/pmu/plugin/plugin_counting.c
|
|
+++ b/pmu/plugin/plugin_counting.c
|
|
@@ -99,9 +99,9 @@ void counting_reflash_ring_buf()
|
|
return;
|
|
}
|
|
|
|
- counting_disable();
|
|
+ PmuDisable(counting_pd);
|
|
len = PmuRead(counting_pd, &counting_data);
|
|
- counting_enable();
|
|
+ PmuEnable(counting_pd);
|
|
|
|
fill_buf(data_header, counting_data, len);
|
|
}
|
|
diff --git a/pmu/plugin/plugin_sampling.c b/pmu/plugin/plugin_sampling.c
|
|
index 7adc21c..132de07 100644
|
|
--- a/pmu/plugin/plugin_sampling.c
|
|
+++ b/pmu/plugin/plugin_sampling.c
|
|
@@ -101,9 +101,9 @@ void sampling_reflash_ring_buf()
|
|
return;
|
|
}
|
|
|
|
- sampling_disable();
|
|
+ PmuDisable(sampling_pd);
|
|
len = PmuRead(sampling_pd, &sampling_data);
|
|
- sampling_enable();
|
|
+ PmuEnable(sampling_pd);
|
|
|
|
fill_buf(data_header, sampling_data, len);
|
|
}
|
|
diff --git a/pmu/plugin/plugin_uncore.c b/pmu/plugin/plugin_uncore.c
|
|
index 2042d16..070f1a7 100644
|
|
--- a/pmu/plugin/plugin_uncore.c
|
|
+++ b/pmu/plugin/plugin_uncore.c
|
|
@@ -124,9 +124,9 @@ void uncore_reflash_ring_buf()
|
|
return;
|
|
}
|
|
|
|
- uncore_disable();
|
|
+ PmuDisable(uncore_pd);
|
|
len = PmuRead(uncore_pd, &uncore_data);
|
|
- uncore_enable();
|
|
+ PmuEnable(uncore_pd);
|
|
|
|
fill_buf(data_header, uncore_data, len);
|
|
}
|
|
--
|
|
2.27.0
|
|
|