linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* perf record + perf report
@ 2013-07-29  8:52 Etem
  2013-08-02 21:07 ` Andi Kleen
  0 siblings, 1 reply; 2+ messages in thread
From: Etem @ 2013-07-29  8:52 UTC (permalink / raw)
  To: linux-perf-users

I am running Ubuntu 11.10 64bit on x86_64 machine with 4 core and 
hyperthreading enabled. I am using the following commands in order to get 
per-thread performance characteristics of a multi-threaded application. 
"perf record -s -e cycles,instructions,cache-references,cache-
misses,branches,branch-misses /PATH/TO/APPLICATION". "perf report -T --
stdio".

I get invalid results randomly. In the result, I get invalid (negative) 
process id or very big counter values. I am giving an example output:

# (For a higher level overview, try: perf report --sort comm,dso)
#
#  PID   TID   cycles           cycles  instructions  instructions         
instructions          instructions          instructions  instructions  
instructions  instructions  cache-references  cache-references      
cache-references     cache-references      cache-references  
cache-references  cache-references     cache-references  cache-misses  
cache-misses          cache-misses          cache-misses      cache-misses  
cache-misses  cache-misses      cache-misses  branches  branches              
branches              branches              branches  branches  
branches              branches  branch-misses  branch-misses         
branch-misses      branch-misses         branch-misses  branch-misses  
branch-misses  branch-misses    cycles    cycles                
cycles                cycles            cycles    cycles
  4487  4493        0                0             0             0  
  7494102348578251111   3488601301391995001                 41541         
  37571             0             0                 0                 0   
  7092150592960751218  7810209763779608678                  1611              
  2111                 0  7381246349212319846             0             0   
  7018136542324422001     28838465189274226                36            
  28             0                 0         0         0   
  8026367814273625705   7453295080785733747   7380943991784800358      
  7228         0                     0              0              0     
  28825271049347427  28825292623798627     28825270915195235            
  434              0              0         0         0   
  8462108034846451316                 85567             94053     98435
...

You can see invalid values such as 8026367814273625705. How can I fix this 
problem and get correct per-thread performance counters?

Thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: perf record + perf report
  2013-07-29  8:52 perf record + perf report Etem
@ 2013-08-02 21:07 ` Andi Kleen
  0 siblings, 0 replies; 2+ messages in thread
From: Andi Kleen @ 2013-08-02 21:07 UTC (permalink / raw)
  To: Etem; +Cc: linux-perf-users

Etem <etem_deniz@hotmail.com> writes:

> I am running Ubuntu 11.10 64bit on x86_64 machine with 4 core and 
> hyperthreading enabled. I am using the following commands in order to get 
> per-thread performance characteristics of a multi-threaded application. 
> "perf record -s -e cycles,instructions,cache-references,cache-
> misses,branches,branch-misses /PATH/TO/APPLICATION". "perf report -T --
> stdio".

AFAIK per thread display mode has been broken for a long time.

Best you file a bug on http://bugzilla.kernel.org on perf.

-Andi

-- 
ak@linux.intel.com -- Speaking for myself only

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-08-02 21:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-29  8:52 perf record + perf report Etem
2013-08-02 21:07 ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).