Re: [PATCH 1/4] perf ui/gtk: Fix segmentation fault on perf_hpp__for_each_format loop

2013-08-05 Thread Pekka Enberg
On Tue, Aug 6, 2013 at 8:14 AM, Namhyung Kim  wrote:
> From: Namhyung Kim 
>
> The commit 2b8bfa6bb8a7 ("perf tools: Centralize default columns init
> in perf_hpp__init") moves initialization of common overhead column to
> perf_hpp__init() but forgot about the gtk code.
>
> So the gtk code added the same column to the list twice causing
> infinite loop when iterating it by perf_hpp__for_each_format loop.
> When I run perf report --gtk, I can see following messages
> indefinitely.
>
>   (perf:11687): Gtk-CRITICAL **: IA__gtk_main_quit: assertion 'main_loops != 
> NULL' failed
>   perf: Segmentation fault
>
> Cc: Jiri Olsa 
> Cc: Pekka Enberg 
> Cc: Andi Kleen 
> Signed-off-by: Namhyung Kim 

Reviewed-by: Pekka Enberg 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 1/4] perf ui/gtk: Fix segmentation fault on perf_hpp__for_each_format loop

2013-08-05 Thread Namhyung Kim
From: Namhyung Kim 

The commit 2b8bfa6bb8a7 ("perf tools: Centralize default columns init
in perf_hpp__init") moves initialization of common overhead column to
perf_hpp__init() but forgot about the gtk code.

So the gtk code added the same column to the list twice causing
infinite loop when iterating it by perf_hpp__for_each_format loop.
When I run perf report --gtk, I can see following messages
indefinitely.

  (perf:11687): Gtk-CRITICAL **: IA__gtk_main_quit: assertion 'main_loops != 
NULL' failed
  perf: Segmentation fault

Cc: Jiri Olsa 
Cc: Pekka Enberg 
Cc: Andi Kleen 
Signed-off-by: Namhyung Kim 
---
 tools/perf/ui/gtk/hists.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/tools/perf/ui/gtk/hists.c b/tools/perf/ui/gtk/hists.c
index cb2ed1980147..2ca66cc1160f 100644
--- a/tools/perf/ui/gtk/hists.c
+++ b/tools/perf/ui/gtk/hists.c
@@ -109,8 +109,6 @@ __HPP_COLOR_PERCENT_FN(overhead_guest_us, period_guest_us)
 
 void perf_gtk__init_hpp(void)
 {
-   perf_hpp__column_enable(PERF_HPP__OVERHEAD);
-
perf_hpp__init();
 
perf_hpp__format[PERF_HPP__OVERHEAD].color =
-- 
1.7.11.7

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 1/4] perf ui/gtk: Fix segmentation fault on perf_hpp__for_each_format loop

2013-08-05 Thread Namhyung Kim
From: Namhyung Kim namhyung@lge.com

The commit 2b8bfa6bb8a7 (perf tools: Centralize default columns init
in perf_hpp__init) moves initialization of common overhead column to
perf_hpp__init() but forgot about the gtk code.

So the gtk code added the same column to the list twice causing
infinite loop when iterating it by perf_hpp__for_each_format loop.
When I run perf report --gtk, I can see following messages
indefinitely.

  (perf:11687): Gtk-CRITICAL **: IA__gtk_main_quit: assertion 'main_loops != 
NULL' failed
  perf: Segmentation fault

Cc: Jiri Olsa jo...@redhat.com
Cc: Pekka Enberg penb...@kernel.org
Cc: Andi Kleen a...@firstfloor.org
Signed-off-by: Namhyung Kim namhy...@kernel.org
---
 tools/perf/ui/gtk/hists.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/tools/perf/ui/gtk/hists.c b/tools/perf/ui/gtk/hists.c
index cb2ed1980147..2ca66cc1160f 100644
--- a/tools/perf/ui/gtk/hists.c
+++ b/tools/perf/ui/gtk/hists.c
@@ -109,8 +109,6 @@ __HPP_COLOR_PERCENT_FN(overhead_guest_us, period_guest_us)
 
 void perf_gtk__init_hpp(void)
 {
-   perf_hpp__column_enable(PERF_HPP__OVERHEAD);
-
perf_hpp__init();
 
perf_hpp__format[PERF_HPP__OVERHEAD].color =
-- 
1.7.11.7

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 1/4] perf ui/gtk: Fix segmentation fault on perf_hpp__for_each_format loop

2013-08-05 Thread Pekka Enberg
On Tue, Aug 6, 2013 at 8:14 AM, Namhyung Kim namhy...@kernel.org wrote:
 From: Namhyung Kim namhyung@lge.com

 The commit 2b8bfa6bb8a7 (perf tools: Centralize default columns init
 in perf_hpp__init) moves initialization of common overhead column to
 perf_hpp__init() but forgot about the gtk code.

 So the gtk code added the same column to the list twice causing
 infinite loop when iterating it by perf_hpp__for_each_format loop.
 When I run perf report --gtk, I can see following messages
 indefinitely.

   (perf:11687): Gtk-CRITICAL **: IA__gtk_main_quit: assertion 'main_loops != 
 NULL' failed
   perf: Segmentation fault

 Cc: Jiri Olsa jo...@redhat.com
 Cc: Pekka Enberg penb...@kernel.org
 Cc: Andi Kleen a...@firstfloor.org
 Signed-off-by: Namhyung Kim namhy...@kernel.org

Reviewed-by: Pekka Enberg penb...@kernel.org
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/