Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Sebastian Brzezinka <sebastian.brzezinka@intel.com>
To: Kamil Konieczny <kamil.konieczny@linux.intel.com>,
	Krzysztof Karas <krzysztof.karas@intel.com>
Cc: Sebastian Brzezinka <sebastian.brzezinka@intel.com>,
	<igt-dev@lists.freedesktop.org>, <krzysztof.niemiec@intel.com>,
	"Pawel Sikora" <pawel.sikora@intel.com>,
	Ashutosh Dixit <ashutosh.dixit@intel.com>
Subject: Re: [PATCH i-g-t v3 05/31] lib/igt_tools_stub: add stubs needed by tools
Date: Thu, 16 Jul 2026 12:25:17 +0200	[thread overview]
Message-ID: <DJZX8GDG33PW.237GU9G5Q8407@intel.com> (raw)
In-Reply-To: <20260716101312.75mjhktkn4fmcxno@kamilkon-DESK.igk.intel.com>

Hi Kamil,

On Thu Jul 16, 2026 at 12:13 PM CEST, Kamil Konieczny wrote:
> Hi all,
> On 2026-07-16 at 06:09:42 +0000, Krzysztof Karas wrote:
>> Hi Sebastian,
>> 
>> On 2026-07-15 at 14:15:15 +0200, Sebastian Brzezinka wrote:
>> > Add stubs for functions used by tools when linking without the
>> > full libigt.so: __igt_skip_check, igt_exit, igt_debugfs_open and
>> > igt_open_forcewake_handle_for_pcidev.
>> This patch does more than that: it unifies the comment style in
>> the file. This is a nit though, so consider it only if you would
>> prepare another version.
>> 
>> > 
>> > Signed-off-by: Sebastian Brzezinka <sebastian.brzezinka@intel.com>
>> > Acked-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
>> > ---
>> >  lib/igt_tools_stub.c | 83 ++++++++++++++++++++++++++++++++++++++++----
>> >  1 file changed, 76 insertions(+), 7 deletions(-)
>> > 
>> > diff --git a/lib/igt_tools_stub.c b/lib/igt_tools_stub.c
>> > index 9a0ec6217..21dc53f3f 100644
>> > --- a/lib/igt_tools_stub.c
>> > +++ b/lib/igt_tools_stub.c
>> > @@ -21,12 +21,27 @@
>> >   * IN THE SOFTWARE.
>> >   *
>> >   */
>> > +#include <fcntl.h>
>> > +#include <limits.h>
>> > +#include <stdarg.h>
>> > +#include <stdio.h>
>> > +#include <stdlib.h>
>> > +#include <sys/stat.h>
>> > +#include <sys/sysmacros.h>
>> > +#include <unistd.h>
>> > +
>> >  #include "igt_core.h"
>> > +#include "igt_debugfs.h"
>> >  
>> > -/* Stub for igt_log, this stub will simply print the msg on stderr device.
>> > - * Domain and log level are ignored.
>> > +/*
>> > + * Forward declaration only - avoids pulling in the heavy igt_gt.h header.
>> > + * The type is used as an opaque pointer; this stub always returns -1.
>> >   */
>> This is a nit, so consider it only if you would prepare another
>> version of this series:
>> The comment should be moved right before the function declaration.
>> > +struct pci_device;
>> >  
>> > +int igt_open_forcewake_handle_for_pcidev(const struct pci_device *pci_dev);
>> > +
>> > +/* Stub for igt_log: print message to stderr; domain and log level are ignored. */
>> >  void igt_log(const char *domain, enum igt_log_level level, const char *format, ...)
>
> This will be a second documentation for a function.
> Question for Pawel: could it be a problem for our documentation generation?
> Do we need an exclusion for stub functions?
For what it's worth, this documentation style was already there. It's
not my invention, so it should be ok, as long as the previous comments
don't break the docs build.

