diff --git a/docs/Details_Usage.md b/docs/Details_Usage.md index 09119ba2e46e4e4fe2ceef46297d1be0e69d0ae2..6cff99953cf3d8edd43a25105536adc9c1143ac5 100644 --- a/docs/Details_Usage.md +++ b/docs/Details_Usage.md @@ -337,7 +337,6 @@ int main() { printf("event:%s pid=%d tid=%d cpu=%d count=%llu\n",data[i].evt,data[i].pid,data[i].tid,data[i].cpu,data[i].count); } PmuDataFree(data); - PmuDisable(pd); PmuClose(pd); return 0; } diff --git a/pmu/perf_counter_default.cpp b/pmu/perf_counter_default.cpp index 4e45f697077155772089b654252011c47587fad3..0dd1ec599e5cf037633f0920a44417e84e1d0f33 100644 --- a/pmu/perf_counter_default.cpp +++ b/pmu/perf_counter_default.cpp @@ -421,9 +421,6 @@ int KUNPENG_PMU::PerfCounterDefault::Disable() int KUNPENG_PMU::PerfCounterDefault::Reset() { - if (groupFd != -1) { - return SUCCESS; - } return PerfEvt::Reset(); }