original_kernel/tools/perf/Documentation
Andi Kleen 3b0b16bf8c perf tools: Support --prefix/--prefix-strip
The objdump utility has useful --prefix / --prefix-strip options to
allow changing source code file names hardcoded into executables' debug
info. Add options to 'perf report', 'perf top' and 'perf annotate',
which are then passed to objdump.

  $ mkdir foo
  $ echo 'main() { for (;;); }' > foo/foo.c
  $ gcc -g foo/foo.c
  foo/foo.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
      1 | main() { for (;;); }
        | ^~~~
  $ perf record ./a.out
  ^C[ perf record: Woken up 1 times to write data ]
  [ perf record: Captured and wrote 0.230 MB perf.data (5721 samples) ]
  $ mv foo bar
  $ perf annotate
  <does not show source code>
  $ perf annotate --prefix=/home/ak/lsrc/git/bar --prefix-strip=5
  <does show source code>

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Tested-by: Jiri Olsa <jolsa@redhat.com>
LPU-Reference: 20200107210444.214071-1-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2020-01-14 12:02:19 -03:00
..
Build.txt
Makefile
android.txt
asciidoc.conf
asciidoctor-extensions.rb
build-xed.txt
callchain-overhead-calculation.txt
db-export.txt
examples.txt
intel-bts.txt
intel-pt.txt perf intel-pt: Add support for recording AUX area samples 2019-11-22 10:48:13 -03:00
itrace.txt
jit-interface.txt
jitdump-specification.txt
manpage-1.72.xsl
manpage-base.xsl
manpage-bold-literal.xsl
manpage-normal.xsl
manpage-suppress-sp.xsl
perf-annotate.txt perf tools: Support --prefix/--prefix-strip 2020-01-14 12:02:19 -03:00
perf-archive.txt
perf-bench.txt
perf-buildid-cache.txt
perf-buildid-list.txt
perf-c2c.txt
perf-config.txt
perf-data.txt
perf-diff.txt
perf-evlist.txt
perf-ftrace.txt
perf-help.txt
perf-inject.txt
perf-kallsyms.txt
perf-kmem.txt
perf-kvm.txt perf kvm: Clarify the 'perf kvm' -i and -o command line options 2019-12-02 15:38:59 -03:00
perf-list.txt
perf-lock.txt
perf-mem.txt
perf-probe.txt
perf-record.txt perf record: Add aux-sample-size config term 2019-11-22 10:48:13 -03:00
perf-report.txt perf tools: Support --prefix/--prefix-strip 2020-01-14 12:02:19 -03:00
perf-sched.txt perf sched timehist: Add support for filtering on CPU 2020-01-06 11:46:09 -03:00
perf-script-perl.txt
perf-script-python.txt
perf-script.txt
perf-stat.txt perf stat: Add --per-node agregation support 2019-11-06 15:49:39 -03:00
perf-test.txt
perf-timechart.txt
perf-top.txt perf tools: Support --prefix/--prefix-strip 2020-01-14 12:02:19 -03:00
perf-trace.txt
perf-version.txt
perf.data-directory-format.txt perf record: Put a copy of kcore into the perf.data directory 2019-11-06 15:43:05 -03:00
perf.data-file-format.txt
perf.txt perf tool: Provide an option to print perf_event_open args and return value 2019-11-12 08:32:27 -03:00
perfconfig.example
tips.txt