All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jason Gunthorpe <jgg@nvidia.com>
To: "Thomas Weißschuh" <linux@weissschuh.net>
Cc: "Thomas Weißschuh" <thomas.weissschuh@linutronix.de>,
	"Kees Cook" <kees@kernel.org>,
	"Eric Biederman" <ebiederm@xmission.com>,
	"Shuah Khan" <shuah@kernel.org>,
	"Nathan Chancellor" <nathan@kernel.org>,
	"Nick Desaulniers" <ndesaulniers@google.com>,
	"Bill Wendling" <morbo@google.com>,
	"Justin Stitt" <justinstitt@google.com>,
	"Andy Lutomirski" <luto@kernel.org>,
	"Thomas Gleixner" <tglx@linutronix.de>,
	"Vincenzo Frascino" <vincenzo.frascino@arm.com>,
	"Willy Tarreau" <w@1wt.eu>,
	"Jason A. Donenfeld" <Jason@zx2c4.com>,
	"Christophe Leroy" <christophe.leroy@csgroup.eu>,
	linux-mm@kvack.org, linux-kernel@vger.kernel.org,
	linux-kselftest@vger.kernel.org, llvm@lists.linux.dev
Subject: Re: [PATCH v2 16/16] selftests: vDSO: vdso_standalone_test_x86: Switch to nolibc
Date: Wed, 17 Sep 2025 13:47:34 -0300	[thread overview]
Message-ID: <20250917164734.GA2047227@nvidia.com> (raw)
In-Reply-To: <1f64966f-ef7a-474a-9641-561b6b7cb0d2@t-8ch.de>

On Wed, Sep 17, 2025 at 06:24:13PM +0200, Thomas Weißschuh wrote:
> Care to try this:
> 
> diff --git a/tools/testing/selftests/lib.mk b/tools/testing/selftests/lib.mk
> index 530390033929..a448fae57831 100644
> --- a/tools/testing/selftests/lib.mk
> +++ b/tools/testing/selftests/lib.mk
> @@ -228,7 +228,10 @@ $(OUTPUT)/%:%.S
>         $(LINK.S) $^ $(LDLIBS) -o $@
>  endif
> 
> +# Extract the expected header directory
> +khdr_output := $(patsubst %/usr/include,%,$(filter %/usr/include,$(KHDR_INCLUDES)))
> +
>  headers:
> -       $(Q)$(MAKE) -C $(top_srcdir) headers
> +       $(Q)$(MAKE) -f $(top_srcdir)/Makefile -C $(khdr_output) headers
> 
>  .PHONY: run_tests all clean install emit_tests gen_mods_dir clean_mods_dir headers

Worked for me, thanks!

Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>

Though I notice it still spews stuff out of the build directory:

tools/testing/selftests/mm/local_config.h
tools/testing/selftests/mm/local_config.mk
tools/testing/selftests/net/rds/include.sh
tools/testing/selftests/prctl/disable-tsc-ctxt-sw-stress-test
tools/testing/selftests/prctl/disable-tsc-on-off-stress-test
tools/testing/selftests/prctl/disable-tsc-test
tools/testing/selftests/prctl/set-anon-vma-name-test
tools/testing/selftests/prctl/set-process-name
tools/testing/selftests/uevent/uevent_filtering

It is not related to this

Jason

  reply	other threads:[~2025-09-17 16:47 UTC|newest]

