[PATCH 17/26] drm/amd/display: implement PERF_TRACE on Linux
Francis, David
David.Francis at amd.com
Mon Oct 15 14:51:46 UTC 2018
Fully agreed. Will redesign this.
________________________________
From: Christian König <ckoenig.leichtzumerken at gmail.com>
Sent: October 13, 2018 1:40:24 PM
To: Michel Dänzer; Lakha, Bhawanpreet
Cc: Francis, David; amd-gfx at lists.freedesktop.org
Subject: Re: [PATCH 17/26] drm/amd/display: implement PERF_TRACE on Linux
Am 12.10.2018 um 18:56 schrieb Michel Dänzer:
> On 2018-10-11 12:09 a.m., Bhawanpreet Lakha wrote:
>> From: David Francis <David.Francis at amd.com>
>>
>> [Why]
>> A quick-and-dirty way of getting performance data for the amdgpu
>> driver would make performance improvements easier
>>
>> [How]
>> The PERF_TRACE functionality is a tic-toc style debug method.
>> Put PERF_TRACE calls on either side of the code you want to test.
>> PERF_TRACE requires access to struct dc_context. PERF_TRACE()
>> will pick up the CTX macro, and PERF_TRACE_CTX(struct dc_context)
>> allows you to pass the context explicitly.
>>
>> The last 20 results can be read through the debugfs entry
>> amdgpu_perf_trace. Each result contains the time in ns and
>> number of GPU read/writes since the result before it.
>>
>> In my experimentation, each PERF_TRACE() call uses at most 700ns
> Should this use the Linux tracing infrastructure?
Yeah, agree that looks like reimplementing the tracing infrastructure to
me as well.
Christian.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20181015/e9545b22/attachment.html>
More information about the amd-gfx
mailing list