All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] perf annotate: Fix build with NO_NEWT=1
@ 2013-02-26  5:02 Michael Ellerman
  2013-02-26  5:02 ` [PATCH 2/2] perf report: " Michael Ellerman
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Michael Ellerman @ 2013-02-26  5:02 UTC (permalink / raw)
  To: acme; +Cc: linux-kernel, feng.tang, namhyung.kim, namhyung

Commit 18c9e5c "Make it to be able to skip unannotatable symbols" broke
the build with NO_NEWT=1:

   CC builtin-annotate.o
builtin-annotate.c: In function 'hists__find_annotations':
builtin-annotate.c:161:4: error: duplicate case value
builtin-annotate.c:154:4: error: previously used here
make: *** [builtin-annotate.o] Error 1

This is because without NEWT support K_LEFT is #defined to -1 in
utils/hist.h

Fix it by shifting the K_LEFT/K_RIGHT #defines out of the likely range
of error values.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
---
 tools/perf/util/hist.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h
index 3862468..609a115 100644
--- a/tools/perf/util/hist.h
+++ b/tools/perf/util/hist.h
@@ -208,8 +208,8 @@ static inline int script_browse(const char *script_opt __maybe_unused)
 	return 0;
 }
 
-#define K_LEFT -1
-#define K_RIGHT -2
+#define K_LEFT  -1000
+#define K_RIGHT -2000
 #endif
 
 #ifdef GTK2_SUPPORT
-- 
1.7.10.4


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

* [PATCH 2/2] perf report: Fix build with NO_NEWT=1
  2013-02-26  5:02 [PATCH 1/2] perf annotate: Fix build with NO_NEWT=1 Michael Ellerman
@ 2013-02-26  5:02 ` Michael Ellerman
  2013-02-26  8:48   ` Feng Tang
  2013-03-18 10:51   ` [tip:perf/urgent] " tip-bot for Michael Ellerman
  2013-02-26  9:02 ` [PATCH 1/2] perf annotate: " Namhyung Kim
  2013-03-18 10:50 ` [tip:perf/urgent] " tip-bot for Michael Ellerman
  2 siblings, 2 replies; 12+ messages in thread
From: Michael Ellerman @ 2013-02-26  5:02 UTC (permalink / raw)
  To: acme; +Cc: linux-kernel, feng.tang, namhyung.kim, namhyung

Commit ad0de09 "Enable the runtime switching of perf data file" broke
the build with NO_NEWT=1:

    CC builtin-report.o
builtin-report.c: In function '__cmd_report':
builtin-report.c:479:15: error: 'K_SWITCH_INPUT_DATA' undeclared (first use in this function)
builtin-report.c:479:15: note: each undeclared identifier is reported only once for each function it appears in
builtin-report.c: In function 'cmd_report':
builtin-report.c:823:13: error: 'K_SWITCH_INPUT_DATA' undeclared (first use in this function)
make: *** [builtin-report.o] Error 1

Fix it by adding a dummy definition of K_SWITCH_INPUT_DATA.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
---
 tools/perf/util/hist.h |    1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h
index 609a115..226a4ae 100644
--- a/tools/perf/util/hist.h
+++ b/tools/perf/util/hist.h
@@ -210,6 +210,7 @@ static inline int script_browse(const char *script_opt __maybe_unused)
 
 #define K_LEFT  -1000
 #define K_RIGHT -2000
+#define K_SWITCH_INPUT_DATA -3000
 #endif
 
 #ifdef GTK2_SUPPORT
-- 
1.7.10.4


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

* Re: [PATCH 2/2] perf report: Fix build with NO_NEWT=1
  2013-02-26  5:02 ` [PATCH 2/2] perf report: " Michael Ellerman
@ 2013-02-26  8:48   ` Feng Tang
  2013-02-26 11:46     ` Michael Ellerman
  2013-03-18 10:51   ` [tip:perf/urgent] " tip-bot for Michael Ellerman
  1 sibling, 1 reply; 12+ messages in thread
From: Feng Tang @ 2013-02-26  8:48 UTC (permalink / raw)
  To: Michael Ellerman; +Cc: acme, linux-kernel, namhyung.kim, namhyung

On Tue, Feb 26, 2013 at 04:02:03PM +1100, Michael Ellerman wrote:
> Commit ad0de09 "Enable the runtime switching of perf data file" broke
> the build with NO_NEWT=1:
> 
>     CC builtin-report.o
> builtin-report.c: In function '__cmd_report':
> builtin-report.c:479:15: error: 'K_SWITCH_INPUT_DATA' undeclared (first use in this function)
> builtin-report.c:479:15: note: each undeclared identifier is reported only once for each function it appears in
> builtin-report.c: In function 'cmd_report':
> builtin-report.c:823:13: error: 'K_SWITCH_INPUT_DATA' undeclared (first use in this function)
> make: *** [builtin-report.o] Error 1
> 
> Fix it by adding a dummy definition of K_SWITCH_INPUT_DATA.
> 
> Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
> ---
>  tools/perf/util/hist.h |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h
> index 609a115..226a4ae 100644
> --- a/tools/perf/util/hist.h
> +++ b/tools/perf/util/hist.h
> @@ -210,6 +210,7 @@ static inline int script_browse(const char *script_opt __maybe_unused)
>  
>  #define K_LEFT  -1000
>  #define K_RIGHT -2000
> +#define K_SWITCH_INPUT_DATA -3000

Both patches look good to me, thanks for the fix. But can we use
a better value? -1000, -2000 looks a little awkward.

- Feng

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

* Re: [PATCH 1/2] perf annotate: Fix build with NO_NEWT=1
  2013-02-26  5:02 [PATCH 1/2] perf annotate: Fix build with NO_NEWT=1 Michael Ellerman
  2013-02-26  5:02 ` [PATCH 2/2] perf report: " Michael Ellerman
@ 2013-02-26  9:02 ` Namhyung Kim
  2013-02-27  1:14   ` li guang
  2013-03-18 10:50 ` [tip:perf/urgent] " tip-bot for Michael Ellerman
  2 siblings, 1 reply; 12+ messages in thread
From: Namhyung Kim @ 2013-02-26  9:02 UTC (permalink / raw)
  To: Michael Ellerman; +Cc: acme, linux-kernel, feng.tang, namhyung.kim

Hi Michael,

On Tue, 26 Feb 2013 16:02:02 +1100, Michael Ellerman wrote:
> Commit 18c9e5c "Make it to be able to skip unannotatable symbols" broke
> the build with NO_NEWT=1:
>
>    CC builtin-annotate.o
> builtin-annotate.c: In function 'hists__find_annotations':
> builtin-annotate.c:161:4: error: duplicate case value
> builtin-annotate.c:154:4: error: previously used here
> make: *** [builtin-annotate.o] Error 1
>
> This is because without NEWT support K_LEFT is #defined to -1 in
> utils/hist.h
>
> Fix it by shifting the K_LEFT/K_RIGHT #defines out of the likely range
> of error values.

Argh, didn't check NO_NEWT build on this, sorry.

The hist_entry__tui_annotate() - hence, symbol__tui_annotate() - returns
either key code or error code.  This is not good IMHO but not sure it's
worth refactoring.  Maybe we can move the error check to under default
case so that possible future error checks to be done?

Thanks,
Namhyung

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

* Re: [PATCH 2/2] perf report: Fix build with NO_NEWT=1
  2013-02-26  8:48   ` Feng Tang
@ 2013-02-26 11:46     ` Michael Ellerman
  0 siblings, 0 replies; 12+ messages in thread
From: Michael Ellerman @ 2013-02-26 11:46 UTC (permalink / raw)
  To: Feng Tang; +Cc: acme, linux-kernel, namhyung.kim, namhyung

On Tue, Feb 26, 2013 at 04:48:50PM +0800, Feng Tang wrote:
> On Tue, Feb 26, 2013 at 04:02:03PM +1100, Michael Ellerman wrote:
> > Commit ad0de09 "Enable the runtime switching of perf data file" broke
> > the build with NO_NEWT=1:
> > 
> >     CC builtin-report.o
> > builtin-report.c: In function '__cmd_report':
> > builtin-report.c:479:15: error: 'K_SWITCH_INPUT_DATA' undeclared (first use in this function)
> > builtin-report.c:479:15: note: each undeclared identifier is reported only once for each function it appears in
> > builtin-report.c: In function 'cmd_report':
> > builtin-report.c:823:13: error: 'K_SWITCH_INPUT_DATA' undeclared (first use in this function)
> > make: *** [builtin-report.o] Error 1
> > 
> > Fix it by adding a dummy definition of K_SWITCH_INPUT_DATA.
> > 
> > Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
> > ---
> >  tools/perf/util/hist.h |    1 +
> >  1 file changed, 1 insertion(+)
> > 
> > diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h
> > index 609a115..226a4ae 100644
> > --- a/tools/perf/util/hist.h
> > +++ b/tools/perf/util/hist.h
> > @@ -210,6 +210,7 @@ static inline int script_browse(const char *script_opt __maybe_unused)
> >  
> >  #define K_LEFT  -1000
> >  #define K_RIGHT -2000
> > +#define K_SWITCH_INPUT_DATA -3000
> 
> Both patches look good to me, thanks for the fix. But can we use
> a better value? -1000, -2000 looks a little awkward.

