From: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
To: Ashutosh Dixit <ashutosh.dixit@intel.com>,
igt-dev@lists.freedesktop.org, kamil.konieczny@linux.intel.com
Subject: [PATCH] lib/core: Let ftrace know when the test started
Date: Tue, 17 Dec 2024 10:39:10 -0800 [thread overview]
Message-ID: <20241217183910.1855657-1-umesh.nerlige.ramappa@intel.com> (raw)
It's useful to know the start and end of the test in ftrace to be able
to debug some issues. Not sure where to add igt_trace for end, so
posting this patch to get some comments.
Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
---
lib/igt_core.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/igt_core.c b/lib/igt_core.c
index 407f7b551..6916d6ea4 100644
--- a/lib/igt_core.c
+++ b/lib/igt_core.c
@@ -574,6 +574,9 @@ static void _subtest_starting_message(enum _subtest_type subtest_type,
igt_info("Starting %s: %s\n",
subtest_type == _SUBTEST_TYPE_NORMAL ? "subtest" : "dynamic subtest",
name);
+ igt_trace("Starting %s: %s\n",
+ subtest_type == _SUBTEST_TYPE_NORMAL ? "subtest" : "dynamic subtest",
+ name);
fflush(stdout);
if (stderr_needs_sentinel)
fprintf(stderr, "Starting %s: %s\n",
--
2.38.1
next reply other threads:[~2024-12-17 18:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-17 18:39 Umesh Nerlige Ramappa [this message]
2024-12-17 23:19 ` [PATCH] lib/core: Let ftrace know when the test started Dixit, Ashutosh
2024-12-18 19:13 ` Kamil Konieczny
2024-12-18 19:30 ` Dixit, Ashutosh
2024-12-18 19:31 ` Dixit, Ashutosh
2024-12-20 18:31 ` Kamil Konieczny
2024-12-21 0:56 ` Umesh Nerlige Ramappa
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=20241217183910.1855657-1-umesh.nerlige.ramappa@intel.com \
--to=umesh.nerlige.ramappa@intel.com \
--cc=ashutosh.dixit@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=kamil.konieczny@linux.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