Re: [PATCH] perf, stat: Add --pre and --post command

From: Ingo Molnar
Date: Tue Oct 23 2012 - 07:43:37 EST



* Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:

> In order to measure kernel builds, one has to do some pre/post cleanup
> work in order to do the repeat build.
>
> So provide --pre and --post command hooks to allow doing just that.
>
> perf stat --repeat 10 --null --sync --pre 'make -s O=defconfig-build/ clean' -- make -s -j64 O=defconfig-build/ bzImage
>
> Signed-off-by: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>

looks useful!

Acked-by: Ingo Molnar <mingo@xxxxxxxxxx>

Thanks,

Ingo
--
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/