-- 
Best regards,
Sebastian


  reply	other threads:[~2026-07-16 10:24 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-15 12:15 [PATCH i-g-t v3 00/31] tools: remove unnecessary shared library dependencies from standalone tools Sebastian Brzezinka
2026-07-15 12:15 ` [PATCH i-g-t v3 01/31] lib/igt_tools_stub: introduce static sub-library for tools Sebastian Brzezinka
2026-07-15 12:15 ` [PATCH i-g-t v3 02/31] lib/igt_stats: " Sebastian Brzezinka
2026-07-15 12:15 ` [PATCH i-g-t v3 03/31] tools/igt_stats: link with minimal sub-libraries Sebastian Brzezinka
2026-07-15 12:15 ` [PATCH i-g-t v3 04/31] tools/intel_firmware_decode: " Sebastian Brzezinka
2026-07-16  7:29   ` Krzysztof Karas
2026-07-15 12:15 ` [PATCH i-g-t v3 05/31] lib/igt_tools_stub: add stubs needed by tools Sebastian Brzezinka
2026-07-16  6:09   ` Krzysztof Karas
2026-07-16 10:13     ` Kamil Konieczny
2026-07-16 10:25       ` Sebastian Brzezinka [this message]
2026-07-16 12:34         ` Kamil Konieczny
2026-07-15 12:15 ` [PATCH i-g-t v3 06/31] lib/igt_drm_stub: introduce for tools needing driver detection Sebastian Brzezinka
2026-07-16  7:28   ` Krzysztof Karas
2026-07-15 12:15 ` [PATCH i-g-t v3 07/31] lib/igt_device_scan: wire to use static sub-libraries Sebastian Brzezinka
2026-07-16  7:40   ` Krzysztof Karas
2026-07-15 12:15 ` [PATCH i-g-t v3 08/31] tools/intel_gpu_top: add explicit drm/tools-stub deps Sebastian Brzezinka
2026-07-16  7:43   ` Krzysztof Karas
2026-07-15 12:15 ` [PATCH i-g-t v3 09/31] lib/igt_halffloat: introduce static sub-library for tools Sebastian Brzezinka
2026-07-16  7:56   ` Krzysztof Karas
2026-07-15 12:15 ` [PATCH i-g-t v3 10/31] lib/i915/intel_decode: replace igt.h with minimal headers Sebastian Brzezinka
2026-07-16  8:16   ` Krzysztof Karas
2026-07-15 12:15 ` [PATCH i-g-t v3 11/31] lib/i915/intel_decode: introduce static sub-library for tools Sebastian Brzezinka
2026-07-16  8:26   ` Krzysztof Karas
2026-07-15 12:15 ` [PATCH i-g-t v3 12/31] lib/intel_mmio: introduce lib_igt_reg_tools " Sebastian Brzezinka
2026-07-16 13:27   ` Krzysztof Karas
2026-07-15 12:15 ` [PATCH i-g-t v3 13/31] tools/intel_gpu_frequency: link with minimal sub-libraries Sebastian Brzezinka
2026-07-16 13:34   ` Krzysztof Karas
2026-07-15 12:15 ` [PATCH i-g-t v3 14/31] tools/intel_stepping: " Sebastian Brzezinka
2026-07-15 12:15 ` [PATCH i-g-t v3 15/31] tools/intel_gtt: " Sebastian Brzezinka
2026-07-15 12:15 ` [PATCH i-g-t v3 16/31] tools/intel_dump_decode: " Sebastian Brzezinka
2026-07-15 12:15 ` [PATCH i-g-t v3 17/31] tools/intel_error_decode: " Sebastian Brzezinka
2026-07-15 12:15 ` [PATCH i-g-t v3 18/31] tools/intel_vbt_decode: " Sebastian Brzezinka
2026-07-15 12:15 ` [PATCH i-g-t v3 19/31] tools/intel_backlight: " Sebastian Brzezinka
2026-07-15 12:15 ` [PATCH i-g-t v3 20/31] tools/intel_lid: " Sebastian Brzezinka
2026-07-15 12:15 ` [PATCH i-g-t v3 21/31] tools/intel_gpu_time: " Sebastian Brzezinka
2026-07-15 12:15 ` [PATCH i-g-t v3 22/31] tools/intel_audio_dump: " Sebastian Brzezinka
2026-07-15 12:15 ` [PATCH i-g-t v3 23/31] tools/intel_forcewaked: " Sebastian Brzezinka
2026-07-15 12:15 ` [PATCH i-g-t v3 24/31] tools/intel_guc_logger: " Sebastian Brzezinka
2026-07-15 12:15 ` [PATCH i-g-t v3 25/31] tools/intel_infoframes: " Sebastian Brzezinka
2026-07-15 12:15 ` [PATCH i-g-t v3 26/31] tools/intel_panel_fitter: " Sebastian Brzezinka
2026-07-15 12:15 ` [PATCH i-g-t v3 27/31] tools/intel_watermark: " Sebastian Brzezinka
2026-07-15 12:15 ` [PATCH i-g-t v3 28/31] tools/intel_display_poller: " Sebastian Brzezinka
2026-07-15 12:15 ` [PATCH i-g-t v3 29/31] tools/intel_gvtg_test: " Sebastian Brzezinka
2026-07-15 12:15 ` [PATCH i-g-t v3 30/31] lib/igt_core: move igt_load_igtrc to igt_device_scan Sebastian Brzezinka
2026-07-16 14:08   ` Kamil Konieczny
2026-07-15 12:15 ` [PATCH i-g-t v3 31/31] tools/lsgpu: link with minimal sub-libraries Sebastian Brzezinka
2026-07-15 16:00 ` ✓ Xe.CI.BAT: success for tools: remove unnecessary shared library dependencies from standalone tools Patchwork
2026-07-15 16:56 ` ✓ i915.CI.BAT: " Patchwork
2026-07-15 19:27 ` ✓ Xe.CI.FULL: " Patchwork
2026-07-15 22:53 ` ✗ i915.CI.Full: failure " 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=DJZX8GDG33PW.237GU9G5Q8407@intel.com \
    --to=sebastian.brzezinka@intel.com \
    --cc=ashutosh.dixit@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=kamil.konieczny@linux.intel.com \
    --cc=krzysztof.karas@intel.com \
    --cc=krzysztof.niemiec@intel.com \
    --cc=pawel.sikora@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