public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Arnaldo Carvalho de Melo <acme@infradead.org>
To: Stephane Eranian <eranian@google.com>
Cc: linux-kernel@vger.kernel.org,
	Frederic Weisbecker <fweisbec@gmail.com>,
	Han Pingtian <phan@redhat.com>, Mike Galbraith <efault@gmx.de>,
	Paul Mackerras <paulus@samba.org>,
	Peter Zijlstra <peterz@infradead.org>,
	Tom Zanussi <tzanussi@gmail.com>,
	Thomas Gleixner <tglx@linutronix.de>,
	mingo@elte.hu
Subject: Re: [GIT PULL||RFC 00/11] perf library and regression testing improvements
Date: Tue, 4 Jan 2011 12:34:00 -0200	[thread overview]
Message-ID: <20110104143359.GE19989@ghostprotocols.net> (raw)
In-Reply-To: <AANLkTi=uYpdirz_iJUNJoGcsG9_j0Uj+1H_O9bGQfUe+@mail.gmail.com>

Em Tue, Jan 04, 2011 at 03:29:59PM +0100, Stephane Eranian escreveu:
> Indeed counts is bogus:
> 
> ./perf stat -i -e cycles date
> 
> evt:0x7d4250 counts=0x7d4450 <-- from perf_evsel__alloc_counts()
> 
> Tue Jan  4 15:28:36 CET 2011
> 
> counter=0x7d4250 counts=(nil) <-- from read_counter_aggr()
> 
> Segmentation fault

Strange I'm not reproducing it here (printf just on read_counter_aggr):

[acme@felicio linux]$ perf stat date
Tue Jan  4 12:32:15 BRST 2011
0x2586820: 0x2586948
0x2586790: 0x25869f8
0x2586700: 0x2586aa8
0x2586670: 0x2586b58
0x25865e0: 0x2586c08
0x2586550: 0x2586cb8
0x25864c0: 0x2586d68
0x2586430: 0x2586e18
0x25863a0: 0x2586ec8
0x2586310: 0x2586f78

 Performance counter stats for 'date':

             7,512 cache-misses             #     13.010 M/sec
           342,645 cache-references         #    593.445 M/sec
            14,884 branch-misses            #      8.241 %    
           180,611 branches                 #    312.810 M/sec
           925,986 instructions             #      0.000 IPC    (scaled from 49.88%)
     <not counted> cycles                  
               201 page-faults              #      0.348 M/sec
                 0 CPU-migrations           #      0.000 M/sec
                 0 context-switches         #      0.000 M/sec
          0.577383 task-clock-msecs         #      0.588 CPUs 

        0.000982448  seconds time elapsed

[acme@felicio linux]$

[acme@felicio linux]$ gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.5.1/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,lto --enable-plugin --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.5.1 20100924 (Red Hat 4.5.1-4) (GCC) 
[acme@felicio linux]$

[acme@felicio linux]$ uname -a
Linux felicio.ghostprotocols.net 2.6.35.10-72.fc14.x86_64 #1 SMP Mon Dec 20 21:14:22 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux
[acme@felicio linux]$

[acme@felicio linux]$ cat /etc/fedora-release 
Fedora release 14 (Laughlin)
[acme@felicio linux]$

- Arnaldo

  reply	other threads:[~2011-01-04 14:34 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-04  3:48 [GIT PULL||RFC 00/11] perf library and regression testing improvements Arnaldo Carvalho de Melo
2011-01-04  3:48 ` [PATCH 01/11] perf tools: Introduce event selectors Arnaldo Carvalho de Melo
2011-01-04  3:48 ` [PATCH 02/11] perf evsel: Adopt MATCH_EVENT macro from 'stat' Arnaldo Carvalho de Melo
2011-01-04  3:48 ` [PATCH 03/11] perf util: Move do_read from session to util Arnaldo Carvalho de Melo
2011-01-04  3:48 ` [PATCH 04/11] perf evsel: Delete the event selectors at exit Arnaldo Carvalho de Melo
2011-01-04  3:48 ` [PATCH 05/11] perf evsel: Steal the counter reading routines from stat Arnaldo Carvalho de Melo
2011-01-04  3:48 ` [PATCH 06/11] perf evsel: Introduce per cpu and per thread open helpers Arnaldo Carvalho de Melo
2011-01-04  3:48 ` [PATCH 07/11] perf tools: Refactor cpumap to hold nr and the map Arnaldo Carvalho de Melo
2011-01-04  3:48 ` [PATCH 08/11] perf tools: Refactor all_tids " Arnaldo Carvalho de Melo
2011-01-04  3:48 ` [PATCH 09/11] perf evsel: Use {cpu,thread}_map to shorten list of parameters Arnaldo Carvalho de Melo
2011-01-04  3:48 ` [PATCH 10/11] perf evsel: Auto allocate resources needed for some methods Arnaldo Carvalho de Melo
2011-01-04  3:48 ` [PATCH 11/11] perf test: Add test for counting open syscalls Arnaldo Carvalho de Melo
2011-01-04  7:16 ` [GIT PULL||RFC 00/11] perf library and regression testing improvements Ingo Molnar
2011-01-04 13:59   ` Stephane Eranian
2011-01-04 14:03     ` Arnaldo Carvalho de Melo
2011-01-04 14:09       ` Stephane Eranian
2011-01-04 14:19         ` Arnaldo Carvalho de Melo
2011-01-04 14:27           ` Arnaldo Carvalho de Melo
2011-01-04 14:33             ` Stephane Eranian
2011-01-04 14:36               ` Arnaldo Carvalho de Melo
2011-01-04 14:46                 ` Stephane Eranian
2011-01-04 14:59                   ` Stephane Eranian
2011-01-04 15:10                     ` Stephane Eranian
2011-01-04 15:24                       ` Arnaldo Carvalho de Melo
2011-01-04 15:30                         ` Stephane Eranian
2011-01-04 15:30                           ` Stephane Eranian
2011-01-04 15:30                       ` Arnaldo Carvalho de Melo
2011-01-04 14:29           ` Stephane Eranian
2011-01-04 14:34             ` Arnaldo Carvalho de Melo [this message]
2011-01-04 14:12     ` Arnaldo Carvalho de Melo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110104143359.GE19989@ghostprotocols.net \
    --to=acme@infradead.org \
    --cc=efault@gmx.de \
    --cc=eranian@google.com \
    --cc=fweisbec@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=paulus@samba.org \
    --cc=peterz@infradead.org \
    --cc=phan@redhat.com \
    --cc=tglx@linutronix.de \
    --cc=tzanussi@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox