summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>2017-12-20 09:38:46 +0000
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>2017-12-21 08:24:43 +0000
commit4f12240f6991a12b3c58696e90ffb744f6f0b7bf (patch)
treee8163e72f70dd8380c4d9cebfbc6e11d02dfb399 /scripts
parent382865bf1204241cdb609fbf8953a1de781368f7 (diff)
scripts/trace.pl: Fix context id recycling
Last refactoring introduced a copy and paste error, fix it. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Reported-by: John Harrison <John.C.Harrison@intel.com> Cc: John Harrison <John.C.Harrison@intel.com> Reviewed-by: John Harrison <John.C.Harrison@Intel.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/trace.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/trace.pl b/scripts/trace.pl
index 98e4a984..ade0a915 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'});
}