Better how? I'm not bothered what the values are, I was just trying to
prevent the same bug happening again by shifting the values out of the
-ERRNO range - which goes to ~130.

cheers

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

* Re: [PATCH 1/2] perf annotate: Fix build with NO_NEWT=1
  2013-02-26  9:02 ` [PATCH 1/2] perf annotate: " Namhyung Kim
@ 2013-02-27  1:14   ` li guang
  2013-02-27  1:22     ` Michael Ellerman
  2013-02-27  2:31     ` Namhyung Kim
  0 siblings, 2 replies; 12+ messages in thread
From: li guang @ 2013-02-27  1:14 UTC (permalink / raw)
  To: Namhyung Kim
  Cc: Michael Ellerman, acme, linux-kernel, feng.tang, namhyung.kim

在 2013-02-26二的 18:02 +0900,Namhyung Kim写道:
> Hi Michael,
> 
> On Tue, 26 Feb 2013 16:02:02 +1100, Michael Ellerman wrote:
> > Commit 18c9e5c "Make it to be able to skip unannotatable symbols" broke
> > the build with NO_NEWT=1:
> >
> >    CC builtin-annotate.o
> > builtin-annotate.c: In function 'hists__find_annotations':
> > builtin-annotate.c:161:4: error: duplicate case value
> > builtin-annotate.c:154:4: error: previously used here
> > make: *** [builtin-annotate.o] Error 1
> >
> > This is because without NEWT support K_LEFT is #defined to -1 in
> > utils/hist.h
> >
> > Fix it by shifting the K_LEFT/K_RIGHT #defines out of the likely range
> > of error values.
> 
> Argh, didn't check NO_NEWT build on this, sorry.
> 
> The hist_entry__tui_annotate() - hence, symbol__tui_annotate() - returns
> either key code or error code.  This is not good IMHO but not sure it's
> worth refactoring.  Maybe we can move the error check to under default
> case so that possible future error checks to be done?

or can we skip gui-code-snippet when there's no gui library?
anyway, for present fix-up, we can just temporarily change K_LEFT value
like Michael's or my patch, I think.

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



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

* Re: [PATCH 1/2] perf annotate: Fix build with NO_NEWT=1
  2013-02-27  1:14   ` li guang
@ 2013-02-27  1:22     ` Michael Ellerman
  2013-02-27  1:29       ` li guang
  2013-02-27  1:29       ` li guang
  2013-02-27  2:31     ` Namhyung Kim
  1 sibling, 2 replies; 12+ messages in thread
From: Michael Ellerman @ 2013-02-27  1:22 UTC (permalink / raw)
  To: li guang; +Cc: Namhyung Kim, acme, linux-kernel, feng.tang, namhyung.kim

On Wed, Feb 27, 2013 at 09:14:28AM +0800, li guang wrote:
> 在 2013-02-26二的 18:02 +0900,Namhyung Kim写道:
> > Hi Michael,
> > 
> > On Tue, 26 Feb 2013 16:02:02 +1100, Michael Ellerman wrote:
> > > Commit 18c9e5c "Make it to be able to skip unannotatable symbols" broke
> > > the build with NO_NEWT=1:
> > >
> > >    CC builtin-annotate.o
> > > builtin-annotate.c: In function 'hists__find_annotations':
> > > builtin-annotate.c:161:4: error: duplicate case value
> > > builtin-annotate.c:154:4: error: previously used here
> > > make: *** [builtin-annotate.o] Error 1
> > >
> > > This is because without NEWT support K_LEFT is #defined to -1 in
> > > utils/hist.h
> > >
> > > Fix it by shifting the K_LEFT/K_RIGHT #defines out of the likely range
> > > of error values.
> > 
> > Argh, didn't check NO_NEWT build on this, sorry.
> > 
> > The hist_entry__tui_annotate() - hence, symbol__tui_annotate() - returns
> > either key code or error code.  This is not good IMHO but not sure it's
> > worth refactoring.  Maybe we can move the error check to under default
> > case so that possible future error checks to be done?
> 
> or can we skip gui-code-snippet when there's no gui library?
> anyway, for present fix-up, we can just temporarily change K_LEFT value
> like Michael's or my patch, I think.

Sorry I didn't see your patch, but yes I agree, either is fine and fixes
the build for now.

cheers

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

* Re: [PATCH 1/2] perf annotate: Fix build with NO_NEWT=1
  2013-02-27  1:22     ` Michael Ellerman
