Re: [PATCH i-g-t] i915/gem_mmap_gtt: Simulate gdb inspecting a GTT mmap using ptrace()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Quoting Matthew Auld (2020-05-01 15:58:29)
> On Thu, 30 Apr 2020 at 20:42, Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> wrote:
> > +       ptrace(PTRACE_ATTACH, pid, NULL, NULL);
> > +       for (int i = 0; i < OBJECT_SIZE / sizeof(long); i++) {
> > +               long ret;
> > +
> > +               ret = ptrace(PTRACE_PEEKDATA, pid, gtt + i);
> > +               igt_assert_eq_u64(ret, CC);
> > +               cpy[i] = ret;
> > +
> > +               ret = ptrace(PTRACE_POKEDATA, pid, gtt + i, AA);
> > +               igt_assert_eq(ret, 0l);
> 
> igt_assert_eq_u64() ?

In this case it will either be 0 or -1 + errno.

So "%d" vs "%llx" should not affect debugging.
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx



[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux