Re: [PATCH 1/4] perf, x86: Add Intel Nehalem/Westmere uncore pmu

From: Lin Ming
Date: Fri Jul 01 2011 - 01:59:52 EST


On Thu, 2011-06-30 at 22:08 +0800, Peter Zijlstra wrote:
> On Thu, 2011-06-30 at 08:09 +0000, Lin Ming wrote:
> > +static struct pmu uncore_pmu = {
>
> .task_ctx_nr = perf_invalid_context,

OK.

usage: perf stat [<options>] [<command>]

Currently, "perf stat" always need a <command> to do counting.
Need to change it to be optional.

So I may add a "P" option to specify which physical processor to count.

perf stat -P 3 -e uncore:rXXXX

>
> > + .event_init = uncore_pmu_event_init,
> > + .add = uncore_pmu_add,
> > + .del = uncore_pmu_del,
> > + .start = uncore_pmu_start,
> > + .stop = uncore_pmu_stop,
> > + .read = uncore_pmu_read,
> > +};
>
>


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