From patchwork Thu May 10 10:19:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tvrtko Ursulin X-Patchwork-Id: 10391599 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 BC17D60540 for ; Thu, 10 May 2018 10:20:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ADA27289CA for ; Thu, 10 May 2018 10:20:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A1CD0289D2; Thu, 10 May 2018 10:20:27 +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 D4DEC289CA for ; Thu, 10 May 2018 10:20:25 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2CC716EF05; Thu, 10 May 2018 10:20:12 +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 1BC896EEFA for ; Thu, 10 May 2018 10:20:01 +0000 (UTC) Received: by mail-wr0-x242.google.com with SMTP id o4-v6so1461970wrm.0 for ; Thu, 10 May 2018 03:20:01 -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=0r606J3LxCqA1uL5OlQf8g8B+5mylqZn9CAtDmJpwQo=; b=VXQOckLwLvz84dsbpmSzNq2VuvhbXRe86Ctc6/XmDkwSMZqZ0iqcTrV7br+X0vu3M0 5QpAbDthA3kDgh9d4cJyJz27fYgi444gZFITkaFn2lLDwTjz6PEiHk0Y2YCQJmdBodSo S4+gGBAPo/dEHFn6g0HsAKqwKBueC9AjfqjennF4EdLDuG95wFak25RKg/d+kbAjv0Tg 7GaP6JsuPR+7apqrW46C8Iki5m2E+dMZhEuU9oAGoHHS089Sq3MscwHn6tZDgULqt9p5 861gQfYzhTsat3oT3tNpEXhqZ+EbGWILPf3SNUw5OHU3BRxlU5zx8ssbJbN8GOnHr58e ZTRw== 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=0r606J3LxCqA1uL5OlQf8g8B+5mylqZn9CAtDmJpwQo=; b=HtT6CshZoJaOiZPi+s86bNwriLIiv40gYsRoI1lhXn00QvIe0llMHUkenDtn17bdHL VxsCX0eL1zx1ZvSpdMMt61O3SUDNceTDdt716tRLszEvUXHJMqMeBzJ0gbZmWzalVBb6 aljz0jF6fA3WYT61VD0EJQHynxP9wvm6/BXlhtAMny4fZhBJK53yErndvt3GLO2Ij9eh Fz1UDGajcpO6zIc52iSH2ZTj7R9Vx/idrHss91LbWcZFQ1/vFsJh8A73Hnyhy+G3bC8X W6pSx0gycIFaSQxcKnYsDevOtoGTsg4HuZcaryWOzMT5RUdcrpF9jKcVo25V/r1cAFqn vCnA== X-Gm-Message-State: ALKqPwfUen8i8uu5Pf+0yl2qJ2teBYNxZDUpoYE+Y/RfypLaVc8WyhtZ 4xgFgW1z3DNC2woCdgG+vySXkg== X-Google-Smtp-Source: AB8JxZrO9AbV8T6T6Vh/oAzcTYAeDdvmXgMh6zw8Y2rd9sxfmYMrv4CHGPhU/MDqtxHK+q8b8Z3z2A== X-Received: by 2002:adf:8b08:: with SMTP id n8-v6mr743279wra.189.1525947599816; Thu, 10 May 2018 03:19:59 -0700 (PDT) Received: from localhost.localdomain ([95.146.151.144]) by smtp.gmail.com with ESMTPSA id o53-v6sm1178774wrc.96.2018.05.10.03.19.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 May 2018 03:19:59 -0700 (PDT) From: Tvrtko Ursulin X-Google-Original-From: Tvrtko Ursulin To: igt-dev@lists.freedesktop.org Date: Thu, 10 May 2018 11:19:23 +0100 Message-Id: <20180510101924.20814-8-tvrtko.ursulin@linux.intel.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180510101924.20814-1-tvrtko.ursulin@linux.intel.com> References: <20180510101924.20814-1-tvrtko.ursulin@linux.intel.com> Subject: [Intel-gfx] [PATCH i-g-t 8/9] 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 c795406ae785..92431974296a 100755 --- a/scripts/trace.pl +++ b/scripts/trace.pl @@ -426,7 +426,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};