linux/drivers/gpu/drm/lima/lima_trace.c
Qiang Yu 7f60c4b9d9 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
2020-03-22 09:57:21 +08:00

8 lines
170 B
C

// SPDX-License-Identifier: GPL-2.0 OR MIT
/* Copyright 2020 Qiang Yu <yuq825@gmail.com> */
#include "lima_sched.h"
#define CREATE_TRACE_POINTS
#include "lima_trace.h"