linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] perf tools build process cleanups and extra hints
@ 2025-06-20 21:24 Arnaldo Carvalho de Melo
  2025-06-20 21:24 ` [PATCH 1/3] perf build: Suggest java-latest-openjdk-devel instead of old 1.8.0 one Arnaldo Carvalho de Melo
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Arnaldo Carvalho de Melo @ 2025-06-20 21:24 UTC (permalink / raw)
  To: Namhyung Kim
  Cc: Ingo Molnar, Thomas Gleixner, James Clark, Jiri Olsa, Ian Rogers,
	Adrian Hunter, Kan Liang, Clark Williams, linux-kernel,
	linux-perf-users, Arnaldo Carvalho de Melo, Chun-Tse Shao,
	Heiko Carstens, Jakub Brnak, Junhao He, Ravi Bangoria,
	Stephane Eranian, Sumanth Korikkar, Thomas Falcon, Thomas Richter,
	Weilin Wang

From: Arnaldo Carvalho de Melo <acme@redhat.com>

Hi,

	Some simple cleanups and extra hints for the build process,

- Arnaldo

Arnaldo Carvalho de Melo (3):
  perf build: Suggest java-latest-openjdk-devel instead of old 1.8.0 one
  perf build: Add the libpfm devel fedora package name to the hint
  perf build: The bfd features are opt-in, stop testing for them by default

 tools/build/feature/test-all.c | 19 -------------------
 tools/perf/Makefile.config     |  9 +++++++--
 2 files changed, 7 insertions(+), 21 deletions(-)

-- 
2.49.0


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

* [PATCH 1/3] perf build: Suggest java-latest-openjdk-devel instead of old 1.8.0 one
  2025-06-20 21:24 [PATCH 0/3] perf tools build process cleanups and extra hints Arnaldo Carvalho de Melo
@ 2025-06-20 21:24 ` Arnaldo Carvalho de Melo
  2025-06-23 21:07   ` Ian Rogers
  2025-06-20 21:24 ` [PATCH 2/3] perf build: Add the libpfm devel fedora package name to the hint Arnaldo Carvalho de Melo
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 7+ messages in thread
From: Arnaldo Carvalho de Melo @ 2025-06-20 21:24 UTC (permalink / raw)
  To: Namhyung Kim
  Cc: Ingo Molnar, Thomas Gleixner, James Clark, Jiri Olsa, Ian Rogers,
	Adrian Hunter, Kan Liang, Clark Williams, linux-kernel,
	linux-perf-users, Arnaldo Carvalho de Melo

From: Arnaldo Carvalho de Melo <acme@redhat.com>

Just tidying up the suggestion to pick the latest and not some specific
version.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: James Clark <james.clark@linaro.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
 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 d1ea7bf449647eb2..afebd3b1e6cb9f58 100644
--- a/tools/perf/Makefile.config
+++ b/tools/perf/Makefile.config
@@ -1144,7 +1144,7 @@ ifndef NO_JVMTI
       endif
     endif # NO_JVMTI_CMLR
   else
-    $(warning No openjdk development package found, please install JDK package, e.g. openjdk-8-jdk, java-1.8.0-openjdk-devel)
+    $(warning No openjdk development package found, please install JDK package, e.g. openjdk-8-jdk, java-latest-openjdk-devel)
     NO_JVMTI := 1
   endif
 endif
-- 
2.49.0


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

* [PATCH 2/3] perf build: Add the libpfm devel fedora package name to the hint
  2025-06-20 21:24 [PATCH 0/3] perf tools build process cleanups and extra hints Arnaldo Carvalho de Melo
  2025-06-20 21:24 ` [PATCH 1/3] perf build: Suggest java-latest-openjdk-devel instead of old 1.8.0 one Arnaldo Carvalho de Melo
@ 2025-06-20 21:24 ` Arnaldo Carvalho de Melo
  2025-06-20 21:24 ` [PATCH 3/3] perf build: The bfd features are opt-in, stop testing for them by default Arnaldo Carvalho de Melo
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: Arnaldo Carvalho de Melo @ 2025-06-20 21:24 UTC (permalink / raw)
  To: Namhyung Kim
  Cc: Ingo Molnar, Thomas Gleixner, James Clark, Jiri Olsa, Ian Rogers,
	Adrian Hunter, Kan Liang, Clark Williams, linux-kernel,
	linux-perf-users, Arnaldo Carvalho de Melo

From: Arnaldo Carvalho de Melo <acme@redhat.com>

Just to follow the pattern with other devel packages.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: James Clark <james.clark@linaro.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
 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 afebd3b1e6cb9f58..fd03ba83a48ee08b 100644
--- a/tools/perf/Makefile.config
+++ b/tools/perf/Makefile.config
@@ -1157,7 +1157,7 @@ ifndef NO_LIBPFM4
     ASCIIDOC_EXTRA = -aHAVE_LIBPFM=1
     $(call detected,CONFIG_LIBPFM4)
   else
-    $(warning libpfm4 not found, disables libpfm4 support. Please install libpfm4-dev)
+    $(warning libpfm4 not found, disables libpfm4 support. Please install libpfm-devel or libpfm4-dev)
   endif
 endif
 
-- 
2.49.0


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

* [PATCH 3/3] perf build: The bfd features are opt-in, stop testing for them by default
  2025-06-20 21:24 [PATCH 0/3] perf tools build process cleanups and extra hints Arnaldo Carvalho de Melo
  2025-06-20 21:24 ` [PATCH 1/3] perf build: Suggest java-latest-openjdk-devel instead of old 1.8.0 one Arnaldo Carvalho de Melo
  2025-06-20 21:24 ` [PATCH 2/3] perf build: Add the libpfm devel fedora package name to the hint Arnaldo Carvalho de Melo
@ 2025-06-20 21:24 ` Arnaldo Carvalho de Melo
  2025-06-23 14:25 ` [PATCH 0/3] perf tools build process cleanups and extra hints James Clark
  2025-06-24 17:53 ` Namhyung Kim
  4 siblings, 0 replies; 7+ messages in thread
From: Arnaldo Carvalho de Melo @ 2025-06-20 21:24 UTC (permalink / raw)
  To: Namhyung Kim
  Cc: Ingo Molnar, Thomas Gleixner, James Clark, Jiri Olsa, Ian Rogers,
	Adrian Hunter, Kan Liang, Clark Williams, linux-kernel,
	linux-perf-users, Arnaldo Carvalho de Melo

From: Arnaldo Carvalho de Melo <acme@redhat.com>

These are leftovers noticed while updating a build container.

We don't need those so that test-all.c can build and thus speed up the
feature detection.

Test for those features only if the user asks for BUILD_NONDISTRO=1 to
build with libbfd.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: James Clark <james.clark@linaro.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
 tools/build/feature/test-all.c | 19 -------------------
 tools/perf/Makefile.config     |  5 +++++
 2 files changed, 5 insertions(+), 19 deletions(-)

diff --git a/tools/build/feature/test-all.c b/tools/build/feature/test-all.c
index 03ddaac6f4c4dfa2..1010f233d9c1ad49 100644
--- a/tools/build/feature/test-all.c
+++ b/tools/build/feature/test-all.c
@@ -66,14 +66,6 @@
 # include "test-libslang.c"
 #undef main
 
-#define main main_test_libbfd
-# include "test-libbfd.c"
-#undef main
-
-#define main main_test_libbfd_buildid
-# include "test-libbfd-buildid.c"
-#undef main
-
 #define main main_test_backtrace
 # include "test-backtrace.c"
 #undef main
@@ -158,14 +150,6 @@
 # include "test-reallocarray.c"
 #undef main
 
-#define main main_test_disassembler_four_args
-# include "test-disassembler-four-args.c"
-#undef main
-
-#define main main_test_disassembler_init_styled
-# include "test-disassembler-init-styled.c"
-#undef main
-
 #define main main_test_libzstd
 # include "test-libzstd.c"
 #undef main
