drm/i915: Convert some trace events to DEFINE_TRACE
authorLi Zefan <lizf@cn.fujitsu.com>
Thu, 11 Mar 2010 08:41:45 +0000 (16:41 +0800)
committerEric Anholt <eric@anholt.net>
Fri, 9 Apr 2010 21:16:34 +0000 (14:16 -0700)
commit903cf20c997053024b6ed72a746b429671fa8e8c
treefe93466a58f908cb2d95d94d0fd1da2701d7067e
parentfb8b5a39b6310379d7b54c0c7113703a8eaf4a57
drm/i915: Convert some trace events to DEFINE_TRACE

Use DECLARE_EVENT_CLASS to remove duplicate code:

   text    data     bss     dec     hex filename
  14655    2732      15   17402    43fa i915_trace_points.o.orig
  11625    2732      10   14367    381f i915_trace_points.o

8 events are converted:

  i915_gem_object:  i915_gem_object_{unbind, destroy}
  i915_gem_request: i915_gem_request_{complete, retire, wait_begin, wait_end}
  i915_ring:        i915_ring_{wait_begin, wait_end}

No functional change.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/i915_trace.h