Re: [PATCH] oprofile: Implement Intel architectural perfmon support

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Robert Richter
Date: Thursday, September 25, 2008 - 1:00 pm

On 20.08.08 18:40:31, Andi Kleen wrote:

Could you create a separate patch that introduces this new kernel
parameter? This would make it easier to send all other changes
upstream. We already discussed the need of this parameter. Maybe it
would fit better to have a more generalized paramater for this that
could be reused then by other archs/models as well. Something like
force_pmu_detection that could be used for all new CPUs (also other
models) that do not yet have a specific kernel implementation.

Even better would a sysfs entry instead with that we can specify which
cpu type to use:

 echo "i386/arch_perfmon" > /sys/module/oprofile/parameters/cpu_type

That would allow us to switch the pmu at runtime and also from the
userland.


Put this to an init function of op_x86_model_spec. Then it could be
also static.

-Robert


-- 
Advanced Micro Devices, Inc.
Operating System Research Center
email: robert.richter@amd.com

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
oprofile: Implement Intel architectural perfmon, Andi Kleen, (Wed Aug 20, 9:40 am)
[PATCH] oprofile: drop const in num counters field, Andi Kleen, (Wed Aug 20, 9:40 am)
[PATCH] oprofile: Don't report Nehalem as core_2, Andi Kleen, (Wed Aug 20, 9:40 am)
Re: oprofile: Implement Intel architectural perfmon, Robert Richter, (Thu Sep 25, 12:32 pm)
Re: [PATCH] oprofile: Implement Intel architectural perfmo ..., Robert Richter, (Thu Sep 25, 1:00 pm)
Re: [PATCH] oprofile: Don't report Nehalem as core_2, Robert Richter, (Thu Sep 25, 1:05 pm)