[Intel-gfx] [PATCH 1/2] drm/i915/trace: Describe engines as class:instance pairs
Tvrtko Ursulin
tvrtko.ursulin at linux.intel.com
Thu May 24 15:42:34 UTC 2018
On 24/05/2018 16:29, Chris Wilson wrote:
> Quoting Tvrtko Ursulin (2018-05-24 16:04:46)
>> From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
>>
>> Instead of using the engine->id, use uabi_class:instance pairs in trace-
>> points including engine info.
>
> Should we not pack dev,hw_id,class,instance into u16s?
Can do.
>> This will be more readable, more future proof and more stable for
>> userspace consumption.
>>
>> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
>> Cc: Chris Wilson <chris at chris-wilson.co.uk>
>> Cc: svetlana.kukanova at intel.com
>> ---
>> @@ -616,7 +621,8 @@ TRACE_EVENT(i915_request_queue,
>> TP_STRUCT__entry(
>> __field(u32, dev)
>> __field(u32, hw_id)
>> - __field(u32, ring)
>> + __field(u32, class)
>> + __field(u32, instance)
>> __field(u32, ctx)
>
> ctx needs u64 :(
> I've no objection to switching to our hopefully futureproof uabi
> nomenclature.
>
> Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
Thanks, I'll grow the series with all of the above.
Regards,
Tvrtko
More information about the Intel-gfx
mailing list