From patchwork Wed Aug 23 17:14:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Ekstrand X-Patchwork-Id: 9917943 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 A32A1603FA for ; Wed, 23 Aug 2017 17:15:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 89C7C287B1 for ; Wed, 23 Aug 2017 17:15:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7EB6D28845; Wed, 23 Aug 2017 17:15:02 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, 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 432E6287B1 for ; Wed, 23 Aug 2017 17:15:02 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E337C6E5E8; Wed, 23 Aug 2017 17:15:00 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-pg0-x243.google.com (mail-pg0-x243.google.com [IPv6:2607:f8b0:400e:c05::243]) by gabe.freedesktop.org (Postfix) with ESMTPS id E43B66E5E2 for ; Wed, 23 Aug 2017 17:14:59 +0000 (UTC) Received: by mail-pg0-x243.google.com with SMTP id w27so89898pge.4 for ; Wed, 23 Aug 2017 10:14:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jlekstrand-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=P+1SMheooLJwnjJJ/35bIhcj5LmyZqB3TCBNkcWVBEc=; b=gNj0REzzxOWj5i7aRwEuczsyBBFuDzDvMmx0dK/Ort2vQBtICWzgW5BEtqYjGLoP8S I0i+yYM+VIrFxbpn8vlYM9HFXejH6EwjQ9GbEJmShrd8mWKDx9a1/DIekS9/KKi//KsF 9d8vin1MadrEtalrxz0Pr/QOx0/xuLAjErok4XFjd580m/ZaFdb4ok35XteKAGIsIg6l +tbNia5vcAZz+XhJ1JVlGk/i9oS8F2UvPdc83XKeU0XjoLEwpErGro1CLRskvae9QoXM pFts0sNfH9M2fGTFLxCSHajUMqgkG8eXK/ViRp0MER8TfbknYySk1IO1mMV0YL2zoWgn OksA== 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=P+1SMheooLJwnjJJ/35bIhcj5LmyZqB3TCBNkcWVBEc=; b=aBSl0qhVlOKp5/UF6NGJ5TM1BCgQl9iw7EiOGj9upCXMB5zimjGsAiX7FajMB4gm00 jAE7hAz/fxUlWz3IkV9op1D3YsKldneXRDcrlONQgmpOjie4Egkq177TueFFMj49vPaz nmfE/XvY+9W+gb+wyIs095A89wpy0VEwMf9km4h41n6IhtPLX0YGzrCnp0jH+OKchXb/ oLuXZ8Dx6oWA3qcloSwcO0Zin78/yDq/7ilZTC2k3E/dvVQUzqtttUNgD4yYJITAG6ax K0ZadpGhqKyhYQjD0KgkPZ7UF4Q+akjS9hAUqOnUeyuwmx2Cj9aKRoVz9+IM2BwfnXLu 9NHw== X-Gm-Message-State: AHYfb5iuAqcXkCHc6ZAGCqKKAIhCXBr1YDQ5MVt7stMbMFl8QARitiFD s2FRK1sKNxjtZm8jYaon5A== X-Received: by 10.84.236.4 with SMTP id q4mr3725299plk.423.1503508499073; Wed, 23 Aug 2017 10:14:59 -0700 (PDT) Received: from omlet.jf.intel.com (fmdmzpr01-ext.fm.intel.com. [192.55.54.36]) by smtp.gmail.com with ESMTPSA id v12sm5297185pgf.6.2017.08.23.10.14.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 Aug 2017 10:14:57 -0700 (PDT) From: Jason Ekstrand X-Google-Original-From: Jason Ekstrand To: intel-gfx@lists.freedesktop.org Date: Wed, 23 Aug 2017 10:14:46 -0700 Message-Id: <1503508486-19432-4-git-send-email-jason.ekstrand@intel.com> X-Mailer: git-send-email 2.5.0.400.gff86faf In-Reply-To: <1503508486-19432-1-git-send-email-jason.ekstrand@intel.com> References: <1503508486-19432-1-git-send-email-jason.ekstrand@intel.com> Cc: Jason Ekstrand Subject: [Intel-gfx] [PATCH i-g-t 3/3] aubdump: Log some information about the execbuf calls X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP --- tools/aubdump.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) Reviewed-by: Scott D Phillips diff --git a/tools/aubdump.c b/tools/aubdump.c index 567de3d..cf4c6e8 100644 --- a/tools/aubdump.c +++ b/tools/aubdump.c @@ -405,6 +405,8 @@ dump_execbuffer2(int fd, struct drm_i915_gem_execbuffer2 *execbuffer2) struct bo *bo, *batch_bo; void *data; + fprintf(stderr, "Dumping execbuffer2:\n"); + /* We can't do this at open time as we're not yet authenticated. */ if (device == 0) { device = gem_get_param(fd, I915_PARAM_CHIPSET_ID); @@ -427,8 +429,12 @@ dump_execbuffer2(int fd, struct drm_i915_gem_execbuffer2 *execbuffer2) /* If bo->size == 0, this means they passed us an invalid * buffer. The kernel will reject it and so should we. */ - if (bo->size == 0) + if (bo->size == 0) { + fprintf(stderr, "BO #%d is invalid!\n", obj->handle); return; + } + + fprintf(stderr, "BO #%d (%dB) @ 0x%x\n", obj->handle, bo->size, offset); if (obj->flags & EXEC_OBJECT_PINNED) { bo->offset = obj->offset;