From: Scott D Phillips <scott.d.phillips@intel.com>
To: Jason Ekstrand <jason@jlekstrand.net>, intel-gfx@lists.freedesktop.org
Cc: Jason Ekstrand <jason.ekstrand@intel.com>
Subject: Re: [PATCH i-g-t 3/3] aubdump: Log some information about the execbuf calls
Date: Wed, 23 Aug 2017 11:00:43 -0700 [thread overview]
Message-ID: <87fucidv04.fsf@intel.com> (raw)
In-Reply-To: <1503508486-19432-4-git-send-email-jason.ekstrand@intel.com>
Jason Ekstrand <jason@jlekstrand.net> writes:
> ---
> tools/aubdump.c | 8 +++++++-
> 1 file changed, 7 insertions(+), 1 deletion(-)
>
> 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");
> +
Maybe put these prints under an `if (verbose)'. Series is
Reviewed-by: Scott D Phillips <scott.d.phillips@intel.com>
> /* 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;
> --
> 2.5.0.400.gff86faf
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2017-08-23 18:02 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-23 17:14 [PATCH i-g-t 0/3] aubdump: A few improvements Jason Ekstrand
2017-08-23 17:14 ` [PATCH i-g-t 1/3] aubdump: Reject execbuffer2 calls with bad BOs Jason Ekstrand
2017-08-23 20:28 ` Lionel Landwerlin
2017-08-23 17:14 ` [PATCH i-g-t 2/3] aubdump: Use write_reloc for filling out the ringbuffer Jason Ekstrand
2017-08-23 20:31 ` Lionel Landwerlin
2017-08-23 17:14 ` [PATCH i-g-t 3/3] aubdump: Log some information about the execbuf calls Jason Ekstrand
2017-08-23 18:00 ` Scott D Phillips [this message]
2017-08-23 17:33 ` ✗ Fi.CI.BAT: failure for aubdump: A few improvements Patchwork
2017-08-24 13:00 ` ✓ Fi.CI.BAT: success " Patchwork
2017-08-24 14:03 ` ✓ Fi.CI.IGT: " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fucidv04.fsf@intel.com \
--to=scott.d.phillips@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jason.ekstrand@intel.com \
--cc=jason@jlekstrand.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).