[PATCH v2] drm/vc4: Expose performance counters to userspace

Boris Brezillon boris.brezillon at free-electrons.com
Fri Jan 12 08:49:55 UTC 2018


On Thu, 11 Jan 2018 16:35:08 -0800
Eric Anholt <eric at anholt.net> wrote:

> Could we add some docs for get_values?  Like:

Sure.

> 
> /*
>  * Returns the values of the performance counters tracked by this
>  * perfmon (as an array of ncounters u64 values).
>  *
>  * No implicit synchronization is performed, so the user has to
>  * guarantee that any jobs using this perfmon have already been
>  * completed  (probably by blocking on the seqno returned by the
>  * last exec that used the perfmon).
>  */
> 
> With that,
> 
> Reviewed-by: Eric Anholt <eric at anholt.net>
> 
> > +struct drm_vc4_perfmon_get_values {
> > +	__u32 id;
> > +	__u64 values_ptr;
> > +};  



More information about the dri-devel mailing list