1. 11 5月, 2010 1 次提交
  2. 10 4月, 2010 1 次提交
    • L
      drm/i915: Convert some trace events to DEFINE_TRACE · 903cf20c
      Li Zefan 提交于
      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: NLi Zefan <lizf@cn.fujitsu.com>
      Signed-off-by: NEric Anholt <eric@anholt.net>
      903cf20c
  3. 29 9月, 2009 2 次提交
  4. 23 9月, 2009 1 次提交
    • C
      drm/i915: Add tracepoints · 1c5d22f7
      Chris Wilson 提交于
      By adding tracepoint equivalents for WATCH_BUF/EXEC we are able to monitor
      the lifetimes of objects, requests and significant events. These events can
      then be probed using the tracing frameworks, such as systemtap and, in
      particular, perf.
      
      For example to record the stack trace for every GPU stall during a run, use
      
        $ perf record -e i915:i915_gem_request_wait_begin -c 1 -g
      
      And
      
        $ perf report
      
      to view the results.
      
      [Updated to fix compilation issues caused.]
      Cc: Arjan van de Ven <arjan@linux.intel.com>
      Cc: Ben Gamari <bgamari@gmail.com>
      Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
      1c5d22f7