From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753793AbcAIJ44 (ORCPT ); Sat, 9 Jan 2016 04:56:56 -0500 Received: from mail-pa0-f67.google.com ([209.85.220.67]:36226 "EHLO mail-pa0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753507AbcAIJ4y (ORCPT ); Sat, 9 Jan 2016 04:56:54 -0500 Date: Sat, 9 Jan 2016 18:56:01 +0900 From: Namhyung Kim To: Ingo Molnar Cc: Arnaldo Carvalho de Melo , Peter Zijlstra , Jiri Olsa , LKML , David Ahern , Stephane Eranian , Andi Kleen , Masami Hiramatsu , Wang Nan Subject: Re: [RFC/PATCH v3] perf report: Show random usage tip on the help line Message-ID: <20160109095601.GD7818@danjae.kornet> References: <1452166913-27046-1-git-send-email-namhyung@kernel.org> <20160108075705.GA10894@gmail.com> <20160108080634.GA11739@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20160108080634.GA11739@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 08, 2016 at 09:06:35AM +0100, Ingo Molnar wrote: > > * Ingo Molnar wrote: > > > > > * Namhyung Kim wrote: > > > > > Currently perf report only shows a help message "For a higher level > > > overview, try: perf report --sort comm,dso" unconditionally (even if > > > the sort keys were used). Add more help tips and show randomly. > > > > > > Load tips from ${prefix}/share/doc/perf-tip/tips.txt file. > > > > > +++ b/tools/perf/Documentation/tips.txt > > > @@ -0,0 +1,14 @@ > > > +For a higher level overview, try: perf report --sort comm,dso > > > +Group related events with: perf record -e '{cycles,instructions}:S' > > > +Compare performance results with: perf diff [ ] > > > +Boolean options have negative forms like: perf report --no-children > > > +Customize output of perf script with: perf script -F event,ip,sym > > > +Generate a script for your data: perf script -g > > > +Save output of perf stat using: perf stat record > > > +Create archive of data to see it on other machine: perf archive > > > +Search options using a keyword: perf report -h > > > +Use parent filter to see specific call path: perf report -p > > We could also include a more basic tip that suggests call graph recording? Most > people don't know about it I think. Will add. Thanks, Namhyung