[Intel-gfx] [PATCH i-g-t] scripts/trace.pl: Fix context id recycling

John Harrison John.C.Harrison at Intel.com
Wed Dec 20 23:26:28 UTC 2017


Looks good. Or at least, it looks to be the same as it was originally.

Reviewed-by:  John Harrison <John.C.Harrison at Intel.com>


On 12/20/2017 1:38 AM, Tvrtko Ursulin wrote:
> From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
>
> Last refactoring introduced a copy and paste error, fix it.
>
> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
> Reported-by: John Harrison <John.C.Harrison at intel.com>
> Cc: John Harrison <John.C.Harrison at intel.com>
> ---
>   scripts/trace.pl | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/trace.pl b/scripts/trace.pl
> index 98e4a9843a43..ade0a9154bd7 100755
> --- a/scripts/trace.pl
> +++ b/scripts/trace.pl
> @@ -416,7 +416,7 @@ while (<>) {
>   
>   		if (exists $queue{$key}) {
>   			$ctxdb{$orig_ctx}++;
> -			$tp{'ctx'} = sanitize_ctx($tp{'ctx'}, $tp{'ring'});
> +			$tp{'ctx'} = sanitize_ctx($orig_ctx, $tp{'ring'});
>   			$key = db_key($tp{'ring'}, $tp{'ctx'}, $tp{'seqno'});
>   		}
>   



More information about the Intel-gfx mailing list