From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755644AbZJ0AdX (ORCPT ); Mon, 26 Oct 2009 20:33:23 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755592AbZJ0AdV (ORCPT ); Mon, 26 Oct 2009 20:33:21 -0400 Received: from smtp-out.neti.ee ([194.126.126.34]:48345 "EHLO smtp-out.neti.ee" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755575AbZJ0AdU (ORCPT ); Mon, 26 Oct 2009 20:33:20 -0400 X-SMTP-Auth-NETI-Businesmail: no Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [PATCH 1 of 2] perf tools: notify user when unrecognized event is specified X-Mercurial-Node: 03ec9ee96f17cef054241630a941bf94db7e1ad2 Message-Id: <03ec9ee96f17cef05424.1256603584@localhost> In-Reply-To: References: User-Agent: Mercurial-patchbomb/1.3.1 Date: Tue, 27 Oct 2009 00:33:04 -0000 From: Marti Raudsepp To: Ingo Molnar Cc: Marti Raudsepp , Peter Zijlstra , Paul Mackerras , linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Previously no indication was given about what went wrong. Signed-off-by: Marti Raudsepp diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c --- a/tools/perf/util/parse-events.c +++ b/tools/perf/util/parse-events.c @@ -677,6 +677,8 @@ if (ret != EVT_FAILED) goto modifier; + fprintf(stderr, "invalid or unsupported event: '%s'\n", *str); + fprintf(stderr, "Run 'perf list' for a list of valid events\n"); return EVT_FAILED; modifier: