Messages in this thread | | | Date | Fri, 28 Feb 2003 15:05:12 -0800 | From | Dave Hansen <> | Subject | Re: [PATCH] documentation for basic guide to profiling |
| |
Martin J. Bligh wrote: >>>Alpha is supported too... (as least I saw the kernel part go in) >> >>sparc64 and ppc64 too, but only timer tick profiling so far. > > I need the magic incantation for oprofile for these then ... > > Actually, better still, we need a wrapper script that works out this > from /proc/cpuinfo and auto-sets it up for you, if someone who knows > enough about different Pentium types knows how ... I'm happy to go > write it if it's easy to detect ... > > My laptop says: > > model name : Pentium III (Coppermine) > > but a list of pattern matches from someone (or list of people) who > know how this works would be very helpful (ie matching up cpuinfo > to magic incantation to oprofile).
Actually, oprofile already does this somehow. opcontrol --list-events will tell you the perf counters for your particular CPU. When my scripts are deciding whether the machine is P3/4, they grep through this list.
I think the proper way to do this is in oprofile itself. John mentioned earlier in this thread that they have considered doing default events, but there may be a better way to do it. -- Dave Hansen haveblue@us.ibm.com
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |