linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] tools/perf/tests/make: use IS_64_BIT for generic lib dir
@ 2025-10-31 15:11 pgnmirror
  2025-10-31 19:04 ` Namhyung Kim
  0 siblings, 1 reply; 2+ messages in thread
From: pgnmirror @ 2025-10-31 15:11 UTC (permalink / raw)
  To: linux-kernel
  Cc: pgnmirror, Arnaldo Carvalho de Melo, Ian Rogers, linux-perf-users,
	zntsproj

Use the IS_64_BIT flag to set the lib directory generically for all architectures.
Previously, this logic was hardcoded for x86/x86_64 only.

Signed-off-by: zntsproj <vseokaktusah7@gmail.com>
---
 tools/perf/tests/make | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/tools/perf/tests/make b/tools/perf/tests/make
index b650ce886..64066e011 100644
--- a/tools/perf/tests/make
+++ b/tools/perf/tests/make
@@ -53,9 +53,8 @@ endif
 
 include $(srctree)/tools/scripts/Makefile.arch
 
-# FIXME looks like x86 is the only arch running tests ;-)
-# we need some IS_(32/64) flag to make this generic
-ifeq ($(ARCH)$(IS_64_BIT), x861)
+# use IS_64_BIT to select lib/lib64 generically for all architectures
+ifeq ($(IS_64_BIT), 1)
 lib = lib64
 else
 lib = lib
-- 
2.51.2


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

* Re: [PATCH v2] tools/perf/tests/make: use IS_64_BIT for generic lib dir
  2025-10-31 15:11 [PATCH v2] tools/perf/tests/make: use IS_64_BIT for generic lib dir pgnmirror
@ 2025-10-31 19:04 ` Namhyung Kim
  0 siblings, 0 replies; 2+ messages in thread
From: Namhyung Kim @ 2025-10-31 19:04 UTC (permalink / raw)
  To: pgnmirror
  Cc: linux-kernel, Arnaldo Carvalho de Melo, Ian Rogers,
	linux-perf-users, zntsproj

On Fri, Oct 31, 2025 at 06:11:14PM +0300, pgnmirror wrote:
> Use the IS_64_BIT flag to set the lib directory generically for all architectures.
> Previously, this logic was hardcoded for x86/x86_64 only.
> 
> Signed-off-by: zntsproj <vseokaktusah7@gmail.com>
> ---
>  tools/perf/tests/make | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/tools/perf/tests/make b/tools/perf/tests/make
> index b650ce886..64066e011 100644
> --- a/tools/perf/tests/make
> +++ b/tools/perf/tests/make
> @@ -53,9 +53,8 @@ endif
>  
>  include $(srctree)/tools/scripts/Makefile.arch
>  
> -# FIXME looks like x86 is the only arch running tests ;-)
> -# we need some IS_(32/64) flag to make this generic
> -ifeq ($(ARCH)$(IS_64_BIT), x861)
> +# use IS_64_BIT to select lib/lib64 generically for all architectures
> +ifeq ($(IS_64_BIT), 1)

IIRC last time we checked this, some arch/distro didn't have lib64
directory on 64-bit systems.  Are you sure if it'd work on them or do
you have any real problem with this?

Thanks,
Namhyung


>  lib = lib64
>  else
>  lib = lib
> -- 
> 2.51.2
> 

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

end of thread, other threads:[~2025-10-31 19:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-31 15:11 [PATCH v2] tools/perf/tests/make: use IS_64_BIT for generic lib dir pgnmirror
2025-10-31 19:04 ` 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).