Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1302167

Re: [RFC/PATCH] perf report: Show random usage tip on the help line

From Andi Kleen <andi@firstfloor.org>
Newsgroups linux.kernel
Subject Re: [RFC/PATCH] perf report: Show random usage tip on the help line
Date 2016-01-05 22:00 +0100
Message-ID <qNGRZ-860-43@gated-at.bofh.it> (permalink)
References <qNsvE-5OP-5@gated-at.bofh.it> <qNtrI-6yZ-7@gated-at.bofh.it> <qNxlD-Sz-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


> Btw, does anyone have some tips to add? :)

Use perf script to show individual samples
Use perf report --percent-limit 5 to only show entires above 5%
Use perf record -b -g / perf report --branch-history to show branch events
Use perf record -b / perf report to show branch mispredictions
Use perf report -M intel to show Intel style assembler 
Use perf report --sort srcfile to sort by source file
Use perf report --sort symbol,srcline to sort by source line
Use perf record -e '{cycles,cache-misses}:S' / perf report --group to associate events
Use perf mem record / perf mem report for memory address profiling
Use perf stat -I 1000 to count events in intervals
Use perf stat -I 1000 -x, to count events and output as CSV
Use perf timechart record / report to generate high level time line
Use perf probe --add kfunc / perf record -e kfunc to trace a custom trace point

You may also want to adapt some of Brendan's one liners:

http://www.brendangregg.com/perf.html

-Andi
-- 
ak@linux.intel.com -- Speaking for myself only.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[RFC/PATCH] perf report: Show random usage tip on the help line Namhyung Kim <namhyung@kernel.org> - 2016-01-05 06:40 +0100
  Re: [RFC/PATCH] perf report: Show random usage tip on the help line "Wangnan (F)" <wangnan0@huawei.com> - 2016-01-05 07:40 +0100
    Re: [RFC/PATCH] perf report: Show random usage tip on the help line Namhyung Kim <namhyung@kernel.org> - 2016-01-05 11:50 +0100
      Re: [RFC/PATCH] perf report: Show random usage tip on the help line Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-01-05 17:50 +0100
        Re: [RFC/PATCH] perf report: Show random usage tip on the help line Namhyung Kim <namhyung@kernel.org> - 2016-01-05 20:30 +0100
          Re: [RFC/PATCH] perf report: Show random usage tip on the help line Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-01-05 22:00 +0100
            Re: [RFC/PATCH] perf report: Show random usage tip on the help line Andi Kleen <andi@firstfloor.org> - 2016-01-05 22:00 +0100
              Re: [RFC/PATCH] perf report: Show random usage tip on the help line Namhyung Kim <namhyung@kernel.org> - 2016-01-06 00:30 +0100
                Re: [RFC/PATCH] perf report: Show random usage tip on the help line Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-01-06 02:50 +0100
      Re: [RFC/PATCH] perf report: Show random usage tip on the help line Andi Kleen <andi@firstfloor.org> - 2016-01-05 22:00 +0100
        Re: [RFC/PATCH] perf report: Show random usage tip on the help line Namhyung Kim <namhyung@kernel.org> - 2016-01-06 00:40 +0100
          Re: [RFC/PATCH] perf report: Show random usage tip on the help line Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-01-06 03:00 +0100
          Re: [RFC/PATCH] perf report: Show random usage tip on the help line Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-01-08 16:50 +0100

csiph-web