From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754055AbaJGPOT (ORCPT ); Tue, 7 Oct 2014 11:14:19 -0400 Received: from mail.kernel.org ([198.145.19.201]:42793 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752956AbaJGPOS (ORCPT ); Tue, 7 Oct 2014 11:14:18 -0400 Date: Tue, 7 Oct 2014 12:14:12 -0300 From: Arnaldo Carvalho de Melo To: David Ahern Cc: Alexander Yarygin , linux-kernel@vger.kernel.org, Christian Borntraeger , Ingo Molnar , Jiri Olsa , Paul Mackerras , Peter Zijlstra Subject: Re: [PATCH] perf kvm stat record: print kvm specific --help output Message-ID: <20141007151412.GL14113@kernel.org> References: <1412611998-8690-1-git-send-email-yarygin@linux.vnet.ibm.com> <1412611998-8690-2-git-send-email-yarygin@linux.vnet.ibm.com> <54340276.9070708@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54340276.9070708@gmail.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, Oct 07, 2014 at 09:10:46AM -0600, David Ahern escreveu: > On 10/6/14, 10:13 AM, Alexander Yarygin wrote: > > >+static void print_record_help(void) > >+{ > >+ fprintf(stderr, "\n usage: perf kvm stat record []\n\n"); > >+ > >+ fprintf(stderr, " -p, --pid record events on existing process id\n"); > >+ fprintf(stderr, " -t, --tid record events on existing thread id\n"); > >+ fprintf(stderr, " -r, --realtime collect data with this RT SCHED_FIFO priority\n"); > >+ fprintf(stderr, " --no-buffering collect data without buffering\n"); > >+ fprintf(stderr, " -a, --all-cpus system-wide collection from all CPUs\n"); > >+ fprintf(stderr, " -C, --cpu list of cpus to monitor\n"); > >+ fprintf(stderr, " -c, --count event period to sample\n"); > >+ fprintf(stderr, " -o, --output output file name\n"); > >+ fprintf(stderr, " -i, --no-inherit child tasks do not inherit counters\n"); > >+ fprintf(stderr, " -m, --mmap-pages \n"); > >+ fprintf(stderr, " number of mmap data pages\n"); > >+ fprintf(stderr, " -v, --verbose be more verbose (show counter open errors, etc)\n"); > >+ fprintf(stderr, " -q, --quiet don't print any message\n"); > >+ fprintf(stderr, " -D, --delay ms to wait before starting measurement after program start\n"); > >+ fprintf(stderr, " -u, --uid user to profile\n"); > >+ fprintf(stderr, " --per-thread use per-thread mmaps\n"); > >+ > >+ fprintf(stderr, "\nOtherwise, it is the alias of 'perf record:'\n"); > >+} > > Those are all perf-record options, not perf-kvm-stat-record options. This > usage should not repeat perf-record. Right, and from a quick look, the way Namhyung is tackling this problem is better. - Arnaldo