@@ -193,8 +177,6 @@ int main(int argc, char *argv[])
 	main_test_libelf_gelf_getnote();
 	main_test_libelf_getshdrstrndx();
 	main_test_libslang();
-	main_test_libbfd();
-	main_test_libbfd_buildid();
 	main_test_backtrace();
 	main_test_libnuma();
 	main_test_numa_num_possible_cpus();
@@ -213,7 +195,6 @@ int main(int argc, char *argv[])
 	main_test_setns();
 	main_test_libaio();
 	main_test_reallocarray();
-	main_test_disassembler_four_args();
 	main_test_libzstd();
 	main_test_libtraceevent();
 	main_test_libtracefs();
diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config
index fd03ba83a48ee08b..12193986effb954a 100644
--- a/tools/perf/Makefile.config
+++ b/tools/perf/Makefile.config
@@ -918,6 +918,8 @@ ifneq ($(NO_JEVENTS),1)
 endif
 
 ifdef BUILD_NONDISTRO
+  $(call feature_check,libbfd)
+
   ifeq ($(feature-libbfd), 1)
     EXTLIBS += -lbfd -lopcodes
   else
@@ -946,6 +948,9 @@ ifdef BUILD_NONDISTRO
 
   CFLAGS += -DHAVE_LIBBFD_SUPPORT
   CXXFLAGS += -DHAVE_LIBBFD_SUPPORT
+
+  $(call feature_check,libbfd-buildid)
+
   ifeq ($(feature-libbfd-buildid), 1)
     CFLAGS += -DHAVE_LIBBFD_BUILDID_SUPPORT
   else
-- 
2.49.0


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

* Re: [PATCH 0/3] perf tools build process cleanups and extra hints
  2025-06-20 21:24 [PATCH 0/3] perf tools build process cleanups and extra hints Arnaldo Carvalho de Melo
                   ` (2 preceding siblings ...)
  2025-06-20 21:24 ` [PATCH 3/3] perf build: The bfd features are opt-in, stop testing for them by default Arnaldo Carvalho de Melo
@ 2025-06-23 14:25 ` James Clark
  2025-06-24 17:53 ` Namhyung Kim
  4 siblings, 0 replies; 7+ messages in thread
From: James Clark @ 2025-06-23 14:25 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo, Namhyung Kim
  Cc: Ingo Molnar, Thomas Gleixner, Jiri Olsa, Ian Rogers,
	Adrian Hunter, Kan Liang, Clark Williams, linux-kernel,
	linux-perf-users, Arnaldo Carvalho de Melo, Chun-Tse Shao,
	Heiko Carstens, Jakub Brnak, Junhao He, Ravi Bangoria,
	Stephane Eranian, Sumanth Korikkar, Thomas Falcon, Thomas Richter,
	Weilin Wang



On 20/06/2025 10:24 pm, Arnaldo Carvalho de Melo wrote:
> From: Arnaldo Carvalho de Melo <acme@redhat.com>
> 
> Hi,
> 
> 	Some simple cleanups and extra hints for the build process,
> 
> - Arnaldo
> 
> Arnaldo Carvalho de Melo (3):
>    perf build: Suggest java-latest-openjdk-devel instead of old 1.8.0 one
>    perf build: Add the libpfm devel fedora package name to the hint
>    perf build: The bfd features are opt-in, stop testing for them by default
> 
>   tools/build/feature/test-all.c | 19 -------------------
>   tools/perf/Makefile.config     |  9 +++++++--
>   2 files changed, 7 insertions(+), 21 deletions(-)
> 

Reviewed-by: James Clark <james.clark@linaro.org>


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

* Re: [PATCH 1/3] perf build: Suggest java-latest-openjdk-devel instead of old 1.8.0 one
  2025-06-20 21:24 ` [PATCH 1/3] perf build: Suggest java-latest-openjdk-devel instead of old 1.8.0 one Arnaldo Carvalho de Melo
@ 2025-06-23 21:07   ` Ian Rogers
  0 siblings, 0 replies; 7+ messages in thread
