drm/msm: profile submit_time in nanosecond resolution
The initial version of the patch save the command submit_time and queue_time in seconds, but its desired by the users of this profiling API to return the time in nanoseconds resolution. Change-Id: I3a56e3ffd3ebe86f51a00a12b7c3e7c4b4c9a956 Signed-off-by: Sharat Masetty <smasetty@codeaurora.org>
This commit is contained in:
parent
c6d1c1699e
commit
c22f7e9569
2 changed files with 2 additions and 4 deletions
|
@ -263,8 +263,6 @@ static int a5xx_submit(struct msm_gpu *gpu, struct msm_gem_submit *submit)
|
|||
|
||||
local_irq_restore(flags);
|
||||
|
||||
do_div(ktime, NSEC_PER_SEC);
|
||||
|
||||
profile_buf->queue_time = ktime;
|
||||
profile_buf->submit_time = ktime;
|
||||
}
|
||||
|
|
|
@ -221,8 +221,8 @@ struct drm_msm_gem_submit {
|
|||
};
|
||||
|
||||
struct drm_msm_gem_submit_profile_buffer {
|
||||
__s64 queue_time; /* out, Ringbuffer queue time (seconds) */
|
||||
__s64 submit_time; /* out, Ringbuffer submission time (seconds) */
|
||||
__s64 queue_time; /* out, Ringbuffer queue time (nsecs) */
|
||||
__s64 submit_time; /* out, Ringbuffer submission time (nsecs) */
|
||||
__u64 ticks_queued; /* out, GPU ticks at ringbuffer submission */
|
||||
__u64 ticks_submitted; /* out, GPU ticks before cmdstream execution*/
|
||||
__u64 ticks_retired; /* out, GPU ticks after cmdstream execution */
|
||||
|
|
Loading…
Add table
Reference in a new issue