From patchwork Wed Jul 18 09:45:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tvrtko Ursulin X-Patchwork-Id: 10531959 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 693FA602CA for ; Wed, 18 Jul 2018 09:45:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 55B4228FBC for ; Wed, 18 Jul 2018 09:45:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4A32F28FCD; Wed, 18 Jul 2018 09:45:35 +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 141B528FBC for ; Wed, 18 Jul 2018 09:45:35 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C97406E992; Wed, 18 Jul 2018 09:45:29 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by gabe.freedesktop.org (Postfix) with ESMTPS id A111D6E98C for ; Wed, 18 Jul 2018 09:45:28 +0000 (UTC) Received: by mail-wr1-x444.google.com with SMTP id c13-v6so3996895wrt.1 for ; Wed, 18 Jul 2018 02:45:28 -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=IG4llzvH3wbLzNJR2BlxgLe+y9U0+YzbZiXEpM3hL30=; b=Ovl0ajZsGVPolwmw5Nj9bC+t7H/KVqXdB22kSdWV6qoyKsCSV6TMD6jebmPdTVB+F6 Bwd690TlBUDzp8Gr2b9jgoD/REXngzjtg6CG2iP2bXrmQg5W/toVPFEClZxVOo8p3S1H DNZNJWy0a/S7JE2Qtb9HyoV+ZgC+ka34RHQqbNmHt2DwMdeQxHVuFb5Yevjfkd0rcYID SIUQ+J7Kfw6FIW9VC1jk/9askCe3Qiwjooz7YIzhOA4IZ8MfmlTZDfb1zWErC6kSF61P h3CDk0E61cFoRoyoB/Gz9FVh3L6Yk4L61LfY4jfN1RnYatnfqpWXNbapS2ZG0JWMGUhx Y08A== X-Gm-Message-State: AOUpUlGYaurSaEr7Gm3iDNvR2LXbswdX0QkmomDlcjhyRMR892fd660H hAdUXrlobmMsvMEP4FIUzPMIulmE X-Google-Smtp-Source: AAOMgpdY11l6JwtHGFTCFQGL+JQuyqFq3qjYSbn1vxuOLduxP9IdgyMOZ0Fbx7z6AxC/SG6ZpQ0pQw== X-Received: by 2002:adf:9c91:: with SMTP id d17-v6mr3777923wre.11.1531907127434; Wed, 18 Jul 2018 02:45:27 -0700 (PDT) Received: from localhost.localdomain ([95.146.151.144]) by smtp.gmail.com with ESMTPSA id q11-v6sm7919530wrp.58.2018.07.18.02.45.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Jul 2018 02:45:26 -0700 (PDT) From: Tvrtko Ursulin X-Google-Original-From: Tvrtko Ursulin To: igt-dev@lists.freedesktop.org Date: Wed, 18 Jul 2018 10:45:13 +0100 Message-Id: <20180718094514.5903-8-tvrtko.ursulin@linux.intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180718094514.5903-1-tvrtko.ursulin@linux.intel.com> References: <20180718094514.5903-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 Reviewed-by: John Harrison --- scripts/trace.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/trace.pl b/scripts/trace.pl index 60d42865acbd..41bedeefb776 100755 --- a/scripts/trace.pl +++ b/scripts/trace.pl @@ -408,7 +408,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};