From: Michael Jeanson <mjeanson@efficios.com>
To: Ian Rogers <irogers@google.com>,
Arnaldo Carvalho de Melo <acme@kernel.org>,
Namhyung Kim <namhyung@kernel.org>
Cc: 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 13:58:27 -0400 [thread overview]
Message-ID: <33978160-74a3-42ee-a4a2-1b0ad968a46e@efficios.com> (raw)
In-Reply-To: <CAP-5=fX5QpRcVhnZCd230FQWsJ8KHbCrv6y_47vcrBK0fhWWxA@mail.gmail.com>
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.
Cheers,
Michael
next prev parent reply other threads:[~2026-05-20 17:58 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-12 19:47 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-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 [this message]
2026-05-20 18:12 ` Ian Rogers
2026-05-20 18:52 ` Arnaldo Carvalho de Melo
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
2026-06-04 13:29 ` Arnaldo Carvalho de Melo
2026-06-04 17:18 ` Michael Jeanson
2026-06-04 17:17 ` [PATCH v4] " Michael Jeanson
2026-06-04 20:20 ` Arnaldo Carvalho de Melo
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=33978160-74a3-42ee-a4a2-1b0ad968a46e@efficios.com \
--to=mjeanson@efficios.com \
--cc=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=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
all inboxes | Powered by JetHome®