From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f201.google.com (mail-pl1-f201.google.com [209.85.214.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 33F5B23506A for ; Thu, 1 May 2025 19:50:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746129008; cv=none; b=kCG/KCOgDc0ITlFD8M8n2UFZE1gpc0dBP82EgtfMckaa2M8E/2ERzVC/Lh7qsBXiwoIFCGItKBVlHUSSSw/cOLtwbuCdCPQqGaFUA/8t4SIg2u22HgV8mZzdVoILGmrbc/EFPZ1trd/s/V6JO7uA47Sr8RtvpqNXVU9YdHOIlMk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746129008; c=relaxed/simple; bh=2+apnvaLBiIzvCpdS7UmoaeaZD+fLMfXuixakTq8zyk=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=ttDioLIlvsytTqqdKAzQrIBi6oyk4mf7UYMWtJorXkwtJS7uE51njZyLk47ebeVLe8+XlX6y7eQ3DTaXuAb13o3Pq3JFkXP0mdfU/5EvAgfYB+aX9dMY3LQijkNgW7/9OBAlWV5VxNyM5/G8gic3G/Tk3aArCg+wI8ThUylVj10= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=bpFTZwi5; arc=none smtp.client-ip=209.85.214.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="bpFTZwi5" Received: by mail-pl1-f201.google.com with SMTP id d9443c01a7336-227e2faab6dso10147315ad.1 for ; Thu, 01 May 2025 12:50:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1746129006; x=1746733806; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=5WkPY+IyOhaPmE7ksJuei+YjVRdCjQvuKQAGefphhn0=; b=bpFTZwi50S7LXvNlzOnQyeJuZ3GZGCohxBKXiVlskaDx/TglZ6YLxjgD5TbjwYg2OT 1vnxEC0B8DsTpdb983vd5QpSGyvSbLC+SNQAxp8ng66soqc2wq0fCcsGFI6hxHs1iPsX p6MBNFfFmKMNp7tYdpNqwiVKJV6PwAupUIwgbPKsb0jPIy+mbE9O1ypO/6nKS7xyh7dX HITdMRVW9o6/OpFntqpsZTb5khSgDcbAZYj9DQUNo7vIaUhCJjD9BRz8MGLn36u6tGAH PjM2TOBNxUJf6KbK49spwKpvFHGv46S3Sxg07b2CeQjefTHSNjsFUN/tr3nNPhfNPmGr AWpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746129006; x=1746733806; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=5WkPY+IyOhaPmE7ksJuei+YjVRdCjQvuKQAGefphhn0=; b=H7P/0yMtLxPXq8+N1y63YESbv3Rdww/ZUBd/S1h+dqqr5VvaCBQth4dhLRUFVtCORn Kz7iRbE13cPdqd/2cKMCSNo9H11SdpbIn8J2c0q0tr7s0PhKLxG5kZlTRNu+UzuozjSq 9XaJjzyayqe/AHG2g4CDkrjFpHxrqQkMkPB7XUawdA3jUQwuu9SR7FDx8i2P4CXANTRO Rp/05tOMBhgXMBOQUxbgbKWlHZB4CAAqCXbZEZAMUY6iPUSGL9ly1Tmhtl+0frv0MmfF DBedfCiEO/90rSAthDFEppfFmRdwuIrdKRBahRixQrkWZBOsHLohBnwHkjMSj3f43kWY D8RQ== X-Forwarded-Encrypted: i=1; AJvYcCX5lucGmf3jJstNs6vM7AdL8cXCX84IZXT/+mNmTAD+cO4JRNFd2eBGQoeA9V9BSQCN9QDm3GQuwoo=@vger.kernel.org X-Gm-Message-State: AOJu0YwsubAlkcLPyY05WxOXdo48Yq2WZcBE7FUpJTYAyaKu7mpMWOVR 3KKmw7KZ0Dhp4dosv3PhgDACvmUocaLN64YGsy2LHDUWmX1TBp0nKHPzipmyvHsZdCpj2Jc3muJ 1cw== X-Google-Smtp-Source: AGHT+IHPnH1hW0IfvKQ+lBW/azDi6UujtOpIW5dmyw0EC5ljOGt6t59+v/zFX71H5UcxugE1fcSMml30hc0= X-Received: from pjbsq5.prod.google.com ([2002:a17:90b:5305:b0:308:6685:55e6]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:902:cf0c:b0:21f:2ded:76ea with SMTP id d9443c01a7336-22e103b4341mr4441965ad.36.1746129006451; Thu, 01 May 2025 12:50:06 -0700 (PDT) Date: Thu, 1 May 2025 12:50:04 -0700 In-Reply-To: <20250501124646.GC4356@noisy.programming.kicks-ass.net> Precedence: bulk X-Mailing-List: linux-api@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <5b0b8e1e-6f50-4e18-bf46-39b00376c26e@nvidia.com> <20250501114235.GP4198@noisy.programming.kicks-ass.net> <20250501124646.GC4356@noisy.programming.kicks-ass.net> Message-ID: Subject: Re: [PATCH v3 3/3] selftests: pidfd: add tests for PIDFD_SELF_* From: Sean Christopherson To: Peter Zijlstra Cc: John Hubbard , Lorenzo Stoakes , Shuah Khan , Christian Brauner , Shuah Khan , "Liam R . Howlett" , Suren Baghdasaryan , Vlastimil Babka , pedro.falcato@gmail.com, linux-kselftest@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-api@vger.kernel.org, linux-kernel@vger.kernel.org, Oliver Sang Content-Type: text/plain; charset="us-ascii" On Thu, May 01, 2025, Peter Zijlstra wrote: > On Thu, May 01, 2025 at 01:42:35PM +0200, Peter Zijlstra wrote: > > On Wed, Oct 16, 2024 at 07:14:34PM -0700, John Hubbard wrote: > > > Peter Zijlstra's "NAK NAK NAK" response [1] last year was the most > > > colorful, so I'll helpfully cite it here. :) > > > > Let me re-try this. > > > > This is driving me insane. I've spend the past _TWO_ days trying to > > build KVM selftests and I'm still failing. > > > > This is absolute atrocious crap and is costing me valuable time. > > > > Please fix this fucking selftests shit to just build. This is unusable > > garbage. > > So after spending more time trying to remember how to debug Makefiles (I > hate my life), I found that not only do I need this headers shit, the > kvm selftests Makefile is actively broken if you use: make O=foo > > -INSTALL_HDR_PATH = $(top_srcdir)/usr > +INSTALL_HDR_PATH = $(top_srcdir)/$(O)/usr > > > And then finally, I can do: > > make O=foo headers_install > make O=foo -C tools/testing/selftests/kvm/ This doesn't actually work either, because for whatever reason, the selftests infrastructure uses OUTPUT, not O, for the output directory. And the whole top_srcdir crud doesn't work if O/OUTPUT is completely out-of-tree, e.g. I use absolute paths that have nothing to do with the source tree. I am more than happy to support any cleanup of KVM selftests, but I've more or less given up myself because so much of the ugliness is inhereted from selftests. I've resorted to hacked wrappers to make it work for my setup. E.g. I force KHDR_INCLUDES and INSTALL_HDR_PATH so that make doesn't try to grab usr/ files from the source tree.