Re: [PATCH 05/12] x86/cqm,perf/core: Cgroup support prepare
From: Peter Zijlstra
Date: Tue Jan 17 2017 - 10:26:37 EST
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.