Re: [perfmon2] decrementing counters in POWER6

2009-05-20 Thread victor jimenez
Hello, yeah, my mistake. It is POWER5 indeed. I was looking a bit more into it and I found a way which seems to solve the problem (although I am not sure it is the proper way to fix it). In file perfmon/perfmon_ctxsw.c, lines 241-242 there is: if (need_save_pmds) pfm_save_pmds(ctx, set); If

Re: [perfmon2] decrementing counters in POWER6

2009-05-20 Thread victor jimenez
Hello, I did more tests and I think I found the reason why it is not working. I am attaching a log with the debug information. The log shows information between a call to sys_pfm_start() and sys_pfm_stop(), plus a following call to sys_pfm_read_pmds(). In file perfmon/perfmon_ctxsw.c:242, pfm_sav

Re: [perfmon2] decrementing counters in POWER6

2009-05-20 Thread Corey J Ashford
victor jimenez wrote on 05/20/2009 09:24:43 AM: > Hello, > > I did more tests and I think I found the reason why it is not working. > I am attaching a log with the debug information. The log shows > information between a call to sys_pfm_start() and sys_pfm_stop(), plus > a following call to sys_

Re: [perfmon2] decrementing counters in POWER6

2009-05-20 Thread victor jimenez
Hello, the program I was using when I discovered the problem is pretty complex, but I will try to see if I can make a small test program which can reproduce the error. In the meanwhile, I have created a very small patch which can fix the problem. I am attaching it. It tries to emulate the Intel b