From: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
To: Lionel Landwerlin <lionel.g.landwerlin@intel.com>,
Tvrtko Ursulin <tursulin@ursulin.net>,
igt-dev@lists.freedesktop.org
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Subject: Re: [igt-dev] [PATCH i-g-t 05/11] trace.pl: Use context hw_id as context id
Date: Tue, 6 Feb 2018 18:37:52 +0000 [thread overview]
Message-ID: <e6a0f77b-d1d6-cdc5-0777-7111ea7e4543@linux.intel.com> (raw)
In-Reply-To: <9744931e-319b-9ad1-7346-c6040bb8c676@intel.com>
On 30/01/2018 12:29, Lionel Landwerlin wrote:
> Chris is looking at updating the hw_id per submission or something...
> Just letting you know, that might impact your new way of tracking things :(
Hm yeah, maybe even rings a bell that hw_id can be re-used as contexts
are destroyed an created so would confuse the script without any
changes. Will double-check. Luckily this patch is completely independent
from the rest so can simply be dropped in that case.
Regards,
Tvrtko
> On 30/01/18 10:11, Tvrtko Ursulin wrote:
>> From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
>>
>> Now that it is available from the kernel, use the generally much smaller
>> and so more readable, hw_id as the request context id.
>>
>> This also means context id squashing command line switch has to be
>> removed.
>>
>> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
>> Cc: John Harrison <John.C.Harrison@intel.com>
>> ---
>> scripts/trace.pl | 22 ++--------------------
>> 1 file changed, 2 insertions(+), 20 deletions(-)
>>
>> diff --git a/scripts/trace.pl b/scripts/trace.pl
>> index be256ad8b94e..958c83c82b8b 100755
>> --- a/scripts/trace.pl
>> +++ b/scripts/trace.pl
>> @@ -38,7 +38,6 @@ my %skip_box;
>> my $html = 0;
>> my $trace = 0;
>> my $avg_delay_stats = 0;
>> -my $squash_context_id = 0;
>> my $gpu_timeline = 0;
>> my @args;
>> @@ -107,8 +106,6 @@ Usage:
>> --html Generate HTML output.
>> --trace cmd Trace the following command.
>> --avg-delay-stats Print average delay stats.
>> - --squash-ctx-id Squash context id by substracting
>> engine
>> - id from ctx id.
>> --gpu-timeline Draw overall GPU busy timeline.
>> ENDHELP
>> @@ -142,18 +139,6 @@ sub arg_avg_delay_stats
>> return @_;
>> }
>> -sub arg_squash_ctx_id
>> -{
>> - return unless scalar(@_);
>> -
>> - if ($_[0] eq '--squash-ctx-id') {
>> - shift @_;
>> - $squash_context_id = 1;
>> - }
>> -
>> - return @_;
>> -}
>> -
>> sub arg_gpu_timeline
>> {
>> return unless scalar(@_);
>> @@ -286,7 +271,6 @@ while (@args) {
>> @args = arg_help(@args);
>> @args = arg_html(@args);
>> @args = arg_avg_delay_stats(@args);
>> - @args = arg_squash_ctx_id(@args);
>> @args = arg_gpu_timeline(@args);
>> @args = arg_trace(@args);
>> @args = arg_max_items(@args);
>> @@ -320,8 +304,6 @@ sub sanitize_ctx
>> {
>> my ($ctx, $ring) = @_;
>> - $ctx = $ctx - $ring if $squash_context_id;
>> -
>> if (exists $ctxdb{$ctx}) {
>> return $ctx . '.' . $ctxdb{$ctx};
>> } else {
>> @@ -386,8 +368,8 @@ while (<>) {
>> $ring = $tp{'ring'};
>> $seqno = $tp{'seqno'};
>> - if (exists $tp{'ctx'}) {
>> - $ctx = $tp{'ctx'};
>> + if (exists $tp{'hw_id'}) {
>> + $ctx = $tp{'hw_id'};
>> $orig_ctx = $ctx;
>> $ctx = sanitize_ctx($ctx, $ring);
>> $key = db_key($ring, $ctx, $seqno);
>
>
> _______________________________________________
> igt-dev mailing list
> igt-dev@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/igt-dev
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next prev parent reply other threads:[~2018-02-06 18:37 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-30 10:11 [igt-dev] [PATCH i-g-t 00/11] trace.pl fixes Tvrtko Ursulin
2018-01-30 10:11 ` [igt-dev] [PATCH i-g-t 01/11] scripts/trace.pl: More hash key optimisations Tvrtko Ursulin
2018-01-30 10:11 ` [igt-dev] [PATCH i-g-t 02/11] scripts/trace.pl: Sort order Tvrtko Ursulin
2018-01-30 10:11 ` [igt-dev] [PATCH i-g-t 03/11] scripts/trace.pl: Calculate stats only after all munging Tvrtko Ursulin
2018-01-30 10:11 ` [igt-dev] [PATCH i-g-t 04/11] scripts/trace.pl: Simplify 'end' & 'notify' generation Tvrtko Ursulin
2018-01-30 10:11 ` [igt-dev] [PATCH i-g-t 05/11] trace.pl: Use context hw_id as context id Tvrtko Ursulin
2018-01-30 12:29 ` Lionel Landwerlin
2018-02-06 18:37 ` Tvrtko Ursulin [this message]
2018-01-30 10:11 ` [igt-dev] [PATCH i-g-t 06/11] trace.pl: Move sortQueue near its user Tvrtko Ursulin
2018-01-30 10:11 ` [igt-dev] [PATCH i-g-t 06/11] trace.pl: Move sortQueue near to the user Tvrtko Ursulin
2018-01-30 10:34 ` Tvrtko Ursulin
2018-01-30 10:11 ` [igt-dev] [PATCH i-g-t 07/11] trace.pl: Move min/max timestamp lookup to last loop Tvrtko Ursulin
2018-01-30 10:11 ` [igt-dev] [PATCH i-g-t 08/11] trace.pl: Fix engine busy accounting in split mode Tvrtko Ursulin
2018-01-30 10:11 ` [igt-dev] [PATCH i-g-t 08/11] trace.pl: Split " Tvrtko Ursulin
2018-01-30 10:34 ` Tvrtko Ursulin
2018-01-30 10:11 ` [igt-dev] [PATCH i-g-t 09/11] trace.pl: Add support for colouring context execution Tvrtko Ursulin
2018-01-30 10:11 ` [igt-dev] [PATCH i-g-t 10/11] trace.pl: Fix incomplete request handling Tvrtko Ursulin
2018-01-30 10:11 ` [igt-dev] [PATCH i-g-t 11/11] trace.pl: Fix request split mode Tvrtko Ursulin
2018-01-30 15:05 ` [igt-dev] ✓ Fi.CI.BAT: success for trace.pl fixes 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=e6a0f77b-d1d6-cdc5-0777-7111ea7e4543@linux.intel.com \
--to=tvrtko.ursulin@linux.intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=lionel.g.landwerlin@intel.com \
--cc=tursulin@ursulin.net \
--cc=tvrtko.ursulin@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.