[PATCH v3 1/4] drm/sched: store the drm_device instead of the device
Ville Syrjälä
ville.syrjala at linux.intel.com
Thu Jun 6 13:23:53 UTC 2024
On Thu, Jun 06, 2024 at 03:18:14PM +0200, Christian König wrote:
> Am 06.06.24 um 15:06 schrieb Pierre-Eric Pelloux-Prayer:
> > When tracing is enabled, being able to identify which device is sending
> > events is useful; for this the next commit will extend events to include
> > drm_device::primary::index.
>
> That sounds like a rather bad idea since the primary index is really
> just an arbitrary number and not defined for all devices.
>
> Why not use the device name instead? This way you don't need this change
> in the first place.
FWIW dev_name() is what I added to all i915 display tracepoints.
--
Ville Syrjälä
Intel
More information about the dri-devel
mailing list