From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756539AbbHGHYJ (ORCPT ); Fri, 7 Aug 2015 03:24:09 -0400 Received: from terminus.zytor.com ([198.137.202.10]:39750 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755532AbbHGHYF (ORCPT ); Fri, 7 Aug 2015 03:24:05 -0400 Date: Fri, 7 Aug 2015 00:23:55 -0700 From: tip-bot for Adrian Hunter Message-ID: Cc: linux-kernel@vger.kernel.org, jolsa@redhat.com, adrian.hunter@intel.com, hpa@zytor.com, acme@redhat.com, mingo@kernel.org, tglx@linutronix.de Reply-To: acme@redhat.com, tglx@linutronix.de, mingo@kernel.org, adrian.hunter@intel.com, linux-kernel@vger.kernel.org, jolsa@redhat.com, hpa@zytor.com In-Reply-To: <1437150840-31811-17-git-send-email-adrian.hunter@intel.com> References: <1437150840-31811-17-git-send-email-adrian.hunter@intel.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf tools: Extend the event parser maximum error index Git-Commit-ID: 141b2d3161f19a774b3ceaa8faed5e63484a4684 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 141b2d3161f19a774b3ceaa8faed5e63484a4684 Gitweb: http://git.kernel.org/tip/141b2d3161f19a774b3ceaa8faed5e63484a4684 Author: Adrian Hunter AuthorDate: Fri, 17 Jul 2015 19:33:51 +0300 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 6 Aug 2015 16:49:44 -0300 perf tools: Extend the event parser maximum error index Extend the event parser maximum error index from 10 to 13. That allows PMU config terms of up to 10 characters to display un-truncated in the error message. Signed-off-by: Adrian Hunter Cc: Jiri Olsa Link: http://lkml.kernel.org/r/1437150840-31811-17-git-send-email-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/parse-events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c index a6cb9af..828936d 100644 --- a/tools/perf/util/parse-events.c +++ b/tools/perf/util/parse-events.c @@ -1168,7 +1168,7 @@ static void parse_events_print_error(struct parse_events_error *err, * Maximum error index indent, we will cut * the event string if it's bigger. */ - int max_err_idx = 10; + int max_err_idx = 13; /* * Let's be specific with the message when