[igt-dev] [PATCH i-g-t] tests/pm_sseu: dump the bit of sysfs

Chris Wilson chris at chris-wilson.co.uk
Mon Feb 19 14:48:06 UTC 2018


Quoting Lionel Landwerlin (2018-02-19 14:42:05)
> On 19/02/18 14:40, Chris Wilson wrote:
> > Quoting Lionel Landwerlin (2018-02-19 14:36:03)
> >> We're seeing failures on the CI but we're missing the dump of what has
> >> been read to help us understand what's going wrong.
> >>
> >> Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
> >> ---
> >>   tests/pm_sseu.c | 8 +++++++-
> >>   1 file changed, 7 insertions(+), 1 deletion(-)
> >>
> >> diff --git a/tests/pm_sseu.c b/tests/pm_sseu.c
> >> index 2a2f06bb..4262ad2a 100644
> >> --- a/tests/pm_sseu.c
> >> +++ b/tests/pm_sseu.c
> >> @@ -143,7 +143,7 @@ dbg_get_bool(const char *first, const char *last, const char *name)
> >>   static void
> >>   dbg_get_status(struct status *stat)
> >>   {
> >> -       char *first, *last;
> >> +       char *tmp, *first, *last;
> >>          int nread;
> >>   
> >>          lseek(dbg.status_fd, 0, SEEK_SET);
> >> @@ -154,6 +154,9 @@ dbg_get_status(struct status *stat)
> >>          memset(stat, 0, sizeof(*stat));
> >>   
> >>          dbg_get_status_section("SSEU Device Info", &first, &last);
> > igt_debug("SSEU Device Info\n");
> 
> That bit is already in the dump ;)

Fair enough then, just didn't expect the header to be returned for
parsing :)
-Chris


More information about the igt-dev mailing list