Hey, wait a minute here...

These values are correct, but the kernel log says 'pmc0 not accessible'.
Stefane, is this one of these strange platforms that (bogusly) reserves
a PMC counter for NMI usage? The kernel log says:

ct 31 13:42:07 yugo kernel: perfmon: pfm_init_evtset.468: CPU0 [4670]:
set0 pmc1=0x100000
Oct 31 13:42:07 yugo kernel: perfmon: pfm_init_evtset.468: CPU0 [4670]:
set0 pmc2=0x100000
Oct 31 13:42:07 yugo kernel: perfmon: pfm_init_evtset.468: CPU0 [4670]:
set0 pmc3=0x100000
Oct 31 13:42:07 yugo kernel: perfmon: __pfm_create_context.1625: CPU0
[4670]: ctx=ffff810014e60000 flags=0x0 system=0 notify_block=0 no_msg=0
use_fmt=0 remap=0 ctx_fd=3 mode=0
Oct 31 13:42:07 yugo kernel: perfmon: __pfm_fasync.416: CPU0 [4670]:
fd=3 on=1 async_q=ffff810038b4d410 ret=1
Oct 31 13:42:07 yugo kernel: perfmon: pfm_fasync.445: CPU0 [4670]:
pfm_fasync called on fd=3 on=1 async_queue=ffff810038b4d410 ret=1
Oct 31 13:42:08 yugo kernel: perfmon: pfm_check_task_state.127: CPU0
[4670]: state=1 [-1] task_state=-1 check_mask=0x1
Oct 31 13:42:08 yugo kernel: perfmon: __pfm_write_pmcs.356: CPU0 [4670]:
pmc0 is not implemented/unaccessible

Shoot. I don't have code to handle this in PAPI...Darn it. I really wish
that there was code to hide this from the user.

Will, just for fun, try to disable your NMI and see if you get PMC0
back.


Phil

On Tue, 2006-10-31 at 13:59 -0500, William Cohen wrote:
> 0
> SUBSTRATE:perfmon.c:_papi_hwd_start:2958:
> PFM_WRITE_PMCS(3,0x2b1b1015c110,1)
> SUBSTRATE:perfmon.c:dump_pmc:1491: PC[0]
> SUBSTRATE:perfmon.c:dump_pmc:1492: PC[0].reg_num = 0
> SUBSTRATE:perfmon.c:dump_pmc:1493: PC[0].reg_set = 0
> SUBSTRATE:perfmon.c:dump_pmc:1494: PC[0].reg_flags = 0x00000000
> SUBSTRATE:perfmon.c:dump_pmc:1495: PC[0].reg_value =
> 0x0000000000510076
> PAPI Error: pfm_write_pmcs(3,0x2b1b1015c110,1): not supported.
> PAPI Error: Error Code -3,PAPI_ESYS,A System/C library call failed:
> Invalid argument.
> System error in PAPI_start: Invalid argument
> SUBSTRATE:perfmon.c:_papi_hwd_update_control_state:4045: Called with
> count == 0
> pfmlib_amd64.c (pfm_amd64_dispatch_counters.115):
> ev[0]=CPU_CLK_UNHALTED
> [PERFSEL0(pmc0)=0x510076 emask=0x76 umask=0x0 os=0 usr=1 inv=0 en=1
> int=1 edge=0 cnt_mask=0] CPU_CLK_UNHALTED
> [PERFCTR0(pmd0)]
> Successfully added: PAPI_TOT_CYC 

_______________________________________________
perfmon mailing list
[email protected]
http://www.hpl.hp.com/hosted/linux/mail-archives/perfmon/

Reply via email to