linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] perf build: Lower the priority of tools/lib includes
@ 2022-01-06  7:26 Ian Rogers
  2022-01-06 19:28 ` Arnaldo Carvalho de Melo
  0 siblings, 1 reply; 4+ messages in thread
From: Ian Rogers @ 2022-01-06  7:26 UTC (permalink / raw)
  To: Jiri Slaby, linux-trace-devel, Steven Rostedt,
	Arnaldo Carvalho de Melo, Peter Zijlstra, Ingo Molnar,
	Mark Rutland, Alexander Shishkin, Jiri Olsa, Namhyung Kim,
	linux-perf-users, linux-kernel, Tzvetomir Stoyanov, torvalds,
	eranian
  Cc: Ian Rogers

tools/lib has a 1.1.0 copy of libtraceevent. If a newer system
version is installed then its headers will go in /usr/include. As -I has
priority over system headers the 1.1.0 version gets used in preference
to the system one, which isn't what is wanted. To make the behavior
match expectations use -idirafter so that any system headers have priority
over the tools/lib version.

Fixes: 08efcb4a638d ("libtraceevent: Increase libtraceevent logging when verbose")
---
 tools/perf/Makefile.config | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config
index 96ad944ca6a8..0627286380fa 100644
--- a/tools/perf/Makefile.config
+++ b/tools/perf/Makefile.config
@@ -346,7 +346,7 @@ endif
 
 INC_FLAGS += -I$(src-perf)/util
 INC_FLAGS += -I$(src-perf)
-INC_FLAGS += -I$(srctree)/tools/lib/
+INC_FLAGS += -idirafter$(srctree)/tools/lib/
 
 CORE_CFLAGS += -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
 
-- 
2.34.1.448.ga2b2bfdf31-goog


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

* Re: [PATCH] perf build: Lower the priority of tools/lib includes
  2022-01-06  7:26 [PATCH] perf build: Lower the priority of tools/lib includes Ian Rogers
@ 2022-01-06 19:28 ` Arnaldo Carvalho de Melo
  2022-01-06 19:30   ` Arnaldo Carvalho de Melo
  0 siblings, 1 reply; 4+ messages in thread
From: Arnaldo Carvalho de Melo @ 2022-01-06 19:28 UTC (permalink / raw)
  To: Ian Rogers
  Cc: Jiri Slaby, linux-trace-devel, Steven Rostedt, Peter Zijlstra,
	Ingo Molnar, Mark Rutland, Alexander Shishkin, Jiri Olsa,
	Namhyung Kim, linux-perf-users, linux-kernel, Tzvetomir Stoyanov,
	torvalds, eranian

Em Wed, Jan 05, 2022 at 11:26:27PM -0800, Ian Rogers escreveu:
> tools/lib has a 1.1.0 copy of libtraceevent. If a newer system
> version is installed then its headers will go in /usr/include. As -I has
> priority over system headers the 1.1.0 version gets used in preference
> to the system one, which isn't what is wanted. To make the behavior
> match expectations use -idirafter so that any system headers have priority
> over the tools/lib version.
> 
> Fixes: 08efcb4a638d ("libtraceevent: Increase libtraceevent logging when verbose")

Hi,

	You forgot to add your Signed-off-by:, I'm adding it as you
usually provide it, ok?

- Arnaldo

> ---
>  tools/perf/Makefile.config | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config
> index 96ad944ca6a8..0627286380fa 100644
> --- a/tools/perf/Makefile.config
> +++ b/tools/perf/Makefile.config
> @@ -346,7 +346,7 @@ endif
>  
>  INC_FLAGS += -I$(src-perf)/util
>  INC_FLAGS += -I$(src-perf)
> -INC_FLAGS += -I$(srctree)/tools/lib/
> +INC_FLAGS += -idirafter$(srctree)/tools/lib/
>  
>  CORE_CFLAGS += -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
>  
> -- 
> 2.34.1.448.ga2b2bfdf31-goog

-- 

- Arnaldo

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

* Re: [PATCH] perf build: Lower the priority of tools/lib includes
  2022-01-06 19:28 ` Arnaldo Carvalho de Melo
