[Intel-gfx] [igt-dev] [PATCH i-g-t 2/2] intel_gpu_top: Aggregate engine busyness per class
Chris Wilson
chris at chris-wilson.co.uk
Wed Dec 16 16:05:43 UTC 2020
Quoting Tvrtko Ursulin (2020-12-16 16:01:30)
>
> On 16/12/2020 15:51, Chris Wilson wrote:
> > Quoting Tvrtko Ursulin (2020-12-16 15:28:09)
> >> +static int
> >> +print_engines(struct engines *engines, double t, int lines, int w, int h)
> >> +{
> >> + static struct engines *classes;
> >> + struct engines *show;
> >> +
> >> + if (class_view)
> >> + classes = show = update_classes(classes, engines);
> >
> > Something is not right here. Oh static, nvm.
>
> Too hacky? Maybe "show = classes = update_classes()"would read better.
show = update_classes(engines);
with update_classes doing the if (once) classes = init_classes(engines) ?
-Chris
More information about the Intel-gfx
mailing list