Namhyung Kim 
							
						 
					 
					
						
						
							
						
						e4cf6f886f 
					 
					
						
						
							
							perf ui/gtk: Fix callchain display  
						
						... 
						
						
						
						With current output field change, GTK browser cannot display callchain
information correctly since it couldn't determine where the symbol
column is.  This is a problem - just for now I changed to use the last
column since it'll work for most cases.
Also it has a same problem of the percentage as stdio code.
Signed-off-by: Namhyung Kim <namhyung@kernel.org >
Cc: Arun Sharma <asharma@fb.com >
Cc: Frederic Weisbecker <fweisbec@gmail.com >
Link: http://lkml.kernel.org/r/1401335910-16832-25-git-send-email-namhyung@kernel.org 
Signed-off-by: Jiri Olsa <jolsa@kernel.org > 
						
						
					 
					
						2014-06-01 14:35:09 +02:00 
						 
				 
			
				
					
						
							
							
								Namhyung Kim 
							
						 
					 
					
						
						
							
						
						14135663f1 
					 
					
						
						
							
							perf tools: Apply percent-limit to cumulative percentage  
						
						... 
						
						
						
						If -g cumulative option is given, it needs to show entries which don't
have self overhead.  So apply percent-limit to accumulated overhead
percentage in this case.
Signed-off-by: Namhyung Kim <namhyung@kernel.org >
Tested-by: Arun Sharma <asharma@fb.com >
Tested-by: Rodrigo Campos <rodrigo@sdfg.com.ar >
Cc: Frederic Weisbecker <fweisbec@gmail.com >
Link: http://lkml.kernel.org/r/1401335910-16832-14-git-send-email-namhyung@kernel.org 
Signed-off-by: Jiri Olsa <jolsa@kernel.org > 
						
						
					 
					
						2014-06-01 14:35:02 +02:00 
						 
				 
			
				
					
						
							
							
								Namhyung Kim 
							
						 
					 
					
						
						
							
						
						b09955b2a3 
					 
					
						
						
							
							perf ui/gtk: Add support to accumulated hist stat  
						
						... 
						
						
						
						Print accumulated stat of a hist entry if requested.
Signed-off-by: Namhyung Kim <namhyung@kernel.org >
Tested-by: Arun Sharma <asharma@fb.com >
Tested-by: Rodrigo Campos <rodrigo@sdfg.com.ar >
Cc: Frederic Weisbecker <fweisbec@gmail.com >
Link: http://lkml.kernel.org/r/1401335910-16832-13-git-send-email-namhyung@kernel.org 
Signed-off-by: Jiri Olsa <jolsa@kernel.org > 
						
						
					 
					
						2014-06-01 14:35:02 +02:00 
						 
				 
			
				
					
						
							
							
								Namhyung Kim 
							
						 
					 
					
						
						
							
						
						e67d49a72d 
					 
					
						
						
							
							perf tools: Skip elided sort entries  
						
						... 
						
						
						
						When it converted sort entries to hpp formats, it missed se->elide
handling, so add it for compatibility.
Signed-off-by: Namhyung Kim <namhyung@kernel.org >
Link: http://lkml.kernel.org/r/1400480762-22852-16-git-send-email-namhyung@kernel.org 
Signed-off-by: Jiri Olsa <jolsa@kernel.org > 
						
						
					 
					
						2014-05-21 11:45:36 +02:00 
						 
				 
			
				
					
						
							
							
								Namhyung Kim 
							
						 
					 
					
						
						
							
						
						22af969e8c 
					 
					
						
						
							
							perf tools: Call perf_hpp__init() before setting up GUI browsers  
						
						... 
						
						
						
						So that it can be set properly prior to set up output fields.  That
makes easy to handle/warn errors during the setup since it doesn't
need to be bothered with the GUI.
Signed-off-by: Namhyung Kim <namhyung@kernel.org >
Link: http://lkml.kernel.org/r/1400480762-22852-11-git-send-email-namhyung@kernel.org 
Signed-off-by: Jiri Olsa <jolsa@kernel.org > 
						
						
					 
					
						2014-05-21 11:45:35 +02:00 
						 
				 
			
				
					
						
							
							
								Namhyung Kim 
							
						 
					 
					
						
						
							
						
						fb821c9e71 
					 
					
						
						
							
							perf ui: Get rid of callback from __hpp__fmt()  
						
						... 
						
						
						
						The callback was used by TUI for determining color of folded sign
