stephane eranian wrote: > Martin, > > Which examples subsdir are you using? > > You must use examples_v2.x, examples is for the perfmon3 kernel API. > >
Thanks Stephane, it works now. >pwd /var/tmp/martin/rpm-devel/rpm/BUILD/libpfm-3.8/examples_v2.x/x86 >./smpl_amd64_ibs sleep 3 sycall base 295 major version 2 minor version 82 AMD family=16 model=0x4 stepping=0x2 rev=C, AMD64 (Family 10h RevC, Shanghai) buffer mapped @0x7fd92c710000 hdr_cur_offs=128 version=1.0 task terminated entry 0 PID:10026 TID:10026 CPU:9 LAST_VAL:0 IIP:0xffffffff80287641 PMD7 :0x000000000004ffff PMD8 :0xffffffff802875ee PMD9 :0x0000000000050003 : comptoret=3 tagtoretctr=5 opbrnresync=0 opmispret=0 opret=0 brntk=0 brnmips=0 bnrret=0 PMD10 :0x0000000000000000 : reqsrc=0 reqdstproc=remote reqcachehitst=0 PMD11 :0x0000000000000000 : ld=0 st=0 L1TLBmiss=0 L2TLBmiss=0 L1TLBhit2M=0 L1TLBhit1G=0 L2TLBhit2M=0 miss=0 misalign=0 ld_bankconf=0 st_bankconf=0 st_to_ld_conf=0 st_to_ld_canc=0 UCaccess=0 WCaccess=0 lock=0 MAB=0 linevalid=0 physvalid=0 miss_lat=0 PMD12 :0x0000000000000000 PMD13 :0x0000000000000000 1 samples (1 in partial buffer) collected in 0 buffer overflows Martin > On Mon, May 25, 2009 at 7:27 PM, Martin Vogt <v...@itwm.fraunhofer.de> wrote: >> stephane eranian wrote: >>> Martin, >>> >>> On Mon, May 25, 2009 at 6:16 PM, Martin Vogt <v...@itwm.fraunhofer.de> >>> wrote: >>>> Hello List, >>>> >>>> I have here a system with 32cores (shanghai) and >>>> installed vanilla 2.6.28.1 >>>> with the lates perfmon-2.6.28-1.diff and libpfm. >>>> (from the sourceforge page) >>>> >>>> The amd system seems to load the perfmon module: >>>> >>>>> perfmon: found family=16 IBSCTL=0x101 >>>>> perfmon: NorthBridge socket-level event access control: enabled >>>>> perfmon: IBS supported >>>>> perfmon: AMD64 PMU installed >>>> But when I'm in: >>>> >>>>> libpfm-3.8/examples/x86 >>>> I get: >>>>> ./smpl_amd64_ibs ls >>>>> Your kernel does not have performance monitoring support! >>> Typically you get this message if there is a mismatch between >>> the libpfm perfmon syscall numbers and the kernel. Make sure >>> that the examples are linked with the correct libpfm (the one the >>> example belongs to). You may have one installed already. >> I'm very sure that it uses the right libpfm: >> >> cc -o smpl_amd64_ibs -O2 -g -Wall -Werror >> -I/var/tmp/martin/rpm-devel/rpm/BUILD/libpfm-3.8/examples/x86/../../include >> smpl_amd64_ibs.o >> /var/tmp/martin/rpm-devel/rpm/BUILD/libpfm-3.8/examples/x86/../../lib/libpfm.a >> ../detect_pmcs.o -lm >> v...@amd32[x86]>ll ../../lib/libpfm.* >> -rw-r--r-- 1 vogt slg 1014882 2009-05-25 19:21 ../../lib/libpfm.a >> lrwxrwxrwx 1 vogt slg 15 2009-05-25 19:22 ../../lib/libpfm.so -> >> libpfm.so.3.8.0 >> lrwxrwxrwx 1 vogt slg 15 2009-05-25 19:22 ../../lib/libpfm.so.3 -> >> libpfm.so.3.8.0 >> -rwxr-xr-x 1 vogt slg 833412 2009-05-25 19:22 ../../lib/libpfm.so.3.8.0 >> >> Martin >> >> -- ============================================= Martin Vogt ITWM - Fraunhofer Institut fuer Techno- und Wirtschaftsmathematik Fraunhofer-Platz 1 D-67663 Kaiserslautern, Germany Tel. +49 (0) 631/31600 4356, Fax -5356 ============================================= ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://www.creativitycat.com _______________________________________________ perfmon2-devel mailing list perfmon2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perfmon2-devel