#!/bin/sh EVENTS="drm:drm_vblank_event drm:drm_vblank_event_queued drm:drm_vblank_event_delivered" FUNCS="drm_vblank_count drm_vblank_count_and_time drm_vblank_get drm_vblank_put drm_vblank_post_modeset drm_vblank_pre_modeset drm_vblank_cleanup drm_vblank_init drm_vblank_off drm_handle_vblank drm_wait_vblank drm_mode_page_flip_ioctl drm_vblank_info compat_drm_wait_vblank i915_vblank_swap i915_vblank_pipe_get i915_get_vblank_counter i915_get_vblank_timestamp i915_enable_vblank i915_disable_vblank do_intel_finish_page_flip intel_wait_for_vblank intel_crtc_page_flip intel_finish_page_flip intel_finish_page_flip_plane intel_prepare_page_flip" cd /sys/kernel/debug/tracing || exit 1 echo 0 > tracing_on echo function > current_tracer for i in $EVENTS; do echo "$i" >> set_event; done for i in $FUNCS; do echo "$i" >> set_ftrace_filter; done echo 1 > tracing_on cat trace_pipe