From 630575a33e63f4948875bf1d953c25187ce0ebc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E9=BE=99?= Date: Fri, 14 Feb 2025 14:35:45 +0800 Subject: [PATCH] fix some readme error --- docs/Python_API.md | 2 +- pmu/sample_process.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/Python_API.md b/docs/Python_API.md index 63973d3..4eb7c51 100644 --- a/docs/Python_API.md +++ b/docs/Python_API.md @@ -304,7 +304,7 @@ pd为kperf.trace_open返回值 ```python pmu_trace_data = kperf.trace_read(pd) -for pmu_trace in pmu_trace_data.iter(): +for pmu_trace in pmu_trace_data.iter: print("funcs: %s, elapsedTime: %d, pid: %d, tid: %d, cpu: %d, comm: %s" % (pmu_trace.funcs, pmu_trace.elapsedTime, pmu_trace.pid, pmu_trace.tid, pmu_trace.cpu, pmu_trace.comm)) ``` ### kperf.trace_close diff --git a/pmu/sample_process.h b/pmu/sample_process.h index 7bc5b29..8ad9407 100644 --- a/pmu/sample_process.h +++ b/pmu/sample_process.h @@ -25,7 +25,6 @@ namespace KUNPENG_PMU { int RingbufferReadInit(PerfMmap& map); void PerfMmapConsume(PerfMmap& map); void PerfMmapReadDone(PerfMmap& map); - int CreateRingbuffer(PerfMmap& map, int mask, int prot, int fd); } // namespace KUNPENG_PMU -- Gitee