From: John L. <le...@mo...> - 2006-04-02 02:24:12
|
[snipped closed mailing list] On Sat, Apr 01, 2006 at 02:30:20PM -0800, Stephane Eranian wrote: > > > - have an initscript to insert the right module > > > > Nope still not getting it. Why is userspace getting involved at all in > > deciding which module to use? > > A PMU description table is implemented by kernel module. Without a valid > table, perfmon does not do anything. Obviously, only one table can be > active at a time. > > If you compile the multiple tables, i.e., the kernel modules, as builtin, then > the first module to successfully probe the hardware gets control. > No user level action is required there. > > The idea behind modules is to separate PMU descriptions from > the perfmon2 core which then makes it easier to fix description tables, > or add new PMU support, without having to recompile the kernel. Super; so why isn't the kernel-side perfmon core loading the right module for the detected CPU? regards john |