Re: [PATCH 05/12] x86/cqm,perf/core: Cgroup support prepare

From: Shivappa Vikas
Date: Tue Jan 17 2017 - 15:27:30 EST




On Tue, 17 Jan 2017, Peter Zijlstra wrote:

On Fri, Jan 06, 2017 at 01:59:58PM -0800, Vikas Shivappa wrote:
- Introduce event_terminate as event_destroy is called after cgrp is
disassociated from the event to support rmid handling of the cgroup.
This helps cqm clean up the cqm specific arch_info.

You've not even tried to audit the code to see if you can either move
the existing ->destroy() invocation or the perf_detach_cgroup() one,
have you?

Minimal APIs are a good thing, don't expand unless you absolutely have
to.

yes , the perf_detach_cgroup can just do the job.. Thanks for pointing. Will fix.