From owner-freebsd-hpc@FreeBSD.ORG Mon Jun 4 19:33:56 2007 Return-Path: X-Original-To: freebsd-hpc@freebsd.org Delivered-To: freebsd-hpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2DC1716A46D for ; Mon, 4 Jun 2007 19:33:56 +0000 (UTC) (envelope-from redcrash@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.250]) by mx1.freebsd.org (Postfix) with ESMTP id 7A1ED13C45A for ; Mon, 4 Jun 2007 19:33:55 +0000 (UTC) (envelope-from redcrash@gmail.com) Received: by an-out-0708.google.com with SMTP id c14so424340anc for ; Mon, 04 Jun 2007 12:33:54 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=mWxZHPELpxB25/TLPdZJmGLv/YIsfQFbenNDFotOxk82ZHg0fAjlWrzUuaX7motrt+sxfGFrls1U1XnrlEwkQaf3K0+JwOGTfCnluvlYa0xK4uJpd9MTU6EsoGzB5wpd9eePi/xi2FzcFc42XMAVCWl2+P1UJ56uIFRK7Hemkww= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=W1lCCjZ/l5vPtC+SBTGYM0qfDt2CYHqXuRT3vVkTPLsWmaUqyVxqqg3JfVUb9PVjpmwkUmkDOV4KA613vZzA2qhxrwKgZtQoIeINSs7HAyphYs2dEukPjOG8x6B3+px7po+yXFdySgmaJC53cTaT8H2U9U3ovj0/va52yLaMuYQ= Received: by 10.100.191.5 with SMTP id o5mr2776266anf.1180985634093; Mon, 04 Jun 2007 12:33:54 -0700 (PDT) Received: by 10.100.32.4 with HTTP; Mon, 4 Jun 2007 12:33:54 -0700 (PDT) Message-ID: Date: Mon, 4 Jun 2007 21:33:54 +0200 From: "Harald Servat" To: "Nikolay Pavlov" , "Harald Servat" , freebsd-hackers@freebsd.org, freebsd-hpc@freebsd.org, freebsd-performance@freebsd.org In-Reply-To: <20070604192947.GA74531@zone3000.net> MIME-Version: 1.0 References: <20070604192947.GA74531@zone3000.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: testers wanted for PAPI / FreeBSD X-BeenThere: freebsd-hpc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "FreeBSD in High Performance Computing environments." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2007 19:33:56 -0000 Hello, What is the result of dmesg | grep hwpmc? Regards, 2007/6/4, Nikolay Pavlov : > > On Sunday, 20 May 2007 at 12:29:23 +0200, Harald Servat wrote: > > Hello, > > > > I'm porting PAPI to FreeBSD. I was wondering if you could give a try > to > > the package I'm porting. It would be great to have more feedback than > just > > that my laptop is able to provide me :) > > > > First of all, you can download the code at > > > > http://code.google.com/p/papi-for-freebsd > > > > Next, see man hwpmc(4) and compile a kernel with > > options HWPMC_HOOKS > > device hwpmc > > > > (you'll require device apic if you're running on i386 machines). > > > > When you boot your dmesg should print something like > > hwpmc: TSC/1/0x20 P6/2/0x1fe > > > > Once the machine is up and running, just untar the file you've > downloaded, > > run ./configure and just run make (not make install). > > > > Could you send me the output of the following commands? > > > > # dmesg | grep hwpmc > > # utils/papi_avail > > # utils/papi_decode > > # utils/papi_native_avail > > # ctests/low-level > > # ctests/high-level > > > > Thank you very much, > > Hi Harald. I have an error while running configure script: > > root@orion:~/papi/papi-3.5.0/src# > ./configure <796> > as_func_failure succeeded. > as_func_failure succeeded. > No shell found that supports shell functions. > Please tell autoconf@gnu.org about your system, > including any error possibly output before this > message > checking for architecture... i386 > checking for OS... freebsd > checking for OS version... 7.0-CURRENT > checking for CPU type... > checking for 32 or 64 bit mode... 32 > checking for debugging build... no > checking for gawk... no > checking for mawk... no > checking for nawk... nawk > checking for gcc... gcc > checking for C compiler default output file name... a.out > checking whether the C compiler works... yes > checking whether we are cross compiling... no > checking for suffix of executables... > checking for suffix of object files... o > checking whether we are using the GNU C compiler... yes > checking whether gcc accepts -g... yes > checking for gcc option to accept ISO C89... none needed > checking for g77... no > checking for xlf... no > checking for f77... f77 > checking whether we are using the GNU Fortran 77 compiler... yes > checking whether f77 accepts -g... yes > checking whether we are using the GNU C compiler... (cached) yes > checking whether gcc accepts -g... (cached) yes > checking for gcc option to accept ISO C89... (cached) none needed > checking whether we are using the GNU Fortran 77 compiler... (cached) yes > checking whether f77 accepts -g... (cached) yes > checking how to run the C preprocessor... gcc -E > checking whether ln -s works... yes > checking whether make sets $(MAKE)... yes > checking for ranlib... ranlib > checking for grep that handles long lines and -e... /usr/bin/grep > checking for egrep... /usr/bin/grep -E > checking for ANSI C header files... yes > checking for ffsll... no > checking for working MMTIMER... no > checking for working CLOCK_REALTIME_HR POSIX 1b timer... no > checking for working CLOCK_REALTIME POSIX 1b timer... no > checking for real time clock or cycle counter... cycle > checking for working __thread... yes > checking for high performance thread local storage... __thread > checking for working CLOCK_THREAD_CPUTIME_ID POSIX 1b timer... no > checking for working per-thread times() timer... no > checking for thread virtual clock or cycle counter... default > checking for /sys/class/perfctr... no > checking for /dev/perfctr... no > checking for /sys/kernel/perfmon/version... no > checking for /proc/perfmon... no > checking for perfctr version... none > checking for perfmon version... none > checking for Makefile to use... configure: error: Error! HWPMC module > seems not to be on the kernel. Have you compiled the kernel with HWPMC? (see > hwpmc(4)) > > However module is there: > > quetzal@viking:~/bugs> cat papi.bug > <1959> > root@orion:~/papi# kldstat -v | grep > hwpmc > <848> > 135 hwpmc > > root@orion:~/bugs# uname > -a <853> > FreeBSD orion.zone3000.net 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Mon Jun > 4 19:33:59 EEST 2007 > root@orion.zone3000.net:/usr/obj/usr/src/sys/GENERIC-PMC i386 > > And i have all required options in kernel config: > > quetzal@orion:~/bugs> grep -i PMC > /sys/i386/conf/GENERIC-PMC > <890> > device hwpmc # Driver (also a loadable module) > options HWPMC_HOOKS # Other necessary kernel hooks > > > -- > ====================================================================== > - Best regards, Nikolay Pavlov. <<<----------------------------------- > ====================================================================== > > -- _________________________________________________________________ Empty your memory, with a free()... like a pointer! If you cast a pointer to an integer, it becomes an integer, if you cast a pointer to a struct, it becomes a struct. The pointer can crash..., and can overflow. Be a pointer my friend... From owner-freebsd-hpc@FreeBSD.ORG Mon Jun 4 19:56:25 2007 Return-Path: X-Original-To: freebsd-hpc@freebsd.org Delivered-To: freebsd-hpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 476C316A46B for ; Mon, 4 Jun 2007 19:56:25 +0000 (UTC) (envelope-from quetzal@zone3000.net) Received: from mx1.sitevalley.com (sitevalley.com [209.67.60.43]) by mx1.freebsd.org (Postfix) with SMTP id E324913C465 for ; Mon, 4 Jun 2007 19:56:24 +0000 (UTC) (envelope-from quetzal@zone3000.net) Received: from zone3000.kharkov.ua (HELO localhost) (217.144.69.37) by 0 with SMTP; 4 Jun 2007 19:29:42 -0000 Date: Mon, 4 Jun 2007 22:29:47 +0300 From: Nikolay Pavlov To: Harald Servat Message-ID: <20070604192947.GA74531@zone3000.net> Mail-Followup-To: Nikolay Pavlov , Harald Servat , freebsd-hackers@freebsd.org, freebsd-hpc@freebsd.org, freebsd-performance@freebsd.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 6.2-RELEASE-p4 User-Agent: mutt-ng/devel-r804 (FreeBSD) Cc: freebsd-hackers@freebsd.org, freebsd-performance@freebsd.org, freebsd-hpc@freebsd.org Subject: Re: testers wanted for PAPI / FreeBSD X-BeenThere: freebsd-hpc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "FreeBSD in High Performance Computing environments." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2007 19:56:25 -0000 On Sunday, 20 May 2007 at 12:29:23 +0200, Harald Servat wrote: > Hello, > > I'm porting PAPI to FreeBSD. I was wondering if you could give a try to > the package I'm porting. It would be great to have more feedback than just > that my laptop is able to provide me :) > > First of all, you can download the code at > > http://code.google.com/p/papi-for-freebsd > > Next, see man hwpmc(4) and compile a kernel with > options HWPMC_HOOKS > device hwpmc > > (you'll require device apic if you're running on i386 machines). > > When you boot your dmesg should print something like > hwpmc: TSC/1/0x20 P6/2/0x1fe > > Once the machine is up and running, just untar the file you've downloaded, > run ./configure and just run make (not make install). > > Could you send me the output of the following commands? > > # dmesg | grep hwpmc > # utils/papi_avail > # utils/papi_decode > # utils/papi_native_avail > # ctests/low-level > # ctests/high-level > > Thank you very much, Hi Harald. I have an error while running configure script: root@orion:~/papi/papi-3.5.0/src# ./configure <796> as_func_failure succeeded. as_func_failure succeeded. No shell found that supports shell functions. Please tell autoconf@gnu.org about your system, including any error possibly output before this message checking for architecture... i386 checking for OS... freebsd checking for OS version... 7.0-CURRENT checking for CPU type... checking for 32 or 64 bit mode... 32 checking for debugging build... no checking for gawk... no checking for mawk... no checking for nawk... nawk checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for g77... no checking for xlf... no checking for f77... f77 checking whether we are using the GNU Fortran 77 compiler... yes checking whether f77 accepts -g... yes checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking whether we are using the GNU Fortran 77 compiler... (cached) yes checking whether f77 accepts -g... (cached) yes checking how to run the C preprocessor... gcc -E checking whether ln -s works... yes checking whether make sets $(MAKE)... yes checking for ranlib... ranlib checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for ffsll... no checking for working MMTIMER... no checking for working CLOCK_REALTIME_HR POSIX 1b timer... no checking for working CLOCK_REALTIME POSIX 1b timer... no checking for real time clock or cycle counter... cycle checking for working __thread... yes checking for high performance thread local storage... __thread checking for working CLOCK_THREAD_CPUTIME_ID POSIX 1b timer... no checking for working per-thread times() timer... no checking for thread virtual clock or cycle counter... default checking for /sys/class/perfctr... no checking for /dev/perfctr... no checking for /sys/kernel/perfmon/version... no checking for /proc/perfmon... no checking for perfctr version... none checking for perfmon version... none checking for Makefile to use... configure: error: Error! HWPMC module seems not to be on the kernel. Have you compiled the kernel with HWPMC? (see hwpmc(4)) However module is there: quetzal@viking:~/bugs> cat papi.bug <1959> root@orion:~/papi# kldstat -v | grep hwpmc <848> 135 hwpmc root@orion:~/bugs# uname -a <853> FreeBSD orion.zone3000.net 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Mon Jun 4 19:33:59 EEST 2007 root@orion.zone3000.net:/usr/obj/usr/src/sys/GENERIC-PMC i386 And i have all required options in kernel config: quetzal@orion:~/bugs> grep -i PMC /sys/i386/conf/GENERIC-PMC <890> device hwpmc # Driver (also a loadable module) options HWPMC_HOOKS # Other necessary kernel hooks -- ====================================================================== - Best regards, Nikolay Pavlov. <<<----------------------------------- ====================================================================== From owner-freebsd-hpc@FreeBSD.ORG Wed Jun 6 10:26:08 2007 Return-Path: X-Original-To: freebsd-hpc@FreeBSD.org Delivered-To: freebsd-hpc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 94E2E16A46C for ; Wed, 6 Jun 2007 10:26:08 +0000 (UTC) (envelope-from quetzal@zone3000.net) Received: from mx1.sitevalley.com (sitevalley.com [209.67.60.43]) by mx1.freebsd.org (Postfix) with SMTP id 53DA013C480 for ; Wed, 6 Jun 2007 10:26:08 +0000 (UTC) (envelope-from quetzal@zone3000.net) Received: from zone3000.kharkov.ua (HELO localhost) (217.144.69.37) by 0 with SMTP; 6 Jun 2007 10:26:07 -0000 Date: Wed, 6 Jun 2007 13:26:14 +0300 From: Nikolay Pavlov To: Harald Servat Message-ID: <20070606102614.GA45197@zone3000.net> Mail-Followup-To: Nikolay Pavlov , Harald Servat , freebsd-hackers@FreeBSD.org, freebsd-hpc@FreeBSD.org, freebsd-performance@FreeBSD.org References: <20070604192947.GA74531@zone3000.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 6.2-RELEASE-p4 User-Agent: mutt-ng/devel-r804 (FreeBSD) Cc: freebsd-hackers@FreeBSD.org, freebsd-performance@FreeBSD.org, freebsd-hpc@FreeBSD.org Subject: Re: testers wanted for PAPI / FreeBSD X-BeenThere: freebsd-hpc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "FreeBSD in High Performance Computing environments." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 10:26:08 -0000 On Monday, 4 June 2007 at 21:33:54 +0200, Harald Servat wrote: > Hello, > > What is the result of dmesg | grep hwpmc? hwpmc: TSC/1/0x20 P6/2/0x1ff > > Regards, > > 2007/6/4, Nikolay Pavlov <[1]quetzal@zone3000.net>: > > On Sunday, 20 May 2007 at 12:29:23 +0200, Harald Servat wrote: > > Hello, > > > > I'm porting PAPI to FreeBSD. I was wondering if you could give a try > to > > the package I'm porting. It would be great to have more feedback than > just > > that my laptop is able to provide me :) > > > > First of all, you can download the code at > > > > [2]http://code.google.com/p/papi-for-freebsd > > > > Next, see man hwpmc(4) and compile a kernel with > > options HWPMC_HOOKS > > device hwpmc > > > > (you'll require device apic if you're running on i386 machines). > > > > When you boot your dmesg should print something like > > hwpmc: TSC/1/0x20 P6/2/0x1fe > > > > Once the machine is up and running, just untar the file you've > downloaded, > > run ./configure and just run make (not make install). > > > > Could you send me the output of the following commands? > > > > # dmesg | grep hwpmc > > # utils/papi_avail > > # utils/papi_decode > > # utils/papi_native_avail > > # ctests/low-level > > # ctests/high-level > > > > Thank you very much, > > Hi Harald. I have an error while running configure script: > > root@orion:~/papi/papi-3.5.0/src# > ./configure <796> > as_func_failure succeeded. > as_func_failure succeeded. > No shell found that supports shell functions. > Please tell [3]autoconf@gnu.org about your system, > including any error possibly output before this > message > checking for architecture... i386 > checking for OS... freebsd > checking for OS version... 7.0-CURRENT > checking for CPU type... > checking for 32 or 64 bit mode... 32 > checking for debugging build... no > checking for gawk... no > checking for mawk... no > checking for nawk... nawk > checking for gcc... gcc > checking for C compiler default output file name... a.out > checking whether the C compiler works... yes > checking whether we are cross compiling... no > checking for suffix of executables... > checking for suffix of object files... o > checking whether we are using the GNU C compiler... yes > checking whether gcc accepts -g... yes > checking for gcc option to accept ISO C89... none needed > checking for g77... no > checking for xlf... no > checking for f77... f77 > checking whether we are using the GNU Fortran 77 compiler... yes > checking whether f77 accepts -g... yes > checking whether we are using the GNU C compiler... (cached) yes > checking whether gcc accepts -g... (cached) yes > checking for gcc option to accept ISO C89... (cached) none needed > checking whether we are using the GNU Fortran 77 compiler... (cached) > yes > checking whether f77 accepts -g... (cached) yes > checking how to run the C preprocessor... gcc -E > checking whether ln -s works... yes > checking whether make sets $(MAKE)... yes > checking for ranlib... ranlib > checking for grep that handles long lines and -e... /usr/bin/grep > checking for egrep... /usr/bin/grep -E > checking for ANSI C header files... yes > checking for ffsll... no > checking for working MMTIMER... no > checking for working CLOCK_REALTIME_HR POSIX 1b timer... no > checking for working CLOCK_REALTIME POSIX 1b timer... no > checking for real time clock or cycle counter... cycle > checking for working __thread... yes > checking for high performance thread local storage... __thread > checking for working CLOCK_THREAD_CPUTIME_ID POSIX 1b timer... no > checking for working per-thread times() timer... no > checking for thread virtual clock or cycle counter... default > checking for /sys/class/perfctr... no > checking for /dev/perfctr... no > checking for /sys/kernel/perfmon/version... no > checking for /proc/perfmon... no > checking for perfctr version... none > checking for perfmon version... none > checking for Makefile to use... configure: error: Error! HWPMC module > seems not to be on the kernel. Have you compiled the kernel with HWPMC? > (see hwpmc(4)) > > However module is there: > > quetzal@viking:~/bugs> cat > papi.bug > <1959> > root@orion:~/papi# kldstat -v | grep > hwpmc > <848> > 135 hwpmc > > root@orion:~/bugs# uname > -a <853> > FreeBSD [4]orion.zone3000.net 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Mon > Jun > 4 19:33:59 EEST 2007 > root@orion.zone3000.net:/usr/obj/usr/src/sys/GENERIC-PMC i386 > > And i have all required options in kernel config: > > quetzal@orion:~/bugs> grep -i PMC > /sys/i386/conf/GENERIC-PMC > <890> > device hwpmc # Driver (also a loadable module) > options HWPMC_HOOKS # Other necessary kernel hooks > > -- > ====================================================================== > - Best regards, Nikolay Pavlov. <<<----------------------------------- > ====================================================================== > > -- > _________________________________________________________________ > Empty your memory, > with a free()... > like a pointer! > > If you cast a pointer to an integer, > it becomes an integer, > if you cast a pointer to a struct, > it becomes a struct. > > The pointer can crash..., > and can overflow. > > Be a pointer my friend... > > References > > Visible links > 1. mailto:quetzal@zone3000.net > 2. http://code.google.com/p/papi-for-freebsd > 3. mailto:autoconf@gnu.org > 4. http://orion.zone3000.net/ -- ====================================================================== - Best regards, Nikolay Pavlov. <<<----------------------------------- ====================================================================== From owner-freebsd-hpc@FreeBSD.ORG Wed Jun 6 10:54:18 2007 Return-Path: X-Original-To: freebsd-hpc@freebsd.org Delivered-To: freebsd-hpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F0FEF16A400 for ; Wed, 6 Jun 2007 10:54:18 +0000 (UTC) (envelope-from redcrash@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.241]) by mx1.freebsd.org (Postfix) with ESMTP id 8506013C48C for ; Wed, 6 Jun 2007 10:54:18 +0000 (UTC) (envelope-from redcrash@gmail.com) Received: by an-out-0708.google.com with SMTP id c14so24061anc for ; Wed, 06 Jun 2007 03:54:18 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=qtiveO7MmJkN4k34p8kQnAqy+dB5NmKVKKe6HT4s6lF0v7+uurR1oKfjImxqU2M5gh3G3hbMDS/k9Jbw/VdgJE8C8zz/MWjyjRfftgYzniHKpin+dAt74dWb3YDbMiexvlVl2I+llVlgFBtFkvQiX4lAwg9/anpUsCTrifRQIag= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Eq1pwJZXAb3eXZ4au1O5lxoBMUwF28ClWQiNgsQupwl/pi49qUmxH8QuFxF9yufdMgyILFEp203foTf1RvChAp9vt6uku452OyABEE2fuFXbtgVfJLZjzyxnmDPLjeSzwo2DjkhaFE5xjlBk1XnKrzKnIOSm81HWcFXs3HcJsq0= Received: by 10.100.94.3 with SMTP id r3mr184591anb.1181127256984; Wed, 06 Jun 2007 03:54:16 -0700 (PDT) Received: by 10.100.32.4 with HTTP; Wed, 6 Jun 2007 03:54:16 -0700 (PDT) Message-ID: Date: Wed, 6 Jun 2007 12:54:16 +0200 From: "Harald Servat" To: "Nikolay Pavlov" , "Harald Servat" , freebsd-hackers@freebsd.org, freebsd-hpc@freebsd.org, freebsd-performance@freebsd.org In-Reply-To: <20070606102614.GA45197@zone3000.net> MIME-Version: 1.0 References: <20070604192947.GA74531@zone3000.net> <20070606102614.GA45197@zone3000.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: testers wanted for PAPI / FreeBSD X-BeenThere: freebsd-hpc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "FreeBSD in High Performance Computing environments." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 10:54:19 -0000 2007/6/6, Nikolay Pavlov : > > On Monday, 4 June 2007 at 21:33:54 +0200, Harald Servat wrote: > > Hello, > > > > What is the result of dmesg | grep hwpmc? > > hwpmc: TSC/1/0x20 P6/2/0x1ff > > > > > > Regards, > > > > 2007/6/4, Nikolay Pavlov <[1]quetzal@zone3000.net>: > > > > On Sunday, 20 May 2007 at 12:29:23 +0200, Harald Servat wrote: > > > Hello, > > > > > > I'm porting PAPI to FreeBSD. I was wondering if you could give > a try > > to > > > the package I'm porting. It would be great to have more feedback > than > > just > > > that my laptop is able to provide me :) > > > > > > First of all, you can download the code at > > > > > > [2]http://code.google.com/p/papi-for-freebsd > > > > > > Next, see man hwpmc(4) and compile a kernel with > > > options HWPMC_HOOKS > > > device hwpmc > > > > > > (you'll require device apic if you're running on i386 machines). > > > > > > When you boot your dmesg should print something like > > > hwpmc: TSC/1/0x20 > P6/2/0x1fe > > > > > > Once the machine is up and running, just untar the file you've > > downloaded, > > > run ./configure and just run make (not make install). > > > > > > Could you send me the output of the following commands? > > > > > > # dmesg | grep hwpmc > > > # utils/papi_avail > > > # utils/papi_decode > > > # utils/papi_native_avail > > > # ctests/low-level > > > # ctests/high-level > > > > > > Thank you very much, > > > > Hi Harald. I have an error while running configure script: > > > > root@orion:~/papi/papi-3.5.0/src# > > > ./configure <796> > > as_func_failure succeeded. > > as_func_failure succeeded. > > No shell found that supports shell functions. > > Please tell [3]autoconf@gnu.org about your system, > > including any error possibly output before this > > message > > checking for architecture... i386 > > checking for OS... freebsd > > checking for OS version... 7.0-CURRENT > > checking for CPU type... > > checking for 32 or 64 bit mode... 32 > > checking for debugging build... no > > checking for gawk... no > > checking for mawk... no > > checking for nawk... nawk > > checking for gcc... gcc > > checking for C compiler default output file name... a.out > > checking whether the C compiler works... yes > > checking whether we are cross compiling... no > > checking for suffix of executables... > > checking for suffix of object files... o > > checking whether we are using the GNU C compiler... yes > > checking whether gcc accepts -g... yes > > checking for gcc option to accept ISO C89... none needed > > checking for g77... no > > checking for xlf... no > > checking for f77... f77 > > checking whether we are using the GNU Fortran 77 compiler... yes > > checking whether f77 accepts -g... yes > > checking whether we are using the GNU C compiler... (cached) yes > > checking whether gcc accepts -g... (cached) yes > > checking for gcc option to accept ISO C89... (cached) none needed > > checking whether we are using the GNU Fortran 77 compiler... > (cached) > > yes > > checking whether f77 accepts -g... (cached) yes > > checking how to run the C preprocessor... gcc -E > > checking whether ln -s works... yes > > checking whether make sets $(MAKE)... yes > > checking for ranlib... ranlib > > checking for grep that handles long lines and -e... /usr/bin/grep > > checking for egrep... /usr/bin/grep -E > > checking for ANSI C header files... yes > > checking for ffsll... no > > checking for working MMTIMER... no > > checking for working CLOCK_REALTIME_HR POSIX 1b timer... no > > checking for working CLOCK_REALTIME POSIX 1b timer... no > > checking for real time clock or cycle counter... cycle > > checking for working __thread... yes > > checking for high performance thread local storage... __thread > > checking for working CLOCK_THREAD_CPUTIME_ID POSIX 1b timer... no > > checking for working per-thread times() timer... no > > checking for thread virtual clock or cycle counter... default > > checking for /sys/class/perfctr... no > > checking for /dev/perfctr... no > > checking for /sys/kernel/perfmon/version... no > > checking for /proc/perfmon... no > > checking for perfctr version... none > > checking for perfmon version... none > > checking for Makefile to use... configure: error: Error! HWPMC > module > > seems not to be on the kernel. Have you compiled the kernel with > HWPMC? > > (see hwpmc(4)) > > > > However module is there: > > > > quetzal@viking:~/bugs> cat > > papi.bug > > <1959> > > root@orion:~/papi# kldstat -v | grep > > hwpmc > > <848> > > 135 hwpmc > > > > root@orion:~/bugs# uname > > > -a <853> > > FreeBSD [4]orion.zone3000.net 7.0-CURRENT FreeBSD 7.0-CURRENT #0: > Mon > > Jun > > 4 19:33:59 EEST 2007 > > root@orion.zone3000.net:/usr/obj/usr/src/sys/GENERIC-PMC i386 > > > > And i have all required options in kernel config: > > > > quetzal@orion:~/bugs> grep -i PMC > > /sys/i386/conf/GENERIC-PMC > > <890> > > device hwpmc # Driver (also a loadable module) > > options HWPMC_HOOKS # Other necessary kernel hooks > > > > -- > > > ====================================================================== > > - Best regards, Nikolay Pavlov. > <<<----------------------------------- > > > ====================================================================== > > > > -- > > _________________________________________________________________ > > Empty your memory, > > with a free()... > > like a pointer! > > > > If you cast a pointer to an integer, > > it becomes an integer, > > if you cast a pointer to a struct, > > it becomes a struct. > > > > The pointer can crash..., > > and can overflow. > > > > Be a pointer my friend... > > > > References > > > > Visible links > > 1. mailto:quetzal@zone3000.net > > 2. http://code.google.com/p/papi-for-freebsd > > 3. mailto:autoconf@gnu.org > > 4. http://orion.zone3000.net/ > > -- > ====================================================================== > - Best regards, Nikolay Pavlov. <<<----------------------------------- > ====================================================================== > > Hello Nikolay, could you try to remove lines 1018 - 1022 from configure.in, run autoconf and rerun the configure? Regards, -- _________________________________________________________________ Empty your memory, with a free()... like a pointer! If you cast a pointer to an integer, it becomes an integer, if you cast a pointer to a struct, it becomes a struct. The pointer can crash..., and can overflow. Be a pointer my friend... From owner-freebsd-hpc@FreeBSD.ORG Wed Jun 6 15:59:51 2007 Return-Path: X-Original-To: freebsd-hpc@freebsd.org Delivered-To: freebsd-hpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4279F16A469 for ; Wed, 6 Jun 2007 15:59:51 +0000 (UTC) (envelope-from quetzal@zone3000.net) Received: from mx1.sitevalley.com (sitevalley.com [209.67.60.43]) by mx1.freebsd.org (Postfix) with SMTP id E053E13C487 for ; Wed, 6 Jun 2007 15:59:50 +0000 (UTC) (envelope-from quetzal@zone3000.net) Received: from zone3000.kharkov.ua (HELO localhost) (217.144.69.37) by 0 with SMTP; 6 Jun 2007 15:59:49 -0000 Date: Wed, 6 Jun 2007 18:59:55 +0300 From: Nikolay Pavlov To: Harald Servat , freebsd-hackers@freebsd.org, freebsd-hpc@freebsd.org, freebsd-performance@freebsd.org Message-ID: <20070606155955.GA48022@zone3000.net> Mail-Followup-To: Nikolay Pavlov , Harald Servat , freebsd-hackers@freebsd.org, freebsd-hpc@freebsd.org, freebsd-performance@freebsd.org References: <20070604192947.GA74531@zone3000.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070604192947.GA74531@zone3000.net> X-Operating-System: FreeBSD 6.2-RELEASE-p4 User-Agent: mutt-ng/devel-r804 (FreeBSD) Cc: Subject: Re: testers wanted for PAPI / FreeBSD X-BeenThere: freebsd-hpc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "FreeBSD in High Performance Computing environments." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 15:59:51 -0000 On Monday, 4 June 2007 at 22:29:47 +0300, Nikolay Pavlov wrote: > On Sunday, 20 May 2007 at 12:29:23 +0200, Harald Servat wrote: > > Hello, > > > > I'm porting PAPI to FreeBSD. I was wondering if you could give a try to > > the package I'm porting. It would be great to have more feedback than just > > that my laptop is able to provide me :) > > > > First of all, you can download the code at > > > > http://code.google.com/p/papi-for-freebsd > > > > Next, see man hwpmc(4) and compile a kernel with > > options HWPMC_HOOKS > > device hwpmc > > > > (you'll require device apic if you're running on i386 machines). > > > > When you boot your dmesg should print something like > > hwpmc: TSC/1/0x20 P6/2/0x1fe > > > > Once the machine is up and running, just untar the file you've downloaded, > > run ./configure and just run make (not make install). > > > > Could you send me the output of the following commands? > > > > # dmesg | grep hwpmc > > # utils/papi_avail > > # utils/papi_decode > > # utils/papi_native_avail > > # ctests/low-level > > # ctests/high-level > > > > Thank you very much, > > Hi Harald. I have an error while running configure script: > Ooops. Sorry for confusion Harald it was my fault. I have send the script gziped archive to you with all the tests in a privat email. -- ====================================================================== - Best regards, Nikolay Pavlov. <<<----------------------------------- ====================================================================== From owner-freebsd-hpc@FreeBSD.ORG Wed Jun 6 19:26:59 2007 Return-Path: X-Original-To: freebsd-hpc@freebsd.org Delivered-To: freebsd-hpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2861E16A469 for ; Wed, 6 Jun 2007 19:26:59 +0000 (UTC) (envelope-from redcrash@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.244]) by mx1.freebsd.org (Postfix) with ESMTP id D21CE13C4B9 for ; Wed, 6 Jun 2007 19:26:58 +0000 (UTC) (envelope-from redcrash@gmail.com) Received: by an-out-0708.google.com with SMTP id c14so69477anc for ; Wed, 06 Jun 2007 12:26:58 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=eKm4Mu/PlfinhUTSYyeV6/bAEpz1rwWaF6RRKIh+jNV++OIGYdgvgCjL6w3eLsfuu/ohBA+rp8lryfCVfQY1QMiT6ZLkc7WhqUklW4XeSk4j1y2EgA5QNj1nkPZzSMtQFyQvnPCexM41HY8VlccDco67KBDQf1Go2f2IcXLe4w0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=kRp+RCDF6jvK+hzs1xvMZO7B/9KhyLbcMOZfc2sZVSru5f+zIlJDoNsuopLuzNpqPGvmbpnBMYsgklDz3nETI4S8vo9swjtK/nxPrRsc+bhuyKeDgboyDTG9OrljznvDgcwKZrDsD4dIMpNBKtpt9ww/299C2B6roPZTFoXAUiw= Received: by 10.100.133.9 with SMTP id g9mr532183and.1181158018001; Wed, 06 Jun 2007 12:26:58 -0700 (PDT) Received: by 10.100.32.4 with HTTP; Wed, 6 Jun 2007 12:26:57 -0700 (PDT) Message-ID: Date: Wed, 6 Jun 2007 21:26:57 +0200 From: "Harald Servat" To: "Nikolay Pavlov" , "Harald Servat" , freebsd-hackers@freebsd.org, freebsd-hpc@freebsd.org, freebsd-performance@freebsd.org In-Reply-To: <20070606155955.GA48022@zone3000.net> MIME-Version: 1.0 References: <20070604192947.GA74531@zone3000.net> <20070606155955.GA48022@zone3000.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: testers wanted for PAPI / FreeBSD X-BeenThere: freebsd-hpc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "FreeBSD in High Performance Computing environments." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 19:26:59 -0000 2007/6/6, Nikolay Pavlov : > > On Monday, 4 June 2007 at 22:29:47 +0300, Nikolay Pavlov wrote: > > On Sunday, 20 May 2007 at 12:29:23 +0200, Harald Servat wrote: > > > Hello, > > > > > > I'm porting PAPI to FreeBSD. I was wondering if you could give a try > to > > > the package I'm porting. It would be great to have more feedback than > just > > > that my laptop is able to provide me :) > > > > > > First of all, you can download the code at > > > > > > http://code.google.com/p/papi-for-freebsd > > > > > > Next, see man hwpmc(4) and compile a kernel with > > > options HWPMC_HOOKS > > > device hwpmc > > > > > > (you'll require device apic if you're running on i386 machines). > > > > > > When you boot your dmesg should print something like > > > hwpmc: TSC/1/0x20 P6/2/0x1fe > > > > > > Once the machine is up and running, just untar the file you've > downloaded, > > > run ./configure and just run make (not make install). > > > > > > Could you send me the output of the following commands? > > > > > > # dmesg | grep hwpmc > > > # utils/papi_avail > > > # utils/papi_decode > > > # utils/papi_native_avail > > > # ctests/low-level > > > # ctests/high-level > > > > > > Thank you very much, > > > > Hi Harald. I have an error while running configure script: > > > > Ooops. Sorry for confusion Harald it was my fault. I have send the > script gziped archive to you with all the tests in a privat email. > > -- > ====================================================================== > - Best regards, Nikolay Pavlov. <<<----------------------------------- > ====================================================================== > > Thank you very much! Results seem fine! -- _________________________________________________________________ Empty your memory, with a free()... like a pointer! If you cast a pointer to an integer, it becomes an integer, if you cast a pointer to a struct, it becomes a struct. The pointer can crash..., and can overflow. Be a pointer my friend...