perf/probes: Support function entry relative line number
authorMasami Hiramatsu <mhiramat@redhat.com>
Tue, 27 Oct 2009 20:43:19 +0000 (16:43 -0400)
committerIngo Molnar <mingo@elte.hu>
Thu, 29 Oct 2009 07:47:49 +0000 (08:47 +0100)
commitb0ef07324310d66f660a311d4a8d669eda74f801
tree76ca8d6947e9238254fe8b5b7264ba51bd24d618
parent253977b0d87fbb793f12b1661a763ae264028ccf
perf/probes: Support function entry relative line number

Add function-entry relative line number specifying support to
perf-probe. This allows users to define probes by line number
from entry of the function.

 e.g.

  perf probe schedule:16

Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Jim Keniston <jkenisto@us.ibm.com>
Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Frank Ch. Eigler <fche@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jason Baron <jbaron@redhat.com>
Cc: K.Prasad <prasad@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
LKML-Reference: <20091027204319.30545.30678.stgit@harusame>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-probe.c
tools/perf/util/probe-finder.c
tools/perf/util/probe-finder.h