lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1274233438.3036.78.camel@localhost>
Date:	Wed, 19 May 2010 01:43:58 +0000
From:	Lin Ming <ming.m.lin@...el.com>
To:	Peter Zijlstra <peterz@...radead.org>, Ingo Molnar <mingo@...e.hu>,
	Corey Ashford <cjashfor@...ux.vnet.ibm.com>
Cc:	Frederic Weisbecker <fweisbec@...il.com>,
	Paul Mundt <lethal@...ux-sh.org>,
	"eranian@...il.com" <eranian@...il.com>,
	"Gary.Mohr@...l.com" <Gary.Mohr@...l.com>,
	"arjan@...ux.intel.com" <arjan@...ux.intel.com>,
	"Zhang, Yanmin" <yanmin_zhang@...ux.intel.com>,
	Paul Mackerras <paulus@...ba.org>,
	"David S. Miller" <davem@...emloft.net>,
	Russell King <rmk+kernel@....linux.org.uk>,
	Arnaldo Carvalho de Melo <acme@...hat.com>,
	Will Deacon <will.deacon@....com>,
	Maynard Johnson <mpjohn@...ibm.com>,
	Carl Love <carll@...ibm.com>,
	"greg@...ah.com" <greg@...ah.com>,
	Kay Sievers <kay.sievers@...y.org>,
	lkml <linux-kernel@...r.kernel.org>
Subject: [RFC][PATCH v2 0/11] perf: remove __weak function
 hw_perf_event_init

Hi, all

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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