@ 2013-02-27  1:29       ` li guang
  2013-02-27  1:29       ` li guang
  1 sibling, 0 replies; 12+ messages in thread
From: li guang @ 2013-02-27  1:29 UTC (permalink / raw)
  To: Michael Ellerman
  Cc: Namhyung Kim, acme, linux-kernel, feng.tang, namhyung.kim

在 2013-02-27三的 12:22 +1100,Michael Ellerman写道:
> On Wed, Feb 27, 2013 at 09:14:28AM +0800, li guang wrote:
> > 在 2013-02-26二的 18:02 +0900,Namhyung Kim写道:
> > > Hi Michael,
> > > 
> > > On Tue, 26 Feb 2013 16:02:02 +1100, Michael Ellerman wrote:
> > > > Commit 18c9e5c "Make it to be able to skip unannotatable symbols" broke
> > > > the build with NO_NEWT=1:
> > > >
> > > >    CC builtin-annotate.o
> > > > builtin-annotate.c: In function 'hists__find_annotations':
> > > > builtin-annotate.c:161:4: error: duplicate case value
> > > > builtin-annotate.c:154:4: error: previously used here
> > > > make: *** [builtin-annotate.o] Error 1
> > > >
> > > > This is because without NEWT support K_LEFT is #defined to -1 in
> > > > utils/hist.h
> > > >
> > > > Fix it by shifting the K_LEFT/K_RIGHT #defines out of the likely range
> > > > of error values.
> > > 
> > > Argh, didn't check NO_NEWT build on this, sorry.
> > > 
> > > The hist_entry__tui_annotate() - hence, symbol__tui_annotate() - returns
> > > either key code or error code.  This is not good IMHO but not sure it's
> > > worth refactoring.  Maybe we can move the error check to under default
> > > case so that possible future error checks to be done?
> > 
> > or can we skip gui-code-snippet when there's no gui library?
> > anyway, for present fix-up, we can just temporarily change K_LEFT value
> > like Michael's or my patch, I think.
> 
> Sorry I didn't see your patch, but yes I agree, either is fine and fixes
> the build for now.
> 
> cheers



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

* Re: [PATCH 1/2] perf annotate: Fix build with NO_NEWT=1
  2013-02-27  1:22     ` Michael Ellerman
  2013-02-27  1:29       ` li guang
@ 2013-02-27  1:29       ` li guang
  1 sibling, 0 replies; 12+ messages in thread
From: li guang @ 2013-02-27  1:29 UTC (permalink / raw)
  To: Michael Ellerman
  Cc: Namhyung Kim, acme, linux-kernel, feng.tang, namhyung.kim

在 2013-02-27三的 12:22 +1100,Michael Ellerman写道:
> On Wed, Feb 27, 2013 at 09:14:28AM +0800, li guang wrote:
> > 在 2013-02-26二的 18:02 +0900,Namhyung Kim写道:
> > > Hi Michael,
> > > 
> > > On Tue, 26 Feb 2013 16:02:02 +1100, Michael Ellerman wrote:
> > > > Commit 18c9e5c "Make it to be able to skip unannotatable symbols" broke
> > > > the build with NO_NEWT=1:
> > > >
> > > >    CC builtin-annotate.o
> > > > builtin-annotate.c: In function 'hists__find_annotations':
> > > > builtin-annotate.c:161:4: error: duplicate case value
> > > > builtin-annotate.c:154:4: error: previously used here
> > > > make: *** [builtin-annotate.o] Error 1
> > > >
> > > > This is because without NEWT support K_LEFT is #defined to -1 in
> > > > utils/hist.h
> > > >
> > > > Fix it by shifting the K_LEFT/K_RIGHT #defines out of the likely range
> > > > of error values.
> > > 
> > > Argh, didn't check NO_NEWT build on this, sorry.
> > > 
> > > The hist_entry__tui_annotate() - hence, symbol__tui_annotate() - returns
> > > either key code or error code.  This is not good IMHO but not sure it's
> > > worth refactoring.  Maybe we can move the error check to under default
> > > case so that possible future error checks to be done?
> > 
> > or can we skip gui-code-snippet when there's no gui library?
> > anyway, for present fix-up, we can just temporarily change K_LEFT value
> > like Michael's or my patch, I think.
> 
> Sorry I didn't see your patch, but yes I agree, either is fine and fixes
> the build for now.
> 
> cheers

https://lkml.org/lkml/2013/2/25/486


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

* Re: [PATCH 1/2] perf annotate: Fix build with NO_NEWT=1
  2013-02-27  1:14   ` li guang
  2013-02-27  1:22     ` Michael Ellerman
@ 2013-02-27  2:31     ` Namhyung Kim
  1 sibling, 0 replies; 12+ messages in thread
