From: "Hajda, Andrzej" <andrzej.hajda@intel.com>
To: <igt-dev@lists.freedesktop.org>
Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com>,
Ryszard Knop <ryszard.knop@intel.com>,
Stuart Summers <stuart.summers@intel.com>,
"Jari Tahvanainen" <jari.tahvanainen@intel.com>,
Mateusz Grabski <mateusz.grabski@intel.com>
Subject: Re: [PATCH v2 0/3] lib/igt_core: add timestamps to error logs
Date: Mon, 11 May 2026 11:08:54 +0200 [thread overview]
Message-ID: <13a1a79c-16ce-4974-ad6b-cb03b5c5550a@intel.com> (raw)
In-Reply-To: <20260507-add_timestamps_to_logs-v2-0-9591e90e0a6a@intel.com>
W dniu 7.05.2026 o 14:34, Andrzej Hajda pisze:
> This patchset add timestamps to error logs in IGT.
> One of side effects of adding timestamps is detection by CI of previously
> hidden errors in errno handling.
> According to manual errno should be read immediately AFTER library function
> returns an error, otherwise errno can be overwriten by subsequent calls.
> First patches fixes these errors.
>
> Signed-off-by: Andrzej Hajda <andrzej.hajda@intel.com>
Apparently the errno is handled non-safely in so many places, that
fixing this will take some time. I will try to detach timestamps from
errno fixes in next iteration.
Regards
Andrzej
> ---
> Changes in v2:
> - added fixes to errno handling
> - adjusted format string to be the same as in dmesg
> - Link to v1: https://patch.msgid.link/20260505-add_timestamps_to_logs-v1-1-2d95f499fdfb@intel.com
>
> ---
> Andrzej Hajda (3):
> tests/core_auth: do not call any function before errno check
> lib/igt_sysfs: protect errno from being overwritten in igt_debug_on
> lib/igt_core: add timestamps to error logs
>
> lib/igt_core.c | 13 +++++++++----
> lib/igt_sysfs.c | 17 +++++++++++------
> tests/core_auth.c | 2 +-
> 3 files changed, 21 insertions(+), 11 deletions(-)
> ---
> base-commit: 3e5747e536f148bf232049e49a00e2b683f91a83
> change-id: 20260430-add_timestamps_to_logs-d84fdfd7ef4c
>
> Best regards,
> --
> Andrzej Hajda <andrzej.hajda@intel.com>
>
prev parent reply other threads:[~2026-05-11 9:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-07 12:34 [PATCH v2 0/3] lib/igt_core: add timestamps to error logs Andrzej Hajda
2026-05-07 12:34 ` [PATCH v2 1/3] tests/core_auth: do not call any function before errno check Andrzej Hajda
2026-05-07 12:34 ` [PATCH v2 2/3] lib/igt_sysfs: protect errno from being overwritten in igt_debug_on Andrzej Hajda
2026-05-07 12:34 ` [PATCH v2 3/3] lib/igt_core: add timestamps to error logs Andrzej Hajda
2026-05-07 20:58 ` ✓ i915.CI.BAT: success for " Patchwork
2026-05-07 21:30 ` ✗ Xe.CI.BAT: failure " Patchwork
2026-05-08 9:03 ` ✗ Xe.CI.FULL: " Patchwork
2026-05-08 13:03 ` ✗ i915.CI.Full: " Patchwork
2026-05-11 9:08 ` Hajda, Andrzej [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=13a1a79c-16ce-4974-ad6b-cb03b5c5550a@intel.com \
--to=andrzej.hajda@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=jari.tahvanainen@intel.com \
--cc=kamil.konieczny@linux.intel.com \
--cc=mateusz.grabski@intel.com \
--cc=ryszard.knop@intel.com \
--cc=stuart.summers@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