public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>,
	Matthew Auld <matthew.william.auld@gmail.com>
Cc: Intel Graphics Development <intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH i-g-t 02/11] tests/perf: add per context filtering test for gen8+
Date: Tue, 22 Aug 2017 14:48:12 +0100	[thread overview]
Message-ID: <1f35316c-3526-1a9d-317e-dddcd173e8db@intel.com> (raw)
In-Reply-To: <150340851242.17886.7943040825820611461@mail.alporthouse.com>

On 22/08/17 14:28, Chris Wilson wrote:
> Quoting Lionel Landwerlin (2017-08-22 14:11:07)
>> On 22/08/17 12:59, Chris Wilson wrote:
>>> Quoting Lionel Landwerlin (2017-08-22 12:45:47)
>>>> On 08/08/17 15:21, Matthew Auld wrote:
>>>>> On 4 August 2017 at 12:20, Lionel Landwerlin
>>>>> <lionel.g.landwerlin@intel.com> wrote:
>>>>>>     static void
>>>>>> @@ -1336,6 +1504,66 @@ print_reports(uint32_t *oa_report0, uint32_t *oa_report1, int fmt)
>>>>>>     }
>>>>>>
>>>>>>     static void
>>>>>> +print_report(uint32_t *report, int fmt)
>>>>>> +{
>>>>> I get an unused warning for this...
>>>> Useful for really precise debugging. Putting under ifdef
>>> Does it interfere that much with normal testing, or you could dump extra
>>> details on unexpected events? If it is useful at some point, you will be
>>> wishing you had the details from CI. The beauty of igt_debug() (at least
>>> when --debug is not used by defaul!) is that it does give us the
>>> portmortem output of the last N lines (where N is ~256?) without
>>> flooding ourselves with irrelevant messages.
>>> -Chris
>> The problem is that we get loooooads of reports.
>> Most of the time you want to look at the deltas between them (which is
>> what most igt_debug() are about), only occasionally the actual values
>> (which is what this function dumps).
> If you can't identify the right one to dump when you find the error, how
> much is the cost of recording all the traces for a subtest and dumping
> them compressed+encoded to the output? If we are only talking a few megs
> of raw data and hope it compresses down to a few 100k, that's not too
> unwieldy to include on stderr/whatever. All depends on how difficult it
> will be to reproduce the eventual bug. Just my crystal ball is saying
> that if you find print_report() useful, you will find it useful again in
> the future where you may not even have access to the system.
> -Chris
>

My debugging experience has been the following :

- I have no idea what's wrong, put traces in different places and hope 
to notice something fishy
- There are now too many traces and taking too long to figure anything 
from the logs

print_report is just a remaining utility function. I'm happy to drop it 
from the patch if that's too contentious.

-
Lionel
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2017-08-22 13:48 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-04 11:20 [PATCH i-g-t 00/11] Improve robustness of the i915 perf tests Lionel Landwerlin
2017-08-04 11:20 ` [PATCH i-g-t 01/11] tests/perf: make stream_fd a global variable Lionel Landwerlin
2017-08-04 11:39   ` Chris Wilson
2017-08-22 13:44     ` Lionel Landwerlin
2017-08-04 11:20 ` [PATCH i-g-t 02/11] tests/perf: add per context filtering test for gen8+ Lionel Landwerlin
2017-08-08 14:21   ` Matthew Auld
2017-08-22 11:45     ` Lionel Landwerlin
2017-08-22 11:59       ` Chris Wilson
2017-08-22 13:11         ` Lionel Landwerlin
2017-08-22 13:28           ` Chris Wilson
2017-08-22 13:48             ` Lionel Landwerlin [this message]
2017-08-22 13:59               ` Chris Wilson
2017-08-04 11:20 ` [PATCH i-g-t 03/11] tests/perf: update max buffer size for reading reports Lionel Landwerlin
2017-08-04 11:41   ` Chris Wilson
2017-08-04 13:30     ` Lionel Landwerlin
2017-08-04 11:20 ` [PATCH i-g-t 04/11] tests/perf: rc6: try to guess when rc6 is disabled Lionel Landwerlin
2017-08-04 11:20 ` [PATCH i-g-t 05/11] tests/perf: rework oa-exponent test Lionel Landwerlin
2017-08-10 13:15   ` Matthew Auld
2017-08-22 14:56     ` Lionel Landwerlin
2017-08-22 16:13       ` Matthew Auld
2017-08-23  9:31         ` Lionel Landwerlin
2017-08-04 11:20 ` [PATCH i-g-t 06/11] tests/perf: make enable-disable more reliable Lionel Landwerlin
2017-08-04 11:44   ` Chris Wilson
2017-08-04 12:56     ` Lionel Landwerlin
2017-08-04 11:20 ` [PATCH i-g-t 07/11] tests/perf: make buffer-fill " Lionel Landwerlin
2017-08-10 16:10   ` Matthew Auld
2017-08-04 11:20 ` [PATCH i-g-t 08/11] tests/perf: load gt_boost_freq_mhz as max gt frequency Lionel Landwerlin
2017-08-10 13:21   ` Szwichtenberg, Radoslaw
2017-08-04 11:20 ` [PATCH i-g-t 09/11] tests/perf: remove unused frequency functions Lionel Landwerlin
2017-08-04 11:46   ` Chris Wilson
2017-08-04 11:20 ` [PATCH i-g-t 10/11] tests/perf: add Kabylake support Lionel Landwerlin
2017-08-10 16:24   ` Matthew Auld
2017-08-04 11:20 ` [PATCH i-g-t 11/11] tests/perf: add Geminilake support Lionel Landwerlin
2017-08-10 16:26   ` Matthew Auld
2017-08-04 11:59 ` [PATCH i-g-t 00/11] Improve robustness of the i915 perf tests Petri Latvala

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=1f35316c-3526-1a9d-317e-dddcd173e8db@intel.com \
    --to=lionel.g.landwerlin@intel.com \
    --cc=chris@chris-wilson.co.uk \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=matthew.william.auld@gmail.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