Re: [PATCH v3] powerpc/perf: Implement get_cpu_str()
From: Michael Ellerman
Date: Wed Aug 20 2014 - 02:21:52 EST
On Mon, 2014-08-18 at 17:08 -0700, Sukadev Bhattiprolu wrote:
> powerpc/perf: Implement get_cpu_str()
>
> With a file ~/.cache/pmu-events/004d0100-core.json describing Power8
> PMU events we would need to run:
>
> perf stat \
> --events-file ~/.cache/pmu-events/004d0100-core.json \
> -e PM_CYC sleep 1
>
> With this get_cpu_str(), On Powerpc, we can skip the --events-file option
> and run:
>
> perf stat -e PM_CYC sleep 1
>
> Signed-off-by: Sukadev Bhattiprolu <sukadev@xxxxxxxxxxxxxxxxxx>
Acked-by: Michael Ellerman <mpe@xxxxxxxxxxxxxx>
cheers
--
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/