RFC perf: remove __weak function hw_perf_event_init
Get series with b4
b4 am 1274233438.3036.78.camel@localhostVersions newest first · linked by author and title
- v2 RFC Latest11 patches 62 repliesIn review
- v1 RFC9 patches 71 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/11 | perf: un-const struct pmu *arch/ include/ kernel/ | +24 | 0 replies | |
| 2/11 | perf: core, add pmu register and lookup functionsinclude/ kernel/ | +84 | 2 replies | |
| 3/11 | perf: x86, implement pmu::init_eventarch/ | +50 | 0 replies | |
| 4/11 | perf: core, use new api to lookup pmu and init eventinclude/ kernel/ | +4 | 0 replies | |
| 5/11 | perf: x86, remove hw_perf_event_initarch/ | +0 | 0 replies | |
| 6/11 | perf: core, export pmus via sysfsdrivers/ include/ include/ +1 more | +183 | 45 replies | |
| 7/11 | perf: x86, implements pmu::register_eventsarch/ | +70 | 1 reply | |
| 8/11 | sysfs: introduce new interface sysfs_get_kobjectfs/ include/ | +17 | 4 replies | |
| 9/11 | perf: multiplex perf_event_attr::type fieldarch/ arch/ arch/ +6 more | +29 | 0 replies | |
| 10/11 | perf: core, lookup pmu via sysfskernel/ | +32 | 1 reply | |
| 11/11 | perf top: demo of how to use the sysfs interfacetools/ | +13 | 9 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [RFC][PATCH v2 0/11] perf: remove __weak function hw_perf_event_init
Hi, all
Quoted 4 lines · Peter Zijlstra
Right, I've got some definite ideas on how to go here, just need some time to implement them.
Quoted 8 lines
The first thing that needs to be done is get rid of all the
__weakfunctions (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 apmu_id, either passed as an actual id found in sysfs or an open file handle from sysfs (the cpu pmu would bepmu_id0 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