From: Namhyung Kim @ 2013-02-27  2:31 UTC (permalink / raw)
  To: li guang; +Cc: Michael Ellerman, acme, linux-kernel, feng.tang, namhyung.kim

Hi li guang,

On Wed, 27 Feb 2013 09:14:28 +0800, li guang wrote:
> 在 2013-02-26二的 18:02 +0900,Namhyung Kim写道:
>> Hi Michael,
>> 
>> On Tue, 26 Feb 2013 16:02:02 +1100, Michael Ellerman wrote:
>> > Commit 18c9e5c "Make it to be able to skip unannotatable symbols" broke
>> > the build with NO_NEWT=1:
>> >
>> >    CC builtin-annotate.o
>> > builtin-annotate.c: In function 'hists__find_annotations':
>> > builtin-annotate.c:161:4: error: duplicate case value
>> > builtin-annotate.c:154:4: error: previously used here
>> > make: *** [builtin-annotate.o] Error 1
>> >
>> > This is because without NEWT support K_LEFT is #defined to -1 in
>> > utils/hist.h
>> >
>> > Fix it by shifting the K_LEFT/K_RIGHT #defines out of the likely range
>> > of error values.
>> 
>> Argh, didn't check NO_NEWT build on this, sorry.
>> 
>> The hist_entry__tui_annotate() - hence, symbol__tui_annotate() - returns
>> either key code or error code.  This is not good IMHO but not sure it's
>> worth refactoring.  Maybe we can move the error check to under default
>> case so that possible future error checks to be done?
>
> or can we skip gui-code-snippet when there's no gui library?
> anyway, for present fix-up, we can just temporarily change K_LEFT value
> like Michael's or my patch, I think.

That part of code won't be run on NO_NEWT build since the 'use_browser'
would be value of 0.  It's just a compilation problem.

Anyway, I have no objection from the both of patches for now.

Thanks,
Namhyung

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

* [tip:perf/urgent] perf annotate: Fix build with NO_NEWT=1
  2013-02-26  5:02 [PATCH 1/2] perf annotate: Fix build with NO_NEWT=1 Michael Ellerman
  2013-02-26  5:02 ` [PATCH 2/2] perf report: " Michael Ellerman
  2013-02-26  9:02 ` [PATCH 1/2] perf annotate: " Namhyung Kim
