drm/lima: add trace point for tasks
authorQiang Yu <yuq825@gmail.com>
Sat, 7 Mar 2020 13:54:38 +0000 (21:54 +0800)
committerQiang Yu <yuq825@gmail.com>
Sun, 22 Mar 2020 01:57:21 +0000 (09:57 +0800)
commit7f60c4b9d964f604262327a0bfdbfd1721288ef8
tree7bc798ca5935f1f37dcfab36c49db1758504319c
parent57b517cecea05f35fd4a1a00708f9255db7382c8
drm/lima: add trace point for tasks

track lima task start which can be combined with
dma_fence_signal to identify task execution time.

example command to record:

trace-cmd record -i \
  -e "lima:lima_task_submit" -e "lima:lima_task_run" \
  -e "*fence:*fence_signaled" -e "drm:drm_vblank_event" \
  -e "drm:drm_vblank_event_queued" sleep 4

Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200307135438.9981-1-yuq825@gmail.com
drivers/gpu/drm/lima/Makefile
drivers/gpu/drm/lima/lima_sched.c
drivers/gpu/drm/lima/lima_sched.h
drivers/gpu/drm/lima/lima_trace.c [new file with mode: 0644]
drivers/gpu/drm/lima/lima_trace.h [new file with mode: 0644]