[RFC][PATCH v2 0/11] perf: remove __weak functionhw_perf_event_init
From: Lin Ming
Date: Tue May 18 2010 - 13:44:11 EST
Hi, all
On Wed, Mar 31, 2010 at 1:15 AM, Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
>
> Right, I've got some definite ideas on how to go here, just need some
> time to implement them.
>
> The first thing that needs to be done is get rid of all the __weak
> functions (with exception of perf_callchain*, since that really is arch
> specific).
>
> For hw_perf_event_init() we need to create a pmu registration facility
> and lookup a pmu_id, either passed as an actual id found in sysfs or an
> open file handle from sysfs (the cpu pmu would be pmu_id 0 for backwards
> compat).
Here is v2 of the patch series.
v2 only touches the x86 code, let me first gather comments if this is the
right direction to go...
And then touch other arches.
[PATCH 01/11] perf: un-const struct pmu *
[PATCH 02/11] perf: core, add pmu register and lookup functions
[PATCH 03/11] perf: x86, implement pmu->init_event
[PATCH 04/11] perf: core, use new api to lookup pmu and init event
[PATCH 05/11] perf: x86, remove hw_perf_event_init
[PATCH 06/11] perf: core, export pmus via sysfs
[PATCH 07/11] perf: x86, implements pmu::register_events
[PATCH 08/11] sysfs: introduce new interface sysfs_get_kobject
[PATCH 09/11] perf: multiplex perf_event_attr::type field
[PATCH 10/11] perf: core, lookup pmu via sysfs
[PATCH 11/11] perf top: demo of how to use the sysfs interface
Thanks for any comments.
Lin Ming
--
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/