diff --git a/docs/Python_API.md b/docs/Python_API.md index 63973d34b81036e5cff50dafc99a577ef3f2d3cd..4eb7c51456c523743983a0f7e21425f65fe8a563 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 7bc5b29385d07f7ac15d732f71dac6468adf6afd..8ad940755b93ec827f80d50a8a13f329fcb88bbf 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