[Intel-gfx] [PATCH v2 2/2] drm/i915/trace: add hw_id to gem requests trace points

Lionel Landwerlin lionel.g.landwerlin at intel.com
Mon Dec 18 16:16:58 UTC 2017


On 18/12/17 15:22, Chris Wilson wrote:
> Quoting Lionel Landwerlin (2017-12-18 15:19:59)
>> When monitoring the GPU with i915 perf, reports are tagged with a hw
>> id. Gem context creation tracepoints already have a hw_id field,
>> unfortunately you only get this correlation between a process id and a
>> hw context id once when the context is created. It doesn't help if you
>> started monitoring after the process was initialized or if the drm fd
>> was transfered from one process to another.
>>
>> This change adds the hw_id field to gem requests, so that correlation
>> can also be done on submission.
>>
>> v2: Place hw_id at the end of the tracepoint to not disrupt too much
>>      existing tools (Chris)
>>
>> v3: Reorder hw_id field again (Chris)
>>
>> v4: Add missing hw_id to i915_gem_request_wait_begin tracepoint (Chris)
>>
>> Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
> Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
> -Chris
>
Thanks a bunch, both patches are pushed to dinq.



More information about the Intel-gfx mailing list