From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754287AbZEYNEm (ORCPT ); Mon, 25 May 2009 09:04:42 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753689AbZEYNEX (ORCPT ); Mon, 25 May 2009 09:04:23 -0400 Received: from hera.kernel.org ([140.211.167.34]:53290 "EHLO hera.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753494AbZEYNEW (ORCPT ); Mon, 25 May 2009 09:04:22 -0400 Date: Mon, 25 May 2009 13:03:32 GMT From: tip-bot for Peter Zijlstra To: linux-tip-commits@vger.kernel.org Cc: linux-kernel@vger.kernel.org, acme@redhat.com, paulus@samba.org, hpa@zytor.com, mingo@redhat.com, jkacur@redhat.com, a.p.zijlstra@chello.nl, tglx@linutronix.de, cjashfor@linux.vnet.ibm.com, mingo@elte.hu Reply-To: mingo@redhat.com, hpa@zytor.com, paulus@samba.org, acme@redhat.com, linux-kernel@vger.kernel.org, jkacur@redhat.com, a.p.zijlstra@chello.nl, tglx@linutronix.de, cjashfor@linux.vnet.ibm.com, mingo@elte.hu In-Reply-To: <20090525124559.995591577@chello.nl> References: <20090525124559.995591577@chello.nl> Subject: [tip:perfcounters/core] perf_counter: Fix perf-$cmd invokation Message-ID: Git-Commit-ID: 266dfb0b58bc4181b6158ee63a0069abaa9f3a98 X-Mailer: tip-git-log-daemon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0 (hera.kernel.org [127.0.0.1]); Mon, 25 May 2009 13:03:33 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 266dfb0b58bc4181b6158ee63a0069abaa9f3a98 Gitweb: http://git.kernel.org/tip/266dfb0b58bc4181b6158ee63a0069abaa9f3a98 Author: Peter Zijlstra AuthorDate: Mon, 25 May 2009 14:45:24 +0200 Committer: Ingo Molnar CommitDate: Mon, 25 May 2009 14:54:59 +0200 perf_counter: Fix perf-$cmd invokation Fix: $ perf-top fatal: cannot handle -top internally Signed-off-by: Peter Zijlstra Cc: Paul Mackerras Cc: Corey Ashford Cc: Arnaldo Carvalho de Melo Cc: John Kacur LKML-Reference: <20090525124559.995591577@chello.nl> Signed-off-by: Ingo Molnar --- Documentation/perf_counter/perf.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Documentation/perf_counter/perf.c b/Documentation/perf_counter/perf.c index 594d270..1d6d7aa 100644 --- a/Documentation/perf_counter/perf.c +++ b/Documentation/perf_counter/perf.c @@ -357,7 +357,7 @@ int main(int argc, const char **argv) * die if that one cannot handle it. */ if (!prefixcmp(cmd, "perf-")) { - cmd += 4; + cmd += 5; argv[0] = cmd; handle_internal_command(argc, argv); die("cannot handle %s internally", cmd);