Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Poosa, Karthik" <karthik.poosa@intel.com>
To: "Gupta, Anshuman" <anshuman.gupta@intel.com>,
	"igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>
Cc: "Nilawar, Badal" <badal.nilawar@intel.com>,
	"Tauro, Riana" <riana.tauro@intel.com>
Subject: Re: [PATCH i-g-t] tests/intel/xe_pm_residency: Print execution and sleep times
Date: Thu, 19 Sep 2024 14:10:41 +0530	[thread overview]
Message-ID: <67460901-0844-4aae-aee6-346cd349fbc4@intel.com> (raw)
In-Reply-To: <CY5PR11MB6211881FE45A4CC469B203D295632@CY5PR11MB6211.namprd11.prod.outlook.com>

On 19-09-2024 12:56, Gupta, Anshuman wrote:
>
>> -----Original Message-----
>> From: Poosa, Karthik <karthik.poosa@intel.com>
>> Sent: Thursday, September 19, 2024 12:04 PM
>> To: igt-dev@lists.freedesktop.org
>> Cc: Gupta, Anshuman <anshuman.gupta@intel.com>; Nilawar, Badal
>> <badal.nilawar@intel.com>; Tauro, Riana <riana.tauro@intel.com>; Poosa,
>> Karthik <karthik.poosa@intel.com>
>> Subject: [PATCH i-g-t] tests/intel/xe_pm_residency: Print execution and sleep
>> times
>>
>> Print the workload execution and sleep times of the test to help diagnose
>> timeouts.
>> This will show how long the workload ran and how long the test slept.
>>
>> Signed-off-by: Karthik Poosa <karthik.poosa@intel.com>
>> ---
>>   tests/intel/xe_pm_residency.c | 4 +++-
>>   1 file changed, 3 insertions(+), 1 deletion(-)
>>
>> diff --git a/tests/intel/xe_pm_residency.c b/tests/intel/xe_pm_residency.c index
>> 0e687558b..3c3b33ab1 100644
>> --- a/tests/intel/xe_pm_residency.c
>> +++ b/tests/intel/xe_pm_residency.c
>> @@ -139,7 +139,7 @@ static void exec_load(int fd, struct
>> drm_xe_engine_class_instance *hwe, unsigned
>>   		elapsed = igt_nsec_elapsed(&tv);
>>   		igt_assert_eq(data->data, done[1]);
>>
>> -		igt_debug("Execution took %.3fms (submit %.1fus, wait
>> %.1fus)\n",
>> +		igt_info("Execution took %.3fms (submit %.1fus, wait
>> %.1fus)\n",
>>   			  1e-6 * elapsed,
>>   			  1e-3 * submit,
>>   			  1e-3 * (elapsed - submit));
>> @@ -150,6 +150,8 @@ static void exec_load(int fd, struct
>> drm_xe_engine_class_instance *hwe, unsigned
>>   		 * Execute the above workload for ~1% of the elapsed time and
>> sleep for
>>   		 * the rest of the time (~99%)
>>   		 */
>> +		igt_info("Sleeping for %ld ms\n", ((elapsed / 10)/1000));
> what is the need of this print ? 'elapsed' is already printed.
Added this to print exact sleep time. I think we can remove it.
>> +
>>   		usleep(elapsed / 10);
>>   	} while (!READ_ONCE(*done));
>>
>> --
>> 2.25.1

  reply	other threads:[~2024-09-19  8:41 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-19  6:33 [PATCH i-g-t] tests/intel/xe_pm_residency: Print execution and sleep times Karthik Poosa
2024-09-19  6:54 ` ✓ Fi.CI.BAT: success for " Patchwork
2024-09-19  7:07 ` [PATCH i-g-t] " Riana Tauro
2024-09-19  8:14   ` Poosa, Karthik
2024-09-19  8:35     ` Riana Tauro
2024-09-19  7:22 ` ✗ CI.xeBAT: failure for " Patchwork
2024-09-19  7:26 ` [PATCH i-g-t] " Gupta, Anshuman
2024-09-19  8:40   ` Poosa, Karthik [this message]
2024-09-19 16:58 ` ✗ CI.xeFULL: failure for " Patchwork
2024-09-20  0:01 ` ✓ CI.xeBAT: success for tests/intel/xe_pm_residency: Print execution and sleep times (rev2) Patchwork
2024-09-20  0:10 ` ✗ Fi.CI.BAT: failure " Patchwork
2024-09-20  2:41 ` ✗ CI.xeFULL: " Patchwork
2024-09-20  4:46 ` ✓ Fi.CI.IGT: success for tests/intel/xe_pm_residency: Print execution and sleep times 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=67460901-0844-4aae-aee6-346cd349fbc4@intel.com \
    --to=karthik.poosa@intel.com \
    --cc=anshuman.gupta@intel.com \
    --cc=badal.nilawar@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=riana.tauro@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