Linux Perf Users
 help / color / mirror / Atom feed
From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: Ian Rogers <irogers@google.com>
Cc: Michael Jeanson <mjeanson@efficios.com>,
	Namhyung Kim <namhyung@kernel.org>,
	linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org,
	Adrian Hunter <adrian.hunter@intel.com>,
	Alexander Shishkin <alexander.shishkin@linux.intel.com>,
	Derek Foreman <derek.foreman@collabora.com>,
	Ingo Molnar <mingo@redhat.com>,
	James Clark <james.clark@linaro.org>,
	Jiri Olsa <jolsa@kernel.org>, Mark Rutland <mark.rutland@arm.com>,
	Mathieu Desnoyers <mathieu.desnoyers@efficios.com>,
	Peter Zijlstra <peterz@infradead.org>
Subject: Re: [PATCH] perf data ctf: replace libbabeltrace with babeltrace2-ctf-writer
Date: Wed, 20 May 2026 15:52:51 -0300	[thread overview]
Message-ID: <ag4DA1FMVtmaY9On@x1> (raw)
In-Reply-To: <CAP-5=fUxAGG1Cs9yHqy7qjJNa4KP6E_Q0cCdLfmYwcPnHKLdyA@mail.gmail.com>

On Wed, May 20, 2026 at 11:12:37AM -0700, Ian Rogers wrote:
> On Wed, May 20, 2026 at 10:58 AM Michael Jeanson <mjeanson@efficios.com> wrote:
> >
> > On 2026-05-20 12:13, Ian Rogers wrote:
> > > On Wed, May 13, 2026 at 9:06 AM Ian Rogers <irogers@google.com> wrote:
> > >> On Wed, May 13, 2026 at 7:14 AM Michael Jeanson <mjeanson@efficios.com> wrote:
> > >>> On 2026-05-12 17:54, Ian Rogers wrote:
> > >>>> This is cool, I'm surprised at how non-invasive the change is. I'd
> > >>>> done a similar thing but keeping both babeltrace 1 and 2. I'll post my
> > >>>> WIP in reply just as a heads up, but I have to do much more heavy
> > >>>> engineering.
> > >>>
> > >>> I think I can rework this to try babeltrace2-ctf-writer first and fall
> > >>> back on libbabeltrace1. The change is non-invasive because
> > >>> bt2-ctf-writer is basically just a compat API for the ctf-writer of bt1
> > >>> but it doesn't expose any of the new features of bt2.
> > >>>
> > >>> Your WIP patch that uses the proper libbabeltrace2 API is definitely the
> > >>> way to go for the long term. In the meantime would you like a v2 of this
> > >>> patch?
> > >>
> > >> We have a problem with the perf tool in that it carries too much
> > >> baggage due to its library dependencies, so I'd prefer we stick with
> > >> v2 support and your cleaner/simpler patch. I'm also hugely
> > >> appreciative of the work you've put in! I'm too busy to review my own
> > >> work right now, and cleaning this up ASAP offers an advantage.
> > > ...
> > >>
> > >> * We support libbfd although libbfd is GPLv3 and license incompatible
> > >> with perf, which is mainly GPLv2. We carry around libunwind support
> > >> but that project appears unmaintained. We have LLVM support but the
> > >> LLVM dependency is huge in terms of size and dependencies it brings
> > >> in, so people avoid building with it, etc.
> > >
> > > What's the plan here? I'd prefer to carry the v1 patch, ie let's lose
> > > libbabeltrace (version 1) as a dependency.
> >
> > I think I misunderstood you, I thought you wanted to keep the bt1
> > support as a fallback. I'm fine with either version of the patch being
> > merged.
> >
> > I can send an updated version of the v1 patch addressing your review
> > comments.
> 
> Arnaldo, Namhyung, do you mind losing libbabeltrace v1 support? As the
> commit message states:
> 
>   The 1.x branch of Babeltrace has been superseded by 2.x in 2020 and has
>   been unmaintained since 2022, efforts have started to remove it from
>   popular distributions.
> 
> My choice would be to go with the v1 patch with the few fixes I'd mentioned.

Right, this is from the people working directly in babeltrace, so I'll
take their advice, Michael, can you please address Ian's comments, check
that it applies cleanly to perf-tools-next and resubmit, please?

- Arnaldo

  reply	other threads:[~2026-05-20 18:52 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-12 19:47 [PATCH] perf data ctf: replace libbabeltrace with babeltrace2-ctf-writer Michael Jeanson
2026-05-12 21:54 ` Ian Rogers
2026-05-12 21:56   ` [PATCH 1/2] tools build: Add libbabeltrace2 feature test Ian Rogers
2026-05-12 21:56     ` [PATCH 2/2] perf data convert ctf: Initial babeltrace2 support Ian Rogers
2026-05-14  0:34       ` sashiko-bot
2026-05-13 14:14   ` [PATCH] perf data ctf: replace libbabeltrace with babeltrace2-ctf-writer Michael Jeanson
2026-05-13 16:06     ` Ian Rogers
2026-05-20 16:13       ` Ian Rogers
2026-05-20 17:58         ` Michael Jeanson
2026-05-20 18:12           ` Ian Rogers
2026-05-20 18:52             ` Arnaldo Carvalho de Melo [this message]
2026-05-13 16:05 ` [PATCH v2] " Michael Jeanson
2026-05-20 19:14 ` [PATCH v3] " Michael Jeanson
2026-05-20 19:26   ` Ian Rogers

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=ag4DA1FMVtmaY9On@x1 \
    --to=acme@kernel.org \
    --cc=adrian.hunter@intel.com \
    --cc=alexander.shishkin@linux.intel.com \
    --cc=derek.foreman@collabora.com \
    --cc=irogers@google.com \
    --cc=james.clark@linaro.org \
    --cc=jolsa@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=mathieu.desnoyers@efficios.com \
    --cc=mingo@redhat.com \
    --cc=mjeanson@efficios.com \
    --cc=namhyung@kernel.org \
    --cc=peterz@infradead.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