[lkml]   [2003]   [Feb]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [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

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

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:33    [W:0.048 / U:2.756 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site