Corey,

I looked at the two patches and I have the following comments:

In the base patch:

 - arch/powerpc/perfmon/Kconfig
   you rely on your patch being stacked AFTER the
perfmon-stats-debugfs. I wonder if this is what we want

 - arch/powerpc/perfmon/Makefile
   you make reference to perfmon_power6.c. This should be in the power6 patch

 - include/asm-powerpc/perfmon_kern.h

   * pfm_cacheflush() must disappear it will come with sampling

   * in the pfm_arch_context structure you define fields (pmc6,pmc5)
which, I believe, are there to support
     either Power6 or Cell. If so they should be added by these patch
es respectively.

   * arch/powerpc/perfmon/perfmon.c

     pfm_arch_get_pmu_module_name() must disappear. This is needed
only once we have custom sampling buffer
     format support. For now, everything is a compile time option only.

 - Signed-off-by are missing

Please fix those and resubmit.

thanks.

On Tue, Jun 24, 2008 at 2:28 AM, Corey Ashford <[EMAIL PROTECTED]> wrote:

> Hi Stephane,
>
> I'm attaching the patches for the POWER port to the minimal perfmon2 kernel.
>  I have built a working kernel based on this source, but I haven't tested
> perfmon2 yet.  How are you testing?  Can we use the existing libpfm examples
> without modification?  I will try that next.
>
> In addition to a port of POWER to the mimimal perfmon2, there's also a bug
> fix which I plan to submit to the full perfmon2 git also.  J K Rai noticed
> that there was a problem with the use of the call smp_processor_id().  Our
> code had a race condition in that the cpu number is obtained but there's
> nothing to stop the CPU from being switched out from under the thread, which
> then goes on to read some CPU-specific registers and update data in the pfm
> context.
>
> To fix this, J K Rai correctly suggested using get_cpu() and put_cpu() pairs
> to disable preemption while we are using the cpu number.  So I have made
> those changes.
>
> I'd much appreciate a review of this code before submitting to the LKML
> mailing list.
>
> Regards,
>
> - Corey
>
>
> --
> Corey Ashford
> Software Engineer
> IBM Linux Technology Center, Linux Toolchain
> Beaverton, OR
> 503-578-3507
> [EMAIL PROTECTED]
>

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to