Thread overview: 59+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-26 11:44 [PATCH v2 00/16] selftests: vDSO: parse_vdso: Make compatible with nolibc Thomas Weißschuh
2025-02-26 11:44 ` [PATCH v2 01/16] MAINTAINERS: Add vDSO selftests Thomas Weißschuh
2025-02-28 12:22   ` Vincenzo Frascino
2025-03-03 19:13   ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2025-02-26 11:44 ` [PATCH v2 02/16] elf, uapi: Add definition for STN_UNDEF Thomas Weißschuh
2025-02-28 12:23   ` Vincenzo Frascino
2025-03-03 19:13   ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2025-02-26 11:44 ` [PATCH v2 03/16] elf, uapi: Add definition for DT_GNU_HASH Thomas Weißschuh
2025-02-28 12:23   ` Vincenzo Frascino
2025-03-03 19:13   ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2025-02-26 11:44 ` [PATCH v2 04/16] elf, uapi: Add definitions for VER_FLG_BASE and VER_FLG_WEAK Thomas Weißschuh
2025-02-28 12:24   ` Vincenzo Frascino
2025-03-03 19:13   ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2025-02-26 11:44 ` [PATCH v2 05/16] elf, uapi: Add type ElfXX_Versym Thomas Weißschuh
2025-02-28 12:24   ` Vincenzo Frascino
2025-03-03 19:13   ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2025-02-26 11:44 ` [PATCH v2 06/16] elf, uapi: Add types ElfXX_Verdef and ElfXX_Veraux Thomas Weißschuh
2025-02-28 12:25   ` Vincenzo Frascino
2025-03-03 19:13   ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2025-02-26 11:44 ` [PATCH v2 07/16] tools/include: Add uapi/linux/elf.h Thomas Weißschuh
2025-02-28 12:25   ` Vincenzo Frascino
2025-03-03 19:13   ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2025-02-26 11:44 ` [PATCH v2 08/16] selftests: Add headers target Thomas Weißschuh
2025-02-28 12:26   ` Vincenzo Frascino
2025-03-03 19:13   ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2025-02-26 11:44 ` [PATCH v2 09/16] tools/nolibc: add limits.h shim header Thomas Weißschuh
2025-02-28 12:27   ` Vincenzo Frascino
2025-03-01 11:30   ` Willy Tarreau
2025-03-03 19:12   ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2025-02-26 11:44 ` [PATCH v2 10/16] selftests: vDSO: vdso_standalone_test_x86: Use vdso_init_form_sysinfo_ehdr Thomas Weißschuh
2025-02-28 12:28   ` Vincenzo Frascino
2025-03-03 19:12   ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2025-02-26 11:44 ` [PATCH v2 11/16] selftests: vDSO: parse_vdso: Drop vdso_init_from_auxv() Thomas Weißschuh
2025-02-28 12:28   ` Vincenzo Frascino
2025-03-03 19:12   ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2025-02-26 11:44 ` [PATCH v2 12/16] selftests: vDSO: parse_vdso: Use UAPI headers instead of libc headers Thomas Weißschuh
2025-02-28 12:29   ` Vincenzo Frascino
2025-03-03 19:12   ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2025-03-20 13:23   ` [PATCH v2 12/16] " Mark Brown
2025-03-26 13:02     ` Mark Brown
2025-03-28 23:08       ` Shuah Khan
2025-03-31 11:56         ` Mark Brown
2025-04-04 13:03           ` Mark Brown
2025-02-26 11:44 ` [PATCH v2 13/16] selftests: vDSO: parse_vdso: Test __SIZEOF_LONG__ instead of ULONG_MAX Thomas Weißschuh
2025-02-28 12:29   ` Vincenzo Frascino
2025-03-03 19:12   ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2025-02-26 11:44 ` [PATCH v2 14/16] selftests: vDSO: vdso_test_gettimeofday: Clean up includes Thomas Weißschuh
2025-02-28 12:29   ` Vincenzo Frascino
2025-03-03 19:12   ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2025-02-26 11:44 ` [PATCH v2 15/16] selftests: vDSO: vdso_test_gettimeofday: Make compatible with nolibc Thomas Weißschuh
2025-02-28 12:30   ` Vincenzo Frascino
2025-03-03 19:12   ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2025-02-26 11:44 ` [PATCH v2 16/16] selftests: vDSO: vdso_standalone_test_x86: Switch to nolibc Thomas Weißschuh
2025-02-28 12:31   ` Vincenzo Frascino
2025-03-03 19:12   ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2025-09-17 15:32   ` [PATCH v2 16/16] " Jason Gunthorpe
2025-09-17 16:24     ` Thomas Weißschuh
2025-09-17 16:47       ` Jason Gunthorpe [this message]
2025-02-26 21:18 ` [PATCH v2 00/16] selftests: vDSO: parse_vdso: Make compatible with nolibc Shuah Khan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250917164734.GA2047227@nvidia.com \
    --to=jgg@nvidia.com \
    --cc=Jason@zx2c4.com \
    --cc=christophe.leroy@csgroup.eu \
    --cc=ebiederm@xmission.com \
    --cc=justinstitt@google.com \
    --cc=kees@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=linux@weissschuh.net \
    --cc=llvm@lists.linux.dev \
    --cc=luto@kernel.org \
    --cc=morbo@google.com \
    --cc=nathan@kernel.org \
    --cc=ndesaulniers@google.com \
    --cc=shuah@kernel.org \
    --cc=tglx@linutronix.de \
    --cc=thomas.weissschuh@linutronix.de \
    --cc=vincenzo.frascino@arm.com \
    --cc=w@1wt.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.