Re: [PATCH 1/2] perf: Carve out cgroup-related code

From: Frederic Weisbecker
Date: Wed May 11 2011 - 12:26:40 EST


(Adding Stephane in Cc)

On Wed, May 11, 2011 at 03:16:55PM +0200, Borislav Petkov wrote:
> From: Borislav Petkov <borislav.petkov@xxxxxxx>
>
> Move cgroup perf support into a different compilation module -
> kernel/events/cgroup.c - thus slimming perf_event.c some more.
>
> While at it,
>
> * push some oneliners into perf_event.h now that they're used in
> multiple .c files.
>
> * drop is_cgroup_event() check for perf_cgroup_defer_enabled() at its
> callsite in __perf_event_enable since the latter does the check anyway.
>
> No functional change.
>
> Signed-off-by: Borislav Petkov <borislav.petkov@xxxxxxx>

BTW, before you do it yourself, I have a patch pending that splits the buffer
part from the core.

Just to avoid effort duplicates... :)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/