Re: [PATCH] mm: get rid of unnecessary overhead oftrace_mm_page_alloc_extfrag()

From: Mel Gorman
Date: Wed Oct 30 2013 - 11:21:06 EST


On Fri, Oct 25, 2013 at 12:42:47PM -0400, kosaki.motohiro@xxxxxxxxx wrote:
> From: KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx>
>
> In general, every tracepoint should be zero overhead if it is disabled.
> However, trace_mm_page_alloc_extfrag() is one of exception. It evaluate
> "new_type == start_migratetype" even if tracepoint is disabled.
>
> However, the code can be moved into tracepoint's TP_fast_assign() and
> TP_fast_assign exist exactly such purpose. This patch does it.
>
> Cc: Mel Gorman <mgorman@xxxxxxx>
> Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx>

Acked-by: Mel Gorman <mgorman@xxxxxxx>

--
Mel Gorman
SUSE Labs
--
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/