kernel_optimize_test/include/trace
Peter Zijlstra efed792d67 tracing: add lockdep tracepoints for lock acquire/release
Augment the traces with lock names when lockdep is available:

 1)               |  down_read_trylock() {
 1)               |    _spin_lock_irqsave() {
 1)               |      /* lock_acquire: &sem->wait_lock */
 1)   4.201 us    |    }
 1)               |    _spin_unlock_irqrestore() {
 1)               |      /* lock_release: &sem->wait_lock */
 1)   3.523 us    |    }
 1)               |  /* lock_acquire: try read &mm->mmap_sem */
 1) + 13.386 us   |  }
 1)   1.635 us    |  find_vma();
 1)               |  handle_mm_fault() {
 1)               |    __do_fault() {
 1)               |      filemap_fault() {
 1)               |        find_lock_page() {
 1)               |          find_get_page() {
 1)               |            /* lock_acquire: read rcu_read_lock */
 1)               |            /* lock_release: rcu_read_lock */
 1)   5.697 us    |          }
 1)   8.158 us    |        }
 1) + 11.079 us   |      }
 1)               |      _spin_lock() {
 1)               |        /* lock_acquire: __pte_lockptr(page) */
 1)   3.949 us    |      }
 1)   1.460 us    |      page_add_file_rmap();
 1)               |      _spin_unlock() {
 1)               |        /* lock_release: __pte_lockptr(page) */
 1)   3.115 us    |      }
 1)               |      unlock_page() {
 1)   1.421 us    |        page_waitqueue();
 1)   1.220 us    |        __wake_up_bit();
 1)   6.519 us    |      }
 1) + 34.328 us   |    }
 1) + 37.452 us   |  }
 1)               |  up_read() {
 1)               |  /* lock_release: &mm->mmap_sem */
 1)               |    _spin_lock_irqsave() {
 1)               |      /* lock_acquire: &sem->wait_lock */
 1)   3.865 us    |    }
 1)               |    _spin_unlock_irqrestore() {
 1)               |      /* lock_release: &sem->wait_lock */
 1)   8.562 us    |    }
 1) + 17.370 us   |  }

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: =?ISO-8859-1?Q?T=F6r=F6k?= Edwin <edwintorok@gmail.com>
Cc: Jason Baron <jbaron@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <1236166375.5330.7209.camel@laptop>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-03-04 18:49:58 +01:00
..
block.h blktrace: port to tracepoints, update 2008-11-26 13:04:35 +01:00
boot.h tracing/fastboot: include missing headers 2008-12-12 09:26:13 +01:00
irq_event_types.h tracing: create the C style tracing for the irq subsystem 2009-02-28 04:04:14 -05:00
irq.h tracing, genirq: add irq enter and exit trace events 2009-02-26 18:43:50 +01:00
kmemtrace.h tracing/kmemtrace: normalize the raw tracer event to the unified tracing API 2008-12-30 09:36:13 +01:00
lockdep_event_types.h tracing: add lockdep tracepoints for lock acquire/release 2009-03-04 18:49:58 +01:00
lockdep.h tracing: add lockdep tracepoints for lock acquire/release 2009-03-04 18:49:58 +01:00
power.h tracing: convert c/p state power tracer to use tracepoints 2009-02-13 09:06:18 -05:00
sched_event_types.h tracing: add TRACE_FIELD_SPECIAL to record complex entries 2009-03-02 10:53:15 -05:00
sched.h tracing: add schedule events to event trace 2009-02-24 21:54:07 -05:00
trace_event_types.h tracing: add lockdep tracepoints for lock acquire/release 2009-03-04 18:49:58 +01:00
trace_events.h tracing: add lockdep tracepoints for lock acquire/release 2009-03-04 18:49:58 +01:00
workqueue.h tracing: add a new workqueue tracer 2009-01-14 12:11:43 +01:00