Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Dec 2009 23:55:08 +0100
From:      Jeremie Le Hen <jeremie@le-hen.org>
To:        freebsd-stable@FreeBSD.org
Cc:        jkoshy@FreeBSD.org, jeremie@le-hen.org
Subject:   Cannot allocate system-mode PMC with spec. "instructions"
Message-ID:  <20091206225508.GA5494@felucia.tataz.chchile.org>

next in thread | raw e-mail | index | archive | help
Hi list, Joseph,

__ Please Cc: me when replying, as I'm not subscribed. __

I've tried to sample my system while performing a big copy between UFS
to ZFS using the following command:
  % # pmcstat -v -S instructions -O $PWD/sample.out
  % pmcstat: ERROR: Cannot allocate system-mode pmc with specification "instructions": Invalid argument

Oddly, other generic events lead to different errors:
  % obiwan:~/tmp# pmcstat -vv -S cycles -O $PWD/sample.out
  % pmcstat: ERROR: Cannot allocate system-mode pmc with specification "cycles": Operation not supported

But for instance the following works:
  % obiwan:~/tmp# pmcstat -vv -S branches -O $PWD/sample.out 
  % ^Cobiwan:~/tmp# pmcstat -R sample.out -g
  % CONVERSION STATISTICS:
  %  #samples/total                           3110
  %  #samples/unclaimed                       87
  %  #callchain/dubious-frames                87


Additional useful informations are:

  % CPU: Intel(R) Core(TM)2 CPU          6320  @ 1.86GHz (1869.87-MHz 686-class CPU)
  %   Origin = "GenuineIntel"  Id = 0x6f6  Stepping = 6
  %   Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  %   Features2=0xe3bd<SSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM>
  %   AMD Features=0x20000000<LM>
  %   AMD Features2=0x1<LAHF>
  %   TSC: P-state invariant

  % hwpmc: TSC/1/64/0x20<REA> IAP/2/40/0x3ff<INT,USR,SYS,EDG,THR,REA,WRI,INV,QUA,PRC> IAF/0/0/0x61<INT,REA,WRI>


Regards,
-- 
Jeremie Le Hen
< jeremie at le-hen dot org >< ttz at chchile dot org >



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091206225508.GA5494>