@ 2022-01-06 19:30   ` Arnaldo Carvalho de Melo
  2022-01-06 20:24     ` Ian Rogers
  0 siblings, 1 reply; 4+ messages in thread
From: Arnaldo Carvalho de Melo @ 2022-01-06 19:30 UTC (permalink / raw)
  To: Ian Rogers
  Cc: Jiri Slaby, linux-trace-devel, Steven Rostedt, Peter Zijlstra,
	Ingo Molnar, Mark Rutland, Alexander Shishkin, Jiri Olsa,
	Namhyung Kim, linux-perf-users, linux-kernel, Tzvetomir Stoyanov,
	torvalds, eranian

Em Thu, Jan 06, 2022 at 04:28:58PM -0300, Arnaldo Carvalho de Melo escreveu:
> Em Wed, Jan 05, 2022 at 11:26:27PM -0800, Ian Rogers escreveu:
> > tools/lib has a 1.1.0 copy of libtraceevent. If a newer system
> > version is installed then its headers will go in /usr/include. As -I has
> > priority over system headers the 1.1.0 version gets used in preference
> > to the system one, which isn't what is wanted. To make the behavior
> > match expectations use -idirafter so that any system headers have priority
> > over the tools/lib version.
> > 
> > Fixes: 08efcb4a638d ("libtraceevent: Increase libtraceevent logging when verbose")
> 
> Hi,
> 
> 	You forgot to add your Signed-off-by:, I'm adding it as you
> usually provide it, ok?

Also adding:

Reported-by: Jiri Slaby <jirislaby@kernel.org>

- Arnaldo

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

* Re: [PATCH] perf build: Lower the priority of tools/lib includes
  2022-01-06 19:30   ` Arnaldo Carvalho de Melo
@ 2022-01-06 20:24     ` Ian Rogers
  0 siblings, 0 replies; 4+ messages in thread
From: Ian Rogers @ 2022-01-06 20:24 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo
  Cc: Jiri Slaby, linux-trace-devel, Steven Rostedt, Peter Zijlstra,
	Ingo Molnar, Mark Rutland, Alexander Shishkin, Jiri Olsa,
	Namhyung Kim, linux-perf-users, linux-kernel, Tzvetomir Stoyanov,
	torvalds, eranian

On Thu, Jan 6, 2022 at 11:31 AM Arnaldo Carvalho de Melo
<acme@kernel.org> wrote:
>
> Em Thu, Jan 06, 2022 at 04:28:58PM -0300, Arnaldo Carvalho de Melo escreveu:
> > Em Wed, Jan 05, 2022 at 11:26:27PM -0800, Ian Rogers escreveu:
> > > tools/lib has a 1.1.0 copy of libtraceevent. If a newer system
> > > version is installed then its headers will go in /usr/include. As -I has
> > > priority over system headers the 1.1.0 version gets used in preference
> > > to the system one, which isn't what is wanted. To make the behavior
> > > match expectations use -idirafter so that any system headers have priority
> > > over the tools/lib version.
> > >
> > > Fixes: 08efcb4a638d ("libtraceevent: Increase libtraceevent logging when verbose")
> >
> > Hi,
> >
> >       You forgot to add your Signed-off-by:, I'm adding it as you
> > usually provide it, ok?
>
> Also adding:
>
> Reported-by: Jiri Slaby <jirislaby@kernel.org>
>
> - Arnaldo

Thanks Arnaldo! Both good with me.

Ian

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

end of thread, other threads:[~2022-01-06 20:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-06  7:26 [PATCH] perf build: Lower the priority of tools/lib includes Ian Rogers
2022-01-06 19:28 ` Arnaldo Carvalho de Melo
2022-01-06 19:30   ` Arnaldo Carvalho de Melo
2022-01-06 20:24     ` Ian Rogers

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).