Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Sebastian Brzezinka <sebastian.brzezinka@intel.com>
To: Krzysztof Karas <krzysztof.karas@intel.com>,
	Sebastian Brzezinka <sebastian.brzezinka@intel.com>
Cc: <igt-dev@lists.freedesktop.org>,
	<kamil.konieczny@linux.intel.com>, <krzysztof.niemiec@intel.com>
Subject: Re: [PATCH i-g-t 01/25] tools: igt_stats: drop libigt.so, link against minimal sub-libraries
Date: Thu, 25 Jun 2026 11:02:25 +0200	[thread overview]
Message-ID: <DJI0BK153N4X.3PXQOSBXU39C9@intel.com> (raw)
In-Reply-To: <h6ce4epe7nlp4h7o4ymgc3pacsmtqgb767cqz57j4uby6f2mdc@t2ntumzcf4pp>

Hi Krzysztof,

On Thu Jun 25, 2026 at 8:11 AM CEST, Krzysztof Karas wrote:
> Hi Sebastian,
>
> The patch works as advertised, but Ashutosh had some qualms
> about the series, so I'll refrain from giving my r-bs for now.
> I too have some suggestions down below.
>
> On 2026-06-24 at 10:47:08 +0200, Sebastian Brzezinka wrote:
>> igt_stats only needs the statistics helpers and a small assert stub.
>> Link it against lib_igt_stats and lib_igt_tools_stub instead of the
>> full libigt.so stack.
>> 
>> ldd before: 35  (ldd | wc -l)
>> ldd after:   4   (ldd | wc -l)
>> 
>> Signed-off-by: Sebastian Brzezinka <sebastian.brzezinka@intel.com>
>> ---
>>  lib/meson.build   | 14 ++++++++++++++
>>  tools/meson.build |  6 +++++-
>>  2 files changed, 19 insertions(+), 1 deletion(-)
>> 
>> diff --git a/lib/meson.build b/lib/meson.build
>> index f25ecd8b2..96903d06f 100644
>> --- a/lib/meson.build
>> +++ b/lib/meson.build
>> @@ -389,6 +389,20 @@ lib_igt_profiling_build = static_library('igt_profiling',
>>  lib_igt_profiling = declare_dependency(link_with : lib_igt_profiling_build,
>>  				        include_directories : inc)
>>  
>> +lib_igt_tools_stub_build = static_library('igt_tools_stub',
>> +	['igt_tools_stub.c'],
>> +	include_directories : inc)
>> +
>> +lib_igt_tools_stub = declare_dependency(link_with : lib_igt_tools_stub_build,
>> +					include_directories : inc)
>> +
> I think this change deserves its own patch. Stub dependency is
> used accross this series, so pleade do not obscure it here, as
> a part of igt_stats dedicated change.
>
You may be right here.

> Another thing: I'd find reading this series easier if you
> bunched together all the patches using stub dependency.
The per-tool split is intentional for two reasons: each patch shows
the ldd improvement for that specific tool, and if any tool turns out
to have a backward compatibility issue it can be reverted individually
without touching the rest of the series.


-- 
Best regards,
Sebastian


  reply	other threads:[~2026-06-25  9:02 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-24  8:47 [PATCH i-g-t 00/25] tools: remove unnecessary shared library Sebastian Brzezinka
2026-06-24  8:47 ` [PATCH i-g-t 01/25] tools: igt_stats: drop libigt.so, link against minimal sub-libraries Sebastian Brzezinka
2026-06-25  6:11   ` Krzysztof Karas
2026-06-25  9:02     ` Sebastian Brzezinka [this message]
2026-06-26  5:55       ` Krzysztof Karas
2026-06-24  8:47 ` [PATCH i-g-t 02/25] tools: intel_firmware_decode: " Sebastian Brzezinka
2026-06-24  8:47 ` [PATCH i-g-t 03/25] lib: extend igt_tools_stub with additional stubs needed by tools Sebastian Brzezinka
2026-06-25  6:27   ` Krzysztof Karas
2026-06-24  8:47 ` [PATCH i-g-t 04/25] lib: introduce lib_igt_drm_stub for tools needing driver detection Sebastian Brzezinka
2026-06-25  7:56   ` Krzysztof Karas
2026-06-24  8:47 ` [PATCH i-g-t 05/25] lib: introduce lib_igt_halffloat static sub-library for tools Sebastian Brzezinka
2026-06-24  8:47 ` [PATCH i-g-t 06/25] lib: introduce lib_i915_decode " Sebastian Brzezinka
2026-06-24  8:47 ` [PATCH i-g-t 07/25] lib: introduce lib_igt_reg_tools " Sebastian Brzezinka
2026-06-24  8:47 ` [PATCH i-g-t 08/25] tools: intel_gpu_frequency: drop libigt.so, link against minimal sub-libraries Sebastian Brzezinka
2026-06-24  8:47 ` [PATCH i-g-t 09/25] lib/i915: intel_decode: replace igt.h with minimal headers Sebastian Brzezinka
2026-06-24  8:47 ` [PATCH i-g-t 10/25] tools: intel_stepping: drop libigt.so, link against minimal sub-libraries Sebastian Brzezinka
2026-06-24  8:47 ` [PATCH i-g-t 11/25] tools: intel_gtt: " Sebastian Brzezinka
2026-06-24  8:47 ` [PATCH i-g-t 12/25] tools: intel_error_decode: " Sebastian Brzezinka
2026-06-24  8:47 ` [PATCH i-g-t 13/25] tools: intel_vbt_decode: " Sebastian Brzezinka
2026-06-24  8:47 ` [PATCH i-g-t 14/25] tools: intel_backlight: " Sebastian Brzezinka
2026-06-24  8:47 ` [PATCH i-g-t 15/25] tools: intel_lid: " Sebastian Brzezinka
2026-06-24  8:47 ` [PATCH i-g-t 16/25] tools: intel_gpu_time: " Sebastian Brzezinka
2026-06-24  8:47 ` [PATCH i-g-t 17/25] tools: intel_audio_dump: " Sebastian Brzezinka
2026-06-24  8:47 ` [PATCH i-g-t 18/25] tools: intel_forcewaked: " Sebastian Brzezinka
2026-06-24  8:47 ` [PATCH i-g-t 19/25] tools: intel_guc_logger: " Sebastian Brzezinka
2026-06-25 11:37   ` Krzysztof Karas
2026-06-24  8:47 ` [PATCH i-g-t 20/25] tools: intel_infoframes: " Sebastian Brzezinka
2026-06-24  8:47 ` [PATCH i-g-t 21/25] tools: intel_panel_fitter: " Sebastian Brzezinka
2026-06-24  8:47 ` [PATCH i-g-t 22/25] tools: intel_watermark: " Sebastian Brzezinka
2026-06-24  8:47 ` [PATCH i-g-t 23/25] tools: intel_display_poller: " Sebastian Brzezinka
2026-06-24  8:47 ` [PATCH i-g-t 24/25] tools: intel_gvtg_test: " Sebastian Brzezinka
2026-06-24  8:47 ` [PATCH i-g-t 25/25] tools: lsgpu: " Sebastian Brzezinka
2026-06-24 10:35 ` ✓ i915.CI.BAT: success for tools: remove unnecessary shared library Patchwork
2026-06-24 10:39 ` ✓ Xe.CI.BAT: " Patchwork
2026-06-24 12:10 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-06-24 16:33 ` [PATCH i-g-t 00/25] " Dixit, Ashutosh
2026-06-25  8:47   ` Sebastian Brzezinka
2026-06-26  1:30     ` Dixit, Ashutosh
2026-06-24 18:33 ` ✗ i915.CI.Full: failure for " Patchwork

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=DJI0BK153N4X.3PXQOSBXU39C9@intel.com \
    --to=sebastian.brzezinka@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=kamil.konieczny@linux.intel.com \
    --cc=krzysztof.karas@intel.com \
    --cc=krzysztof.niemiec@intel.com \
    /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