lkml.org 
[lkml]   [2010]   [May]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Subject[RFC][PATCH v2 0/11] perf: remove __weak function hw_perf_event_init
From
Date
Hi, all

On Wed, Mar 31, 2010 at 1:15 AM, Peter Zijlstra <peterz@infradead.org> 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



\
 
 \ /
  Last update: 2010-05-18 19:47    [W:0.029 / U:3.632 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site