From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752811AbcAEUwx (ORCPT ); Tue, 5 Jan 2016 15:52:53 -0500 Received: from one.firstfloor.org ([193.170.194.197]:44192 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751572AbcAEUwt (ORCPT ); Tue, 5 Jan 2016 15:52:49 -0500 Date: Tue, 5 Jan 2016 21:52:46 +0100 From: Andi Kleen To: Namhyung Kim Cc: "Wangnan (F)" , Arnaldo Carvalho de Melo , Ingo Molnar , Peter Zijlstra , Jiri Olsa , LKML , David Ahern , Stephane Eranian , Andi Kleen , Masami Hiramatsu Subject: Re: [RFC/PATCH] perf report: Show random usage tip on the help line Message-ID: <20160105205246.GJ15533@two.firstfloor.org> References: <1451972206-22481-1-git-send-email-namhyung@kernel.org> <568B638F.1030208@huawei.com> <20160105104307.GA13561@danjae.kornet> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160105104307.GA13561@danjae.kornet> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > 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.