Messages in this thread | | | Subject | Re: [PATCH 1/5] perf: Provide a proper stop action for software events | From | Peter Zijlstra <> | Date | Thu, 10 Jun 2010 18:38:34 +0200 |
| |
On Thu, 2010-06-10 at 18:29 +0200, Frederic Weisbecker wrote:
> Imagine you have several software and hardware events running on the > same cpu. Each time you reset this period for a software event, you do > a hw_pmu_disable() / hw_pmu_enable(), which writes/read the hardware > register for each hardware events, amongst other wasteful things.
hw_perf_disable/enable() are on their way out. They should be replaced with a struct pmu callback. We must remove all these weak functions if we want to support multiple pmus.
| |