Skip to content

Commit

Permalink
perf_counter tools: Prepare for 'perf annotate'
Browse files Browse the repository at this point in the history
Prepare for the 'perf annotate' implementation by splitting off
builtin-annotate.c from builtin-report.c.

( We keep this commit separate to ease the later librarization
  of the facilities that perf-report and perf-annotate shares. )

Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Ingo Molnar committed Jun 6, 2009
1 parent 6e6b754 commit 8035e42
Show file tree
Hide file tree
Showing 6 changed files with 1,325 additions and 2 deletions.
26 changes: 26 additions & 0 deletions Documentation/perf_counter/Documentation/perf-annotate.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
perf-annotate(1)
==============

NAME
----
perf-annotate - Read perf.data (created by perf record) and annotate functions

SYNOPSIS
--------
[verse]
'perf annotate' [-i <file> | --input=file] symbol_name

DESCRIPTION
-----------
This command displays the performance counter profile information recorded
via perf record.

OPTIONS
-------
-i::
--input=::
Input file name. (default: perf.data)

SEE ALSO
--------
linkperf:perf-record[1]
3 changes: 2 additions & 1 deletion Documentation/perf_counter/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -323,12 +323,13 @@ LIB_OBJS += util/symbol.o
LIB_OBJS += util/color.o
LIB_OBJS += util/pager.o

BUILTIN_OBJS += builtin-annotate.o
BUILTIN_OBJS += builtin-help.o
BUILTIN_OBJS += builtin-list.o
BUILTIN_OBJS += builtin-record.o
BUILTIN_OBJS += builtin-report.o
BUILTIN_OBJS += builtin-stat.o
BUILTIN_OBJS += builtin-top.o
BUILTIN_OBJS += builtin-list.o

PERFLIBS = $(LIB_FILE)
EXTLIBS =
Expand Down
Loading

0 comments on commit 8035e42

Please sign in to comment.