From patchwork Tue May 8 17:31:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tvrtko Ursulin X-Patchwork-Id: 10386691 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 65BFB6037F for ; Tue, 8 May 2018 17:31:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 544EF28F83 for ; Tue, 8 May 2018 17:31:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4930328F98; Tue, 8 May 2018 17:31:54 +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.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_DKIM_INVALID 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 DC84728F83 for ; Tue, 8 May 2018 17:31:53 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 52AEE6EB20; Tue, 8 May 2018 17:31:53 +0000 (UTC) X-Original-To: Intel-gfx@lists.freedesktop.org Delivered-To: Intel-gfx@lists.freedesktop.org Received: from mail-wr0-x244.google.com (mail-wr0-x244.google.com [IPv6:2a00:1450:400c:c0c::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3DEEA6EB0A for ; Tue, 8 May 2018 17:31:46 +0000 (UTC) Received: by mail-wr0-x244.google.com with SMTP id 94-v6so31830456wrf.5 for ; Tue, 08 May 2018 10:31:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ursulin-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=mXccI2UW5uwGCnROwXiRUEXb5kCBS8OkSi3kNS0YGoQ=; b=D3/vUgbKke1PHVGC/eDUFH/ghCq13NVlb+XRXTW5vQ751cNMS3id4ZEc/Wvv+vrPGB NpuQQ5lGMWzYELSKjftVc1n/u+HE1K23/76giO4nzqhpUr1UqveU2x+G1xD1Won3kklZ ygOYYPIFac2BAcUQASbfMrQpoYFscGmgMZeDXFhxfJGv5CITppxd9TEiXkEl/feQzV0q oJRE7GAvNCa5AHLPaovJDMsB0ubR6A4IaUDnEHim1jPgpMhLoJnbQbELrxsSDOomxArM p86wR487VmGGqP4iYuPSsznkDI6FpKZowYX+6EOtzqsOExOdSvIZwgTZYB/srgj+/F/y nv5Q== 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=mXccI2UW5uwGCnROwXiRUEXb5kCBS8OkSi3kNS0YGoQ=; b=eIugCjeQRceUaUJ0DD1xzVzV81GGNNlm+ZHLADBkZ6I43/EEwIPzg3fuGu3seRihpv 7YNrZtS45DLh9NOJWj4OywP7p+BMndc3weY3q/J+lRJrVkar28VrpWrWiKGa8/GSfK4j jjIOTNDbNV55fs9c1d2ORBHsZSn2ZrnFqP26smNh5wmzpuGnSAipVWYkA7y127bOj9hR W+NUJsjQyHGt9MiEcenvcI3cFIUnL8tf/b6Bp6X5Mhc3q4So3k+GdNHxAwzrFqJwo+5T atAOyUaeYpn0MpJ2ldq5g5ukjSUfpVULqKFwjZxQtMX3P0HJi8HQ+uE3K8l6ToMJ9HBg QVug== X-Gm-Message-State: ALQs6tAgalwwv8R6aekCGxcMnKjOQlTMq7EFq6/hmGs8TmoR/nlFWl2T pgS6kklHssKDK+iP23D9Q0nc79MC X-Google-Smtp-Source: AB8JxZqJN5KzvM/VZdUi4pNNrXms9Q/oyanLY7g7PVQSjYOZBHevisMbp03BbgsHn3kqaLzcOQ5wQw== X-Received: by 2002:adf:80cd:: with SMTP id 71-v6mr17803663wrl.238.1525800705015; Tue, 08 May 2018 10:31:45 -0700 (PDT) Received: from localhost.localdomain ([95.146.151.144]) by smtp.gmail.com with ESMTPSA id n4sm15373101wmg.29.2018.05.08.10.31.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 May 2018 10:31:44 -0700 (PDT) From: Tvrtko Ursulin X-Google-Original-From: Tvrtko Ursulin To: igt-dev@lists.freedesktop.org Date: Tue, 8 May 2018 18:31:14 +0100 Message-Id: <20180508173115.24550-6-tvrtko.ursulin@linux.intel.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180508173115.24550-1-tvrtko.ursulin@linux.intel.com> References: <20180508173115.24550-1-tvrtko.ursulin@linux.intel.com> Subject: [Intel-gfx] [PATCH i-g-t 6/7] 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 0ec33cd37e4a..935f57117a37 100755 --- a/scripts/trace.pl +++ b/scripts/trace.pl @@ -425,7 +425,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};