From patchwork Tue Jun 5 17:50:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tvrtko Ursulin X-Patchwork-Id: 10448923 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0E86360284 for ; Tue, 5 Jun 2018 17:51:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F0D7129ACD for ; Tue, 5 Jun 2018 17:51:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E5E7629B27; Tue, 5 Jun 2018 17:51:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AEF0629ACD for ; Tue, 5 Jun 2018 17:51:10 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E69CD6EEF7; Tue, 5 Jun 2018 17:51:09 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wr0-x242.google.com (mail-wr0-x242.google.com [IPv6:2a00:1450:400c:c0c::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0E25F6EEED for ; Tue, 5 Jun 2018 17:51:05 +0000 (UTC) Received: by mail-wr0-x242.google.com with SMTP id 94-v6so3357204wrf.5 for ; Tue, 05 Jun 2018 10:51:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=bgM2RLeB0Ag5iMWiksKiLL+1CHcZjvkMmR5us+UYl8o=; b=PmFiKdGGVL97ZF/73Va+zBkT+GLMTSOH/OPo8EQjlDQAZHpU16afegLi7ZlvWi1ZhT rKX1VmkHuI1KaWfWMSHTbssDQjgL1338gQ9SglrN87Qo92mglx2lmuTbtCjlR39UDrCC HozTVPc7S7OMok9hRKyJTgYTdSQu0sU2DZiOSQLLTMhTT813KUfxnUL/Aw0Nv2p+LG2C gvEtORFXbcHWippfZwR5IcJZvgQxVvdgj/qMHffxR1BaLDMCW8Y1TSX3lOBekws71pku X/CprPz7R0FrpBvx3VQxOJRaS7h0dhdmvJ7AdwKCyjyfxwW0cFKnkeldrWeMnxry2RK+ asjA== X-Gm-Message-State: APt69E2ihb2jA00QO9zr4p7CtBZIRDkeGzo2r7X0PeAuP5gzTWRrXinp /DfUIylDizgWUWjpGqyeoEpa2A== X-Google-Smtp-Source: ADUXVKIirEkcl/p7S1W/IYzKZY8i9CacQACZXZcFUn5oR90EH3gLmEdBqPcjXuwzvnCjzrCfUvIWjg== X-Received: by 2002:adf:b219:: with SMTP id u25-v6mr8012128wra.1.1528221063791; Tue, 05 Jun 2018 10:51:03 -0700 (PDT) Received: from localhost.localdomain ([95.146.151.144]) by smtp.gmail.com with ESMTPSA id u108-v6sm59739052wrc.40.2018.06.05.10.51.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Jun 2018 10:51:03 -0700 (PDT) From: Tvrtko Ursulin X-Google-Original-From: Tvrtko Ursulin To: igt-dev@lists.freedesktop.org Date: Tue, 5 Jun 2018 18:50:49 +0100 Message-Id: <20180605175050.29850-7-tvrtko.ursulin@linux.intel.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180605175050.29850-1-tvrtko.ursulin@linux.intel.com> References: <20180605175050.29850-1-tvrtko.ursulin@linux.intel.com> Subject: [Intel-gfx] [PATCH i-g-t 7/8] trace.pl: Basic preemption support X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: intel-gfx@lists.freedesktop.org MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP From: Tvrtko Ursulin Just forget about earlier request_in events. Signed-off-by: Tvrtko Ursulin --- scripts/trace.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/trace.pl b/scripts/trace.pl index 1d42f2749710..9bc0b5b291d4 100755 --- a/scripts/trace.pl +++ b/scripts/trace.pl @@ -428,7 +428,9 @@ while (<>) { } elsif ($tp_name eq 'i915:i915_request_in:') { my %req; - die if exists $db{$key}; + # preemption + delete $db{$key} if exists $db{$key}; + die unless exists $queue{$key}; die unless exists $submit{$key};