using percent of first field/column. But it cannot be used anymore
since it now support dynamic reordering of output field.
So move the logic to the hist_browser__show_entry().
Signed-off-by: Namhyung Kim <namhyung@kernel.org >
Acked-by: Ingo Molnar <mingo@kernel.org >
Link: http://lkml.kernel.org/r/1400480762-22852-8-git-send-email-namhyung@kernel.org 
Signed-off-by: Jiri Olsa <jolsa@kernel.org > 
						
						
					 
					
						2014-05-21 11:45:34 +02:00 
						 
				 
			
				
					
						
							
							
								Namhyung Kim 
							
						 
					 
					
						
						
							
						
						26d8b33827 
					 
					
						
						
							
							perf tools: Consolidate output field handling to hpp format routines  
						
						... 
						
						
						
						Until now the hpp and sort functions do similar jobs different ways.
Since the sort functions converted/wrapped to hpp formats it can do
the job in a uniform way.
The perf_hpp__sort_list has a list of hpp formats to sort entries and
the perf_hpp__list has a list of hpp formats to print output result.
To have a backward compatibility, it automatically adds 'overhead'
field in front of sort list.  And then all of fields in sort list
added to the output list (if it's not already there).
Signed-off-by: Namhyung Kim <namhyung@kernel.org >
Acked-by: Ingo Molnar <mingo@kernel.org >
Link: http://lkml.kernel.org/n/tip-7g3h86woz2sckg3h1lj42ygj@git.kernel.org 
Signed-off-by: Jiri Olsa <jolsa@kernel.org > 
						
						
					 
					
						2014-05-21 11:45:34 +02:00 
						 
				 
			
				
					
						
							
							
								Namhyung Kim 
							
						 
					 
					
						
						
							
						
						f214833054 
					 
					
						
						
							
							perf report: Add --percentage option  
						
						... 
						
						
						
						The --percentage option is for controlling overhead percentage
displayed.  It can only receive either of "relative" or "absolute".
"relative" means it's relative to filtered entries only so that the
sum of shown entries will be always 100%.  "absolute" means it retains
the original value before and after the filter is applied.
  $ perf report -s comm
  # Overhead       Command
  # ........  ............
  #
      74.19%           cc1
       7.61%           gcc
       6.11%            as
       4.35%            sh
       4.14%          make
       1.13%        fixdep
  ...
  $ perf report -s comm -c cc1,gcc --percentage absolute
  # Overhead       Command
  # ........  ............
  #
      74.19%           cc1
       7.61%           gcc
  $ perf report -s comm -c cc1,gcc --percentage relative
  # Overhead       Command
  # ........  ............
  #
      90.69%           cc1
       9.31%           gcc
Note that it has zero effect if no filter was applied.
Suggested-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net >
Signed-off-by: Namhyung Kim <namhyung@kernel.org >
Link: http://lkml.kernel.org/r/1397145720-8063-3-git-send-email-namhyung@kernel.org 
Signed-off-by: Jiri Olsa <jolsa@redhat.com > 
						
						
					 
					
						2014-04-16 17:16:03 +02:00 
						 
				 
			
				
					
						
							
							
								Namhyung Kim 
							
						 
					 
					
						
						
							
						
						94a0793ddf 
					 
					
						
						
							
							perf ui hists: Pass evsel to hpp->header/width functions explicitly  
						
						... 
						
						
						
						Those functions need evsel to investigate event group and it's passed
via hpp->ptr.  However as it can be missed easily so it's better to
pass it via an argument IMHO.
Signed-off-by: Namhyung Kim <namhyung@kernel.org >
Cc: Andi Kleen <andi@firstfloor.org >
Cc: David Ahern <dsahern@gmail.com >
Cc: Ingo Molnar <mingo@kernel.org >
Cc: Jiri Olsa <jolsa@redhat.com >
Cc: Namhyung Kim <namhyung.kim@lge.com >
Cc: Paul Mackerras <paulus@samba.org >
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl >
Link: http://lkml.kernel.org/r/1394437440-11609-2-git-send-email-namhyung@kernel.org 
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com > 
						
						
					 
					
						2014-03-14 18:08:40 -03:00 
						 
				 
			
				
					
						
							
							
								Namhyung Kim 
							
						 
					 
					
						
						
							
						
						2f6d9009af 
					 
					
						
						
							
							perf ui/tui: Reuse generic __hpp__fmt() code  
						
						... 
						
						
						
						The __hpp__color_fmt used in the TUI code can be replace by the generic
code with small change in print_fn callback.  And it also needs to move
callback function to the generic __hpp__fmt().
No functional changes intended.
Signed-off-by: Namhyung Kim <namhyung@kernel.org >
Cc: Andi Kleen <andi@firstfloor.org >
Cc: David Ahern <dsahern@gmail.com >
Cc: Ingo Molnar <mingo@kernel.org >
Cc: Jiri Olsa <jolsa@redhat.com >
Cc: Namhyung Kim <namhyung.kim@lge.com >
Cc: Paul Mackerras <paulus@samba.org >
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl >
Link: http://lkml.kernel.org/r/1393809254-4480-5-git-send-email-namhyung@kernel.org 
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com > 
						
						
					 
					
						2014-03-14 18:08:39 -03:00 
						 
				 
			
				
					
						
							
							
								Namhyung Kim 
							
						 
					 
					
						
						
							
						
						a0088adcd6 
					 
					
						
						
							
							perf ui/hists: Pass struct hpp to print functions  
						
						... 
						
						
						
						Instead of the pointer to buffer and its size so that it can also get
private argument passed along with hpp.
This is a preparation of further change.
Signed-off-by: Namhyung Kim <namhyung@kernel.org >
Cc: Andi Kleen <andi@firstfloor.org >
Cc: David Ahern <dsahern@gmail.com >
Cc: Ingo Molnar <mingo@kernel.org >
Cc: Jiri Olsa <jolsa@redhat.com >
Cc: Namhyung Kim <namhyung.kim@lge.com >
Cc: Paul Mackerras <paulus@samba.org >
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl >
Link: http://lkml.kernel.org/r/1393809254-4480-4-git-send-email-namhyung@kernel.org 
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com > 
						
						
					 
					
						2014-03-14 18:08:38 -03:00 
						 
				 
			
				
					
						
							
							
								Namhyung Kim 
							
						 
					 
					
						
						
							
						
						4a62109fe9 
					 
					
						
						
							
							perf ui/gtk: Reuse generic __hpp__fmt() code  
						
						... 
						
						
						
						The __hpp__color_fmt used in the gtk code can be replace by the generic
code with small change in print_fn callback.
This is a preparation to upcoming changes and no functional changes
intended.
Signed-off-by: Namhyung Kim <namhyung@kernel.org >
Acked-by: Pekka Enberg <penberg@kernel.org >
Cc: Andi Kleen <andi@firstfloor.org >
Cc: David Ahern <dsahern@gmail.com >
Cc: Ingo Molnar <mingo@kernel.org >
Cc: Jiri Olsa <jolsa@redhat.com >
Cc: Namhyung Kim <namhyung.kim@lge.com >
Cc: Paul Mackerras <paulus@samba.org >
Cc: Pekka Enberg <penberg@kernel.org >
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl >
Link: http://lkml.kernel.org/r/1393809254-4480-3-git-send-email-namhyung@kernel.org 
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com > 
						
						
					 
					
						2014-03-14 18:08:38 -03:00 
						 
				 
			
				
					
						
							
							
								Arnaldo Carvalho de Melo 
							
						 
					 
					
						
						
							
						
						0050f7aa18 
					 
					
						
						
							
							perf evlist: Introduce evlist__for_each() & friends  
						
						... 
						
						
						
						For the common evsel list traversal, so that it becomes more compact.
Use the opportunity to start ditching the 'perf_' from 'perf_evlist__',
as discussed, as the whole conversion touches a lot of places, lets do
it piecemeal when we have the chance due to other work, like in this
case.
Cc: Adrian Hunter <adrian.hunter@intel.com >
Cc: David Ahern <dsahern@gmail.com >
Cc: Frederic Weisbecker <fweisbec@gmail.com >
Cc: Jiri Olsa <jolsa@redhat.com >
Cc: Mike Galbraith <efault@gmx.de >
Cc: Namhyung Kim <namhyung@kernel.org >
Cc: Paul Mackerras <paulus@samba.org >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Stephane Eranian <eranian@google.com >
Link: http://lkml.kernel.org/n/tip-qnkx7dzm2h6m6uptkfk03ni6@git.kernel.org 
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com > 
						
						
					 
					
						2014-01-13 10:06:25 -03:00 
						 
				 
			
				
					
						
							
							
								Namhyung Kim 
							
						 
					 
					
						
						
							
						
						d50bf78ff6 
					 
					
						
						
							
							perf ui/gtk: Fix segmentation fault on perf_hpp__for_each_format loop  
						
						... 
						
						
						
						The commit 2b8bfa6bb8namhyung@kernel.org >
Reviewed-by: Pekka Enberg <penberg@kernel.org >
Cc: Andi Kleen <andi@firstfloor.org >
Cc: Christoph Hellwig <hch@infradead.org >
Cc: Ingo Molnar <mingo@kernel.org >
Cc: Jiri Olsa <jolsa@redhat.com >
Cc: Paul Mackerras <paulus@samba.org >
Cc: Pekka Enberg <penberg@kernel.org >
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl >
Link: http://lkml.kernel.org/r/1375766056-19377-2-git-send-email-namhyung@kernel.org 
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com > 
						
						
					 
					
						2013-08-07 17:35:39 -03:00 
						 
				 
			
				
					
						
							
							
								Jiri Olsa 
							
						 
					 
					
						
						
							
						
						2c5d4b4a08 
					 
					
						
						
							
							perf tools: Add struct perf_hpp_fmt into hpp callbacks  
						
						... 
						
						
						
						Adding 'struct perf_hpp_fmt' into hpp callbacks, so commands can access
their private data.
It'll be handy for diff command in future to be able to access file
related data for each column.
Signed-off-by: Jiri Olsa <jolsa@redhat.com >
Reviewed-by: Namhyung Kim <namhyung@kernel.org >
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com >
Cc: Frederic Weisbecker <fweisbec@gmail.com >
Cc: Namhyung Kim <namhyung@kernel.org >
Cc: Paul Mackerras <paulus@samba.org >
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl >
Link: http://lkml.kernel.org/n/tip-7vy2m18574b1bicoljn8e9lw@git.kernel.org 
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com > 
						
						
					 
					
						2013-07-12 13:53:57 -03:00 
						 
				 
			
				
					
						
							
							
								Namhyung Kim 
							
						 
					 
					
						
						
							
						
						9d58d2f66c 
					 
					
						
						
							
							perf gtk/hists: Set rules hint for the hist browser  
						
						... 
						
						
						
						The 'rules' means that every second line of the tree view has a shaded
background, which makes it easier to see which cell belongs to which
row in the tree view.  It can be useful for a tree view that has a lot
of rows.
Reviewed-by: Pekka Enberg <penberg@kernel.org >
Signed-off-by: Namhyung Kim <namhyung@kernel.org >
Cc: David Ahern <dsahern@gmail.com >
Cc: Ingo Molnar <mingo@kernel.org >
Cc: Jiri Olsa <jolsa@redhat.com >
Cc: Paul Mackerras <paulus@samba.org >
Cc: Pekka Enberg <penberg@kernel.org >
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl >
Link: http://lkml.kernel.org/r/1370337737-30812-7-git-send-email-namhyung@kernel.org 
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com > 
						
						
					 
					
						2013-07-12 13:52:45 -03:00 
						 
				 
			
				
					
						
							
							
								Namhyung Kim 
							
						 
					 
					
						
						
							
						
						450f390ad2 
					 
					
						
						
							
							perf gtk/hists: Add a double-click handler for callchains  
						
						... 
						
						
						
						If callchain is displayed, add "row-activated" signal handler for
handling double-click or pressing ENTER key action.
Reviewed-by: Pekka Enberg <penberg@kernel.org >
Signed-off-by: Namhyung Kim <namhyung@kernel.org >
Cc: David Ahern <dsahern@gmail.com >
Cc: Ingo Molnar <mingo@kernel.org >
Cc: Jiri Olsa <jolsa@redhat.com >
Cc: Paul Mackerras <paulus@samba.org >
Cc: Pekka Enberg <penberg@kernel.org >
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl >
Link: http://lkml.kernel.org/r/1370337737-30812-6-git-send-email-namhyung@kernel.org 
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com > 
						
						
					 
					
						2013-07-12 13:52:43 -03:00 
						 
				 
			
				
					
						
							
							
								Namhyung Kim 
							
						 
					 
					
						
						
							
						
						1a309426b4 
					 
					
						
						
							
							perf gtk/hists: Make column headers resizable  
						
						... 
						
						
						
						Sometimes it's annoying to see when some symbols have very wierd long
names.  So it might be a good idea to make column size changable.
Reviewed-by: Pekka Enberg <penberg@kernel.org >
Signed-off-by: Namhyung Kim <namhyung@kernel.org >
Cc: David Ahern <dsahern@gmail.com >
Cc: Ingo Molnar <mingo@kernel.org >
Cc: Jiri Olsa <jolsa@redhat.com >
Cc: Paul Mackerras <paulus@samba.org >
Cc: Pekka Enberg <penberg@kernel.org >
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl >
Link: http://lkml.kernel.org/r/1370337737-30812-5-git-send-email-namhyung@kernel.org 
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com > 
						
						
					 
					
						2013-07-12 13:52:42 -03:00 
						 
				 
			
				
					
						
							
							
								Namhyung Kim 
							
						 
					 
					
						
						
							
						
						cc60f24e22 
					 
					
						
						
							
							perf gtk/hists: Display callchain overhead also  
						
						... 
						
						
						
						Display callchain percent value in the overhead column.
Signed-off-by: Namhyung Kim <namhyung@kernel.org >
Reviewed-by: Pekka Enberg <penberg@kernel.org >
Cc: David Ahern <dsahern@gmail.com >
Cc: Ingo Molnar <mingo@kernel.org >
Cc: Jiri Olsa <jolsa@redhat.com >
Cc: Paul Mackerras <paulus@samba.org >
Cc: Pekka Enberg <penberg@kernel.org >
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl >
Link: http://lkml.kernel.org/r/1370337737-30812-4-git-send-email-namhyung@kernel.org 
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com > 
						
						
					 
					
						2013-07-12 13:52:40 -03:00 
						 
				 
			
				
					
						
							
							
								Namhyung Kim 
							
						 
					 
					
						
						
							
						
						2bbc587425 
					 
					
						
						
							
							perf gtk/hists: Add support for callchains  
						
						... 
						
						
						
						Display callchain information in the symbol column.  It's only enabled
when recorded with -g and has symbol sort key.
Reviewed-by: Pekka Enberg <penberg@kernel.org >
Signed-off-by: Namhyung Kim <namhyung@kernel.org >
Cc: David Ahern <dsahern@gmail.com >
Cc: Ingo Molnar <mingo@kernel.org >
Cc: Jiri Olsa <jolsa@redhat.com >
Cc: Paul Mackerras <paulus@samba.org >
Cc: Pekka Enberg <penberg@kernel.org >
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl >
Link: http://lkml.kernel.org/r/1370337737-30812-3-git-send-email-namhyung@kernel.org 
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com > 
						
						
					 
					
						2013-07-12 13:52:38 -03:00 
						 
				 
			
				
					
						
							
							
								Namhyung Kim 
							
						 
					 
					
						
						
							
						
						f1d9a53055 
					 
					
						
						
							
							perf gtk/hists: Use GtkTreeStore instead of GtkListStore  
						
						... 
						
						
						
						The GtkTreeStore can save items in a tree-like way.  This is a
preparation for supporting callgraphs in the hist browser.
Reviewed-by: Pekka Enberg <penberg@kernel.org >
Signed-off-by: Namhyung Kim <namhyung@kernel.org >
Cc: David Ahern <dsahern@gmail.com >
Cc: Ingo Molnar <mingo@kernel.org >
Cc: Jiri Olsa <jolsa@redhat.com >
Cc: Paul Mackerras <paulus@samba.org >
Cc: Pekka Enberg <penberg@kernel.org >
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl >
Link: http://lkml.kernel.org/r/1370337737-30812-2-git-send-email-namhyung@kernel.org 
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com > 
						
						
					 
					
						2013-07-12 13:52:36 -03:00 
						 
				 
			
				
					
						
							
							
								Namhyung Kim 
							
						 
					 
					
						
						
							
						
						064f19815c 
					 
					
						
						
							
							perf report: Add --percent-limit option  
						
						... 
						
						
						
						The --percent-limit option is for not showing small overhead entries in
the output.  Maybe we want to set a certain default value like 0.1.
Signed-off-by: Namhyung Kim <namhyung@kernel.org >
Acked-by: Pekka Enberg <penberg@kernel.org >
Cc: Andi Kleen <andi@firstfloor.org >
Cc: David Ahern <dsahern@gmail.com >
Cc: Ingo Molnar <mingo@kernel.org >
Cc: Jiri Olsa <jolsa@redhat.com >
Cc: Paul Mackerras <paulus@samba.org >
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl >
Cc: Stephane Eranian <eranian@google.com >
Link: http://lkml.kernel.org/r/1368497347-9628-7-git-send-email-namhyung@kernel.org 
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com > 
						
						
					 
					
						2013-05-28 16:24:01 +03:00 
						 
				 
			
				
					
						
							
							
								Namhyung Kim 
							
						 
					 
					
						
						
							
						
						759ff497e0 
					 
					
						
						
							
							perf evsel: Introduce perf_evsel__is_group_event() helper  
						
						... 
						
						
						
						The perf_evsel__is_group_event function is for checking whether given
evsel needs event group view support or not.  Please note that it's
different to the existing perf_evsel__is_group_leader() which checks
only the given evsel is a leader or a standalone (i.e. non-group) event
regardless of event group feature.
Signed-off-by: Namhyung Kim <namhyung@kernel.org >
Cc: Andi Kleen <andi@firstfloor.org >
Cc: Ingo Molnar <mingo@kernel.org >
Cc: Jiri Olsa <jolsa@redhat.com >
Cc: Paul Mackerras <paulus@samba.org >
Cc: Pekka Enberg <penberg@kernel.org >
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl >
Link: http://lkml.kernel.org/r/1362462812-30885-7-git-send-email-namhyung@kernel.org 
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com > 
						
						
					 
					
						2013-03-15 13:06:05 -03:00 
						 
				 
			
				
					
						
							
							
								Namhyung Kim 
							
						 
					 
					
						
						
							
						
						717e263fc3 
					 
					
						
						
							
							perf report: Show group description when event group is enabled  
						
						... 
						
						
						
						When using event group viewer, it's better to show the group description
rather than the leader information alone.
If a leader did not contain any member, it's a non-group event.
Signed-off-by: Namhyung Kim <namhyung@kernel.org >
Acked-by: Jiri Olsa <jolsa@redhat.com >
Cc: Ingo Molnar <mingo@kernel.org >
Cc: Jiri Olsa <jolsa@redhat.com >
Cc: Paul Mackerras <paulus@samba.org >
Cc: Pekka Enberg <penberg@kernel.org >
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl >
Cc: Stephane Eranian <eranian@google.com >
Link: http://lkml.kernel.org/r/1358845787-1350-17-git-send-email-namhyung@kernel.org 
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com > 
						
						
					 
					
						2013-01-31 13:07:48 -03:00 
						 
				 
			
				
					
						
							
							
								Namhyung Kim 
							
						 
					 
					
						
						
							
						
						fc24d7c25c 
					 
					
						
						
							
							perf report: Bypass non-leader events when event group is enabled  
						
						... 
						
						
						
						Since we have all necessary information in the leader events and other
members don't, bypass members.  Member events will be shown along with
the leaders if event group is enabled.
Signed-off-by: Namhyung Kim <namhyung@kernel.org >
Acked-by: Jiri Olsa <jolsa@redhat.com >
Cc: Ingo Molnar <mingo@kernel.org >
Cc: Jiri Olsa <jolsa@redhat.com >
Cc: Paul Mackerras <paulus@samba.org >
Cc: Pekka Enberg <penberg@kernel.org >
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl >
Cc: Stephane Eranian <eranian@google.com >
Link: http://lkml.kernel.org/r/1358845787-1350-16-git-send-email-namhyung@kernel.org 
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com > 
						
						
					 
					
						2013-01-31 13:07:48 -03:00 
						 
				 
			
				
					
						
							
							
								Namhyung Kim 
							
						 
					 
					
						
						
							
						
						34b9564373 
					 
					
						
						
							
							perf gtk/browser: Trim column header string when event group enabled  
						
						... 
						
						
						
						When event group feature is enabled, each column header is expanded to
match with the whole group column width.  But this is not needed for
GTK+ browser since ti usually use variable-width fonts.  So trim it.
Signed-off-by: Namhyung Kim <namhyung@kernel.org >
Cc: Ingo Molnar <mingo@kernel.org >
Cc: Jiri Olsa <jolsa@redhat.com >
Cc: Paul Mackerras <paulus@samba.org >
Cc: Pekka Enberg <penberg@kernel.org >
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl >
Cc: Stephane Eranian <eranian@google.com >
Link: http://lkml.kernel.org/r/1358845787-1350-15-git-send-email-namhyung@kernel.org 
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com > 
						
						
					 
					
						2013-01-31 13:07:48 -03:00 
						 
				 
			
				
					
						
							
							
								Namhyung Kim 
							
						 
					 
					
						
						
							
						
						cb16008bcc 
					 
					
						
						
							
							perf gtk/browser: Add support for event group view  
						
						... 
						
						
						
						Show group members's overhead also when showing leader's if event
group is enabled.
Signed-off-by: Namhyung Kim <namhyung@kernel.org >
Cc: Ingo Molnar <mingo@kernel.org >
Cc: Jiri Olsa <jolsa@redhat.com >
Cc: Paul Mackerras <paulus@samba.org >
Cc: Pekka Enberg <penberg@kernel.org >
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl >
Cc: Stephane Eranian <eranina@google.com >
Link: http://lkml.kernel.org/r/1358845787-1350-13-git-send-email-namhyung@kernel.org 
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com > 
						
						
					 
					
						2013-01-31 13:07:47 -03:00 
						 
				 
			
				
					
						
							
							
								Namhyung Kim 
							
						 
					 
					
						
						
							
						
						843985e953 
					 
					
						
						
							
							perf gtk/browser: Convert hpp helpers to a function  
						
						... 
						
						
						
						The hpp helpers do same job for each field so it was implemented as
macro in order to access those fields easily.  But it gets cumbersome to
maintain a large function in a macro as the function grows. Factor it
out to a function with a little helper macro to access field.
Signed-off-by: Namhyung Kim <namhyung@kernel.org >
Cc: Ingo Molnar <mingo@kernel.org >
Cc: Jiri Olsa <jolsa@redhat.com >
Cc: Paul Mackerras <paulus@samba.org >
Cc: Pekka Enberg <penberg@kernel.org >
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl >
Cc: Stephane Eranian <eranian@google.com >
Link: http://lkml.kernel.org/r/1358845787-1350-9-git-send-email-namhyung@kernel.org 
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com > 
						
						
					 
					
						2013-01-31 13:07:46 -03:00 
						 
				 
			
				
					
						
							
							
								Namhyung Kim 
							
						 
					 
					
						
						
							
						
						6bf1a295a8 
					 
					
						
						
							
							perf ui/gtk: Setup browser window early  
						
						... 
						
						
						
						The ui__error/warning functions use gtk infobar or statusbar and pr_*
functions use statusbar too.  But after perf gtk context created but
those infobar and/or statusbar not yet set up, calling one of those
functions will get a segment fault.
Although current code has no problem, move these setting as early as
possible so that it can prevent the segfault from future change.
Signed-off-by: Namhyung Kim <namhyung@kernel.org >
Cc: Ingo Molnar <mingo@kernel.org >
Cc: Paul Mackerras <paulus@samba.org >
Cc: Pekka Enberg <penberg@kernel.org >
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl >
Link: http://lkml.kernel.org/r/1356078018-31905-3-git-send-email-namhyung@kernel.org 
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com > 
						
						
					 
					
						2013-01-24 16:40:16 -03:00 
						 
				 
			
				
					
						
							
							
								Namhyung Kim 
							
						 
					 
					
						
						
							
						
						0da41ce954 
					 
					
						
						
							
							perf ui/gtk: Factor out common browser routines  
						
						... 
						
						
						
						Separate out common codes for setting up a browser, and move report/hist
browser codes into hists.c.  The common codes can be used for annotation
browser.
Signed-off-by: Namhyung Kim <namhyung@kernel.org >
Cc: Ingo Molnar <mingo@kernel.org >
Cc: Paul Mackerras <paulus@samba.org >
Cc: Pekka Enberg <penberg@kernel.org >
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl >
Link: http://lkml.kernel.org/r/1356078018-31905-2-git-send-email-namhyung@kernel.org 
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com > 
						
						
					 
					
						2013-01-24 16:40:16 -03:00