@ 2013-03-18 10:50 ` tip-bot for Michael Ellerman
  2 siblings, 0 replies; 12+ messages in thread
From: tip-bot for Michael Ellerman @ 2013-03-18 10:50 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: acme, linux-kernel, hpa, mingo, michael, namhyung.kim, namhyung,
	tglx, feng.tang

Commit-ID:  1e825efb571a87d039cb3fe7ca833a25f11c7cb9
Gitweb:     http://git.kernel.org/tip/1e825efb571a87d039cb3fe7ca833a25f11c7cb9
Author:     Michael Ellerman <michael@ellerman.id.au>
AuthorDate: Tue, 26 Feb 2013 16:02:02 +1100
Committer:  Arnaldo Carvalho de Melo <acme@redhat.com>
CommitDate: Wed, 13 Mar 2013 16:54:49 -0300

perf annotate: Fix build with NO_NEWT=1

Commit 18c9e5c "Make it to be able to skip unannotatable symbols" broke
the build with NO_NEWT=1:

   CC builtin-annotate.o
builtin-annotate.c: In function 'hists__find_annotations':
builtin-annotate.c:161:4: error: duplicate case value
builtin-annotate.c:154:4: error: previously used here
make: *** [builtin-annotate.o] Error 1

This is because without NEWT support K_LEFT is #defined to -1 in
utils/hist.h

Fix it by shifting the K_LEFT/K_RIGHT #defines out of the likely range
of error values.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Cc: Feng Tang <feng.tang@intel.com>
Cc: Namhyung Kim <namhyung.kim@lge.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/1361854923-1814-1-git-send-email-michael@ellerman.id.au
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
 tools/perf/util/hist.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h
index 3862468..609a115 100644
--- a/tools/perf/util/hist.h
+++ b/tools/perf/util/hist.h
@@ -208,8 +208,8 @@ static inline int script_browse(const char *script_opt __maybe_unused)
 	return 0;
 }
 
-#define K_LEFT -1
-#define K_RIGHT -2
+#define K_LEFT  -1000
+#define K_RIGHT -2000
 #endif
 
 #ifdef GTK2_SUPPORT

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

* [tip:perf/urgent] perf report: Fix build with NO_NEWT=1
  2013-02-26  5:02 ` [PATCH 2/2] perf report: " Michael Ellerman
  2013-02-26  8:48   ` Feng Tang
@ 2013-03-18 10:51   ` tip-bot for Michael Ellerman
  1 sibling, 0 replies; 12+ messages in thread
From: tip-bot for Michael Ellerman @ 2013-03-18 10:51 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: acme, linux-kernel, hpa, mingo, michael, namhyung.kim, namhyung,
	tglx, feng.tang

Commit-ID:  5f7439e07822942f32b9e0a66f4a3cc9c3e29e67
Gitweb:     http://git.kernel.org/tip/5f7439e07822942f32b9e0a66f4a3cc9c3e29e67
Author:     Michael Ellerman <michael@ellerman.id.au>
AuthorDate: Tue, 26 Feb 2013 16:02:03 +1100
Committer:  Arnaldo Carvalho de Melo <acme@redhat.com>
CommitDate: Wed, 13 Mar 2013 16:55:17 -0300

perf report: Fix build with NO_NEWT=1

Commit ad0de09 "Enable the runtime switching of perf data file" broke
the build with NO_NEWT=1:

    CC builtin-report.o
builtin-report.c: In function '__cmd_report':
builtin-report.c:479:15: error: 'K_SWITCH_INPUT_DATA' undeclared (first use in this function)
builtin-report.c:479:15: note: each undeclared identifier is reported only once for each function it appears in
builtin-report.c: In function 'cmd_report':
builtin-report.c:823:13: error: 'K_SWITCH_INPUT_DATA' undeclared (first use in this function)
make: *** [builtin-report.o] Error 1

Fix it by adding a dummy definition of K_SWITCH_INPUT_DATA.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Cc: Feng Tang <feng.tang@intel.com>
Cc: Namhyung Kim <namhyung.kim@lge.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/1361854923-1814-2-git-send-email-michael@ellerman.id.au
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
 tools/perf/util/hist.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h
index 609a115..226a4ae 100644
--- a/tools/perf/util/hist.h
+++ b/tools/perf/util/hist.h
@@ -210,6 +210,7 @@ static inline int script_browse(const char *script_opt __maybe_unused)
 
 #define K_LEFT  -1000
 #define K_RIGHT -2000
+#define K_SWITCH_INPUT_DATA -3000
 #endif
 
 #ifdef GTK2_SUPPORT

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

end of thread, other threads:[~2013-03-18 10:52 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-26  5:02 [PATCH 1/2] perf annotate: Fix build with NO_NEWT=1 Michael Ellerman
2013-02-26  5:02 ` [PATCH 2/2] perf report: " Michael Ellerman
2013-02-26  8:48   ` Feng Tang
2013-02-26 11:46     ` Michael Ellerman
2013-03-18 10:51   ` [tip:perf/urgent] " tip-bot for Michael Ellerman
2013-02-26  9:02 ` [PATCH 1/2] perf annotate: " Namhyung Kim
2013-02-27  1:14   ` li guang
2013-02-27  1:22     ` Michael Ellerman
2013-02-27  1:29       ` li guang
2013-02-27  1:29       ` li guang
2013-02-27  2:31     ` Namhyung Kim
2013-03-18 10:50 ` [tip:perf/urgent] " tip-bot for Michael Ellerman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.