From patchwork Thu Jul 12 10:59:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tvrtko Ursulin X-Patchwork-Id: 10521463 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 0F802603D7 for ; Thu, 12 Jul 2018 11:00:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EF0472925C for ; Thu, 12 Jul 2018 11:00:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E356029271; Thu, 12 Jul 2018 11:00:16 +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 AF03F2925C for ; Thu, 12 Jul 2018 11:00:16 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7C3216EF46; Thu, 12 Jul 2018 11:00:15 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by gabe.freedesktop.org (Postfix) with ESMTPS id 637716EF71 for ; Thu, 12 Jul 2018 11:00:12 +0000 (UTC) Received: by mail-wr1-x442.google.com with SMTP id r16-v6so21248906wrt.11 for ; Thu, 12 Jul 2018 04:00:12 -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=/tRYRfYld6R/GsdRDWF6/gYhZMkOP9s+aYHtzTM4mJo=; b=mAdBhX/mcc10PELan9LMK8arsbOY4wISN14Wi5YJ0Rw4MJlXNRAD17wqil4NNrOCl0 BZRJfYR79fv6sr9eDNrFRIrFNg0bDgFsfw8A7hKNeB21mvHM0aX03RYKwN2bE+yqxoia HjdmbTSJOqgwStXDiFHeh6/X9GDcYKLXva5r9P7ELgaUJ1QNHdG2dGg532ddLvZIdoE5 /oAGcCKnotsEQSjPZK2GIQtBFZnkaHPAidR3rOEg/SBVnRpYrDrHmNjtXHwWGwWDaZaV s/d0WQXbTAtb8Wf8sedQWK7tBf222ZCWw6A8B8RI4Nsyxczj7/Y0mwu0R9g4DGz2rtTw 1ntA== X-Gm-Message-State: AOUpUlEYegZ8gKZ5zgdtBqwFdeUwWR9ZV6Zc5hWQLEbPQ6KZCdSw5bfj WrAftxTVAtzj9tKy40tDTqWvCw== X-Google-Smtp-Source: AAOMgpdsArITFpt6RFJqXwvO3ZOs9cHXlPIXIyejCuTOGsbxaM8QnFhJ45XjktS3zS8TVPbtE4WS4A== X-Received: by 2002:adf:e190:: with SMTP id k16-v6mr1427413wri.36.1531393211036; Thu, 12 Jul 2018 04:00:11 -0700 (PDT) Received: from localhost.localdomain ([95.146.151.144]) by smtp.gmail.com with ESMTPSA id z5-v6sm23494585wrv.2.2018.07.12.04.00.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Jul 2018 04:00:10 -0700 (PDT) From: Tvrtko Ursulin X-Google-Original-From: Tvrtko Ursulin To: igt-dev@lists.freedesktop.org Date: Thu, 12 Jul 2018 11:59:57 +0100 Message-Id: <20180712105958.12953-9-tvrtko.ursulin@linux.intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180712105958.12953-1-tvrtko.ursulin@linux.intel.com> References: <20180712105958.12953-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 33045f3264f2..43c68001d768 100755 --- a/scripts/trace.pl +++ b/scripts/trace.pl @@ -438,7 +438,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};