* Re: [PATCH v2 3/6] tools: Make pkg-config dependency checks usable by other tools [not found] ` <20240628203432.3273625-3-amadio@gentoo.org> @ 2024-07-02 23:40 ` Namhyung Kim 2024-07-03 19:36 ` Steven Rostedt 0 siblings, 1 reply; 5+ messages in thread From: Namhyung Kim @ 2024-07-02 23:40 UTC (permalink / raw) To: Guilherme Amadio Cc: Arnaldo Carvalho de Melo, Ian Rogers, Thorsten Leemhuis, Leo Yan, linux-perf-users, Linux Kernel Mailing List, Steven Rostedt, linux-trace-kernel +CC Steve and linux-trace-kernel list. Thanks, Namhyung On Fri, Jun 28, 2024 at 10:34:29PM +0200, Guilherme Amadio wrote: > Other tools, in tools/verification and tools/tracing, make use of > libtraceevent and libtracefs as dependencies. This allows setting > up the feature check flags for them as well. > > Signed-off-by: Guilherme Amadio <amadio@gentoo.org> > --- > tools/build/Makefile.feature | 20 ++++++++++++++++++++ > tools/perf/Makefile.config | 10 ---------- > 2 files changed, 20 insertions(+), 10 deletions(-) > > diff --git a/tools/build/Makefile.feature b/tools/build/Makefile.feature > index 1e2ab148d5db..79a03e034073 100644 > --- a/tools/build/Makefile.feature > +++ b/tools/build/Makefile.feature > @@ -149,6 +149,26 @@ FEATURE_DISPLAY ?= \ > # > FEATURE_GROUP_MEMBERS-libbfd = libbfd-liberty libbfd-liberty-z > > +# > +# Declare list of feature dependency packages that provide pkg-config files. > +# > +FEATURE_PKG_CONFIG ?= \ > + libtraceevent \ > + libtracefs > + > +feature_pkg_config = $(eval $(feature_pkg_config_code)) > +define feature_pkg_config_code > + ifeq ($(shell $(PKG_CONFIG) --exists $(1) 2>&1 1>/dev/null; echo $$?),0) > + FEATURE_CHECK_CFLAGS-$(1) := $(shell $(PKG_CONFIG) --cflags $(1)) > + FEATURE_CHECK_LDFLAGS-$(1) := $(shell $(PKG_CONFIG) --libs $(1)) > + endif > +endef > + > +# Set FEATURE_CHECK_(C|LD)FLAGS-$(package) for packages using pkg-config. > +ifneq ($(PKG_CONFIG),) > + $(foreach package,$(FEATURE_PKG_CONFIG),$(call feature_pkg_config,$(package))) > +endif > + > # Set FEATURE_CHECK_(C|LD)FLAGS-all for all FEATURE_TESTS features. > # If in the future we need per-feature checks/flags for features not > # mentioned in this list we need to refactor this ;-). > diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config > index ba51ecfca02b..23f2b54d8ee6 100644 > --- a/tools/perf/Makefile.config > +++ b/tools/perf/Makefile.config > @@ -187,16 +187,6 @@ ifneq ($(NO_LIBTRACEEVENT),1) > dummy := $(error Error: $(PKG_CONFIG) needed by libtraceevent is missing on this system, please install it) > endif > endif > -ifeq ($(shell $(PKG_CONFIG) --exists libtraceevent 2>&1 1>/dev/null; echo $$?),0) > - # for linking with debug library, run like: > - # make DEBUG=1 PKG_CONFIG_PATH=/opt/libtraceevent/(lib|lib64)/pkgconfig > - FEATURE_CHECK_CFLAGS-libtraceevent := $(shell $(PKG_CONFIG) --cflags libtraceevent) > - FEATURE_CHECK_LDFLAGS-libtraceevent := $(shell $(PKG_CONFIG) --libs libtraceevent) > -endif > -ifeq ($(shell $(PKG_CONFIG) --exists libtracefs 2>&1 1>/dev/null; echo $$?),0) > - FEATURE_CHECK_CFLAGS-libtracefs := $(shell $(PKG_CONFIG) --cflags libtracefs) > - FEATURE_CHECK_LDFLAGS-libtracefs := $(shell $(PKG_CONFIG) --libs libtracefs) > -endif > > FEATURE_CHECK_CFLAGS-bpf = -I. -I$(srctree)/tools/include -I$(srctree)/tools/arch/$(SRCARCH)/include/uapi -I$(srctree)/tools/include/uapi > # include ARCH specific config > -- > 2.45.2 > ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 3/6] tools: Make pkg-config dependency checks usable by other tools 2024-07-02 23:40 ` [PATCH v2 3/6] tools: Make pkg-config dependency checks usable by other tools Namhyung Kim @ 2024-07-03 19:36 ` Steven Rostedt 2024-07-03 21:33 ` Namhyung Kim 0 siblings, 1 reply; 5+ messages in thread From: Steven Rostedt @ 2024-07-03 19:36 UTC (permalink / raw) To: Namhyung Kim Cc: Guilherme Amadio, Arnaldo Carvalho de Melo, Ian Rogers, Thorsten Leemhuis, Leo Yan, linux-perf-users, Linux Kernel Mailing List, linux-trace-kernel On Tue, 2 Jul 2024 16:40:46 -0700 Namhyung Kim <namhyung@kernel.org> wrote: > +CC Steve and linux-trace-kernel list. There doesn't seem to be a cover page, and it doesn't apply on v6.10-rc6 nor on tip. -- Steve ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 3/6] tools: Make pkg-config dependency checks usable by other tools 2024-07-03 19:36 ` Steven Rostedt @ 2024-07-03 21:33 ` Namhyung Kim 2024-07-03 23:05 ` Steven Rostedt 0 siblings, 1 reply; 5+ messages in thread From: Namhyung Kim @ 2024-07-03 21:33 UTC (permalink / raw) To: Steven Rostedt Cc: Guilherme Amadio, Arnaldo Carvalho de Melo, Ian Rogers, Thorsten Leemhuis, Leo Yan, linux-perf-users, Linux Kernel Mailing List, linux-trace-kernel On Wed, Jul 03, 2024 at 03:36:17PM -0400, Steven Rostedt wrote: > On Tue, 2 Jul 2024 16:40:46 -0700 > Namhyung Kim <namhyung@kernel.org> wrote: > > > +CC Steve and linux-trace-kernel list. > > There doesn't seem to be a cover page, and it doesn't apply on > v6.10-rc6 nor on tip. Oh, sorry. You can find the whole series here. https://lore.kernel.org/linux-perf-users/20240628203432.3273625-1-amadio@gentoo.org/#r I think this is based on the perf-tools-next tree and depends on perf changes. If you're ok with the change, I can carry it in the perf tree. Thanks, Namhyung ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 3/6] tools: Make pkg-config dependency checks usable by other tools 2024-07-03 21:33 ` Namhyung Kim @ 2024-07-03 23:05 ` Steven Rostedt 2024-07-04 1:45 ` Namhyung Kim 0 siblings, 1 reply; 5+ messages in thread From: Steven Rostedt @ 2024-07-03 23:05 UTC (permalink / raw) To: Namhyung Kim Cc: Guilherme Amadio, Arnaldo Carvalho de Melo, Ian Rogers, Thorsten Leemhuis, Leo Yan, linux-perf-users, Linux Kernel Mailing List, linux-trace-kernel On Wed, 3 Jul 2024 14:33:21 -0700 Namhyung Kim <namhyung@kernel.org> wrote: > On Wed, Jul 03, 2024 at 03:36:17PM -0400, Steven Rostedt wrote: > > On Tue, 2 Jul 2024 16:40:46 -0700 > > Namhyung Kim <namhyung@kernel.org> wrote: > > > > > +CC Steve and linux-trace-kernel list. > > > > There doesn't seem to be a cover page, and it doesn't apply on > > v6.10-rc6 nor on tip. > > Oh, sorry. You can find the whole series here. > > https://lore.kernel.org/linux-perf-users/20240628203432.3273625-1-amadio@gentoo.org/#r > > I think this is based on the perf-tools-next tree and depends on perf > changes. If you're ok with the change, I can carry it in the perf tree. > Hmm, I checked out git://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools-next.git master branch, and it looks to contain just Linus's changes. Is there a specific branch? -- Steve ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 3/6] tools: Make pkg-config dependency checks usable by other tools 2024-07-03 23:05 ` Steven Rostedt @ 2024-07-04 1:45 ` Namhyung Kim 0 siblings, 0 replies; 5+ messages in thread From: Namhyung Kim @ 2024-07-04 1:45 UTC (permalink / raw) To: Steven Rostedt Cc: Guilherme Amadio, Arnaldo Carvalho de Melo, Ian Rogers, Thorsten Leemhuis, Leo Yan, linux-perf-users, Linux Kernel Mailing List, linux-trace-kernel On Wed, Jul 3, 2024 at 4:05 PM Steven Rostedt <rostedt@goodmis.org> wrote: > > On Wed, 3 Jul 2024 14:33:21 -0700 > Namhyung Kim <namhyung@kernel.org> wrote: > > > On Wed, Jul 03, 2024 at 03:36:17PM -0400, Steven Rostedt wrote: > > > On Tue, 2 Jul 2024 16:40:46 -0700 > > > Namhyung Kim <namhyung@kernel.org> wrote: > > > > > > > +CC Steve and linux-trace-kernel list. > > > > > > There doesn't seem to be a cover page, and it doesn't apply on > > > v6.10-rc6 nor on tip. > > > > Oh, sorry. You can find the whole series here. > > > > https://lore.kernel.org/linux-perf-users/20240628203432.3273625-1-amadio@gentoo.org/#r > > > > I think this is based on the perf-tools-next tree and depends on perf > > changes. If you're ok with the change, I can carry it in the perf tree. > > > > Hmm, I checked out git://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools-next.git > master branch, and it looks to contain just Linus's changes. Is there a specific branch? Yep, it's the same as tree: 'perf-tools-next' Thanks, Namhyung ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-07-04 1:45 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20240628202608.3273329-1-amadio@gentoo.org>
[not found] ` <20240628203432.3273625-1-amadio@gentoo.org>
[not found] ` <20240628203432.3273625-3-amadio@gentoo.org>
2024-07-02 23:40 ` [PATCH v2 3/6] tools: Make pkg-config dependency checks usable by other tools Namhyung Kim
2024-07-03 19:36 ` Steven Rostedt
2024-07-03 21:33 ` Namhyung Kim
2024-07-03 23:05 ` Steven Rostedt
2024-07-04 1:45 ` Namhyung Kim
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).