From: Ian Rogers @ 2025-06-23 21:07 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo
  Cc: Namhyung Kim, Ingo Molnar, Thomas Gleixner, James Clark,
	Jiri Olsa, Adrian Hunter, Kan Liang, Clark Williams, linux-kernel,
	linux-perf-users, Arnaldo Carvalho de Melo

On Fri, Jun 20, 2025 at 2:24 PM Arnaldo Carvalho de Melo
<acme@kernel.org> wrote:
>
> From: Arnaldo Carvalho de Melo <acme@redhat.com>
>
> Just tidying up the suggestion to pick the latest and not some specific
> version.
>
> Cc: Adrian Hunter <adrian.hunter@intel.com>
> Cc: Ian Rogers <irogers@google.com>
> Cc: James Clark <james.clark@linaro.org>
> Cc: Jiri Olsa <jolsa@kernel.org>
> Cc: Kan Liang <kan.liang@linux.intel.com>
> Cc: Namhyung Kim <namhyung@kernel.org>
> Link: https://lore.kernel.org/r/
> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

For patches 1 to 3:

Reviewed-by: Ian Rogers <irogers@google.com>

Thanks,
Ian

> ---
>  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 d1ea7bf449647eb2..afebd3b1e6cb9f58 100644
> --- a/tools/perf/Makefile.config
> +++ b/tools/perf/Makefile.config
> @@ -1144,7 +1144,7 @@ ifndef NO_JVMTI
>        endif
>      endif # NO_JVMTI_CMLR
>    else
> -    $(warning No openjdk development package found, please install JDK package, e.g. openjdk-8-jdk, java-1.8.0-openjdk-devel)
> +    $(warning No openjdk development package found, please install JDK package, e.g. openjdk-8-jdk, java-latest-openjdk-devel)
>      NO_JVMTI := 1
>    endif
>  endif
> --
> 2.49.0
>

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

* Re: [PATCH 0/3] perf tools build process cleanups and extra hints
  2025-06-20 21:24 [PATCH 0/3] perf tools build process cleanups and extra hints Arnaldo Carvalho de Melo
                   ` (3 preceding siblings ...)
  2025-06-23 14:25 ` [PATCH 0/3] perf tools build process cleanups and extra hints James Clark
@ 2025-06-24 17:53 ` Namhyung Kim
  4 siblings, 0 replies; 7+ messages in thread
From: Namhyung Kim @ 2025-06-24 17:53 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo
  Cc: Ingo Molnar, Thomas Gleixner, James Clark, Jiri Olsa, Ian Rogers,
	Adrian Hunter, Kan Liang, Clark Williams, linux-kernel,
	linux-perf-users, Arnaldo Carvalho de Melo, Chun-Tse Shao,
	Heiko Carstens, Jakub Brnak, Junhao He, Ravi Bangoria,
	Stephane Eranian, Sumanth Korikkar, Thomas Falcon, Thomas Richter,
	Weilin Wang

On Fri, 20 Jun 2025 18:24:32 -0300, Arnaldo Carvalho de Melo wrote:
> From: Arnaldo Carvalho de Melo <acme@redhat.com>
> 
> Hi,
> 
> 	Some simple cleanups and extra hints for the build process,
> 
> - Arnaldo
> 
> [...]
Applied to perf-tools-next, thanks!

Best regards,
Namhyung



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

end of thread, other threads:[~2025-06-24 17:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-20 21:24 [PATCH 0/3] perf tools build process cleanups and extra hints Arnaldo Carvalho de Melo
2025-06-20 21:24 ` [PATCH 1/3] perf build: Suggest java-latest-openjdk-devel instead of old 1.8.0 one Arnaldo Carvalho de Melo
2025-06-23 21:07   ` Ian Rogers
2025-06-20 21:24 ` [PATCH 2/3] perf build: Add the libpfm devel fedora package name to the hint Arnaldo Carvalho de Melo
2025-06-20 21:24 ` [PATCH 3/3] perf build: The bfd features are opt-in, stop testing for them by default Arnaldo Carvalho de Melo
2025-06-23 14:25 ` [PATCH 0/3] perf tools build process cleanups and extra hints James Clark
2025-06-24 17:53 ` 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).