Re: [PATCH 3/4] perf-events: Add support for supplementary eventregisters v3

From: Andi Kleen
Date: Thu Nov 18 2010 - 06:16:49 EST


On Thu, Nov 18, 2010 at 12:12:59PM +0100, Peter Zijlstra wrote:
> > u64 enable_mask)
> > {
> > wrmsrl(hwc->config_base + hwc->idx, hwc->config | enable_mask);
> > + if (hwc->extra_reg)
> > + wrmsrl(hwc->extra_reg, hwc->extra_config);
> > }
>
> Just wondering, shouldn't we program the extra msr _before_ we flip the
> enable bit?

Yes that makes sense.

> > + * Runs later because per cpu allocations don't work early on.
> > + */
> > +__initcall(init_intel_percore);
>
> I've got a patch moving the whole pmu init to early_initcall(), which is
> after mm_init() so it would actually work.

So do you want to make this patchkit depend on that patch?
Or just integrate it and then change later?

-Andi

--
ak@xxxxxxxxxxxxxxx -- Speaking for myself only.
--
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/