linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Namhyung Kim <namhyung@kernel.org>
To: Quentin Monnet <qmo@kernel.org>
Cc: Ian Rogers <irogers@google.com>,
	Arnaldo Carvalho de Melo <acme@kernel.org>,
	bpf@vger.kernel.org, James Clark <james.clark@linaro.org>,
	Jiri Olsa <jolsa@kernel.org>,
	Adrian Hunter <adrian.hunter@intel.com>,
	Peter Zijlstra <peterz@infradead.org>,
	Ingo Molnar <mingo@kernel.org>,
	LKML <linux-kernel@vger.kernel.org>,
	linux-perf-users@vger.kernel.org, KP Singh <kpsingh@kernel.org>
Subject: Re: [PATCH 1/2] tools/build: Add a feature test for libopenssl
Date: Mon, 15 Dec 2025 22:19:56 -0800	[thread overview]
Message-ID: <aUD6DH_zAI6trA6M@google.com> (raw)
In-Reply-To: <4e7f40fc-114c-4786-86f7-532dce6cb04c@kernel.org>

Hello,

On Fri, Dec 05, 2025 at 10:28:03AM +0000, Quentin Monnet wrote:
> 2025-12-04 22:27 UTC-0800 ~ Ian Rogers <irogers@google.com>
> > On Thu, Dec 4, 2025 at 3:52 PM Namhyung Kim <namhyung@kernel.org> wrote:
> >>
> >> On Thu, Dec 04, 2025 at 01:16:54PM -0300, Arnaldo Carvalho de Melo wrote:
> >>> On Wed, Dec 03, 2025 at 04:34:56PM -0800, Ian Rogers wrote:
> >>>> On Wed, Dec 3, 2025 at 3:29 PM Namhyung Kim <namhyung@kernel.org> wrote:
> >>>>>
> >>>>> It's used by bpftool and the kernel build.  Let's add a feature test so
> >>>>> that perf can decide what to do based on the availability.
> >>>>
> >>>> It seems strange to add a feature test that bpftool is missing and
> >>>> then use it only in the perf build. The signing of bpf programs isn't
> >>>
> >>> It is strange indeed, I agree that since we don't use BPF signing at
> >>> this point in the perf BPf skels, then we could just bootstrap a bpftool
> >>> without such feature and continue building the existing features.
> >>>
> >>> Adding the bpftool maintainer to the CC list, Quentin?
> >>
> >> I've already talked to Quentin and they want libopenssl as a
> >> requirement.
> >>
> >> https://lore.kernel.org/linux-perf-users/e44f70bf-8f50-4a4b-97b8-eaf988aabced@kernel.org/
> > 
> > You can have libopenssl as a requirement and have a bootstrap bpftool
> > that doesn't require it, as the bootstrap version only provides
> > minimal features typically to just build bpftool. You can also have
> > libopenssl as a requirement and have a feature test that fails in the
> > bpftool build saying you are missing a requirement. Having the perf
> > build detect that a feature for the bpftool dependency is missing is
> > fine as we can then recommend installing bpftool or the missing
> > dependency, but doing this without bpftool also doing something just
> > seems inconsistent.
> > 
> > Thanks,
> > Ian
> 
> 
> From bpftool's perspective, it doesn't really make sense to skip the
> OpenSSL dependency for the bootstrap version, given that we want to ship
> the main binary with the signing feature: so you could build a bootstrap
> version without signing, but you won't be able to use it to build the
> final binary because, well, you miss a required dependency.
> 
> This being said, if it really makes it easier for you to build perf, I'd
> be open to adjusting the bootstrap version, as long as it doesn't affect
> the final bpftool build. It might lead to further headaches if someone
> needs to sign the BPF programs when building perf in the future though.
> 
> I'm also OK with adding a dependency check with a simple build error for
> bpftool, although we don't currently do it for other required
> dependencies in bpftool.

Ok, to make a progress, I'll add this series to perf-tools tree for
v6.19 first.

Thanks,
Namhyung


      reply	other threads:[~2025-12-16  6:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-03 23:29 [PATCH 1/2] tools/build: Add a feature test for libopenssl Namhyung Kim
2025-12-03 23:29 ` [PATCH 2/2] perf tools: Disable BPF skeleton if no libopenssl found Namhyung Kim
2025-12-04  0:34 ` [PATCH 1/2] tools/build: Add a feature test for libopenssl Ian Rogers
2025-12-04  7:52   ` Namhyung Kim
2025-12-04 16:16   ` Arnaldo Carvalho de Melo
2025-12-04 23:52     ` Namhyung Kim
2025-12-05  6:27       ` Ian Rogers
2025-12-05 10:28         ` Quentin Monnet
2025-12-16  6:19           ` Namhyung Kim [this message]

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=aUD6DH_zAI6trA6M@google.com \
    --to=namhyung@kernel.org \
    --cc=acme@kernel.org \
    --cc=adrian.hunter@intel.com \
    --cc=bpf@vger.kernel.org \
    --cc=irogers@google.com \
    --cc=james.clark@linaro.org \
    --cc=jolsa@kernel.org \
    --cc=kpsingh@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=peterz@infradead.org \
    --cc=qmo@kernel.org \
    /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 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).