Received: by 2002:a25:d783:0:0:0:0:0 with SMTP id o125csp698216ybg; Thu, 19 Mar 2020 07:13:28 -0700 (PDT) X-Google-Smtp-Source: ADFU+vslW7WsoYAiDsLb4o5OUPqwVbFxlOstvJweTYW5gnqVNeQdbD70yjsMYmntZjVe6azuohAA X-Received: by 2002:a05:6830:1447:: with SMTP id w7mr2488090otp.267.1584627208573; Thu, 19 Mar 2020 07:13:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584627208; cv=none; d=google.com; s=arc-20160816; b=CZJA6uFRd8xbD9YAwNtImbAvv9d2Pq5PNfxAOPzN0usqWYbhCAL/vZJ2n/Ag+hwnnl obKTGlGFBWzZhb7uJzLg7hh6uOrS6sNNki3PgNARo2vjYwT55tRVRNF8p1CgN5SXSNrE yZ3aRi8pkTqLykoEE3gOwnWP+HdONg3UQnqUUSWNQ6RGzqcR6b/sCA8+ZWmK/8D9J4DE oZb5dnFQebO6Y/xLIla1cx6/UpuVNxWJCELAVswsPGY3NayjLIjBCaB0DdCXhwn0ZaqR k4QEdo5irMdQeBlOX7XqHN/X6MVPRvppPieKfxrAlxIoooOFBl7sAK1xjZGm4UzNFm6d vi5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=k8PDwijK+JwjSQr4xWrxhPZYepk8Qo7OqY/5SqPSuQA=; b=pou44GPmGW8V+/D6K4Lhat51/OaJDyAkjJJmRYL66mefD5rxi0rtzbKVAKQMjaeeCS FHHKJvzk6HRYzQrJidbPUp+Wh7d75bI+TFe624rjXDjXV3AojeErvhqE7y8ngwky4/6Q FEfppEliF9TV0OR5Ak3d+MWk+ZNDQpcUXNUvJmcAsKKivqXK9nG6/iGDr2F2CuakDbDC TIbIgVMijZSJmZ8k66OqE0cA2FmtfPl3TutMEje3Tmfr9Lwqii9mODn1RS5ZGlrWcfUQ uxmsgGO1DVafa+2fyMkl5zEg2pMc8KO1sCNYytT0gEq9drWufiiA02ACMvAps84gyZj1 9Zag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v126si1126825oia.106.2020.03.19.07.13.05; Thu, 19 Mar 2020 07:13:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728265AbgCSOMF (ORCPT + 99 others); Thu, 19 Mar 2020 10:12:05 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:32853 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727954AbgCSOLM (ORCPT ); Thu, 19 Mar 2020 10:11:12 -0400 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1jEvsz-0002EM-VA; Thu, 19 Mar 2020 15:11:02 +0100 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 5A5411C22A4; Thu, 19 Mar 2020 15:10:51 +0100 (CET) Date: Thu, 19 Mar 2020 14:10:51 -0000 From: "tip-bot2 for Jiri Olsa" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: perf/core] perf expr: Increase EXPR_MAX_OTHER to support metrics with more than 15 variables Cc: Jiri Olsa , Andi Kleen , Alexander Shishkin , John Garry , Kajol Jain , Michael Petlan , Namhyung Kim , Peter Zijlstra , Ravi Bangoria , Arnaldo Carvalho de Melo , x86 , LKML In-Reply-To: <20200228093616.67125-4-jolsa@kernel.org> References: <20200228093616.67125-4-jolsa@kernel.org> MIME-Version: 1.0 Message-ID: <158462705106.28353.7123080507961101659.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the perf/core branch of tip: Commit-ID: 58ca707636dc44c8803a098fb68129f64272f151 Gitweb: https://git.kernel.org/tip/58ca707636dc44c8803a098fb68129f64272f151 Author: Jiri Olsa AuthorDate: Fri, 28 Feb 2020 10:36:14 +01:00 Committer: Arnaldo Carvalho de Melo CommitterDate: Mon, 09 Mar 2020 21:43:24 -03:00 perf expr: Increase EXPR_MAX_OTHER to support metrics with more than 15 variables We have metrics that define more than 15 variables, like Branch_Misprediction_Cost. Increasing the allowed variables count to 20. As Andy pointed out, we can't go too high in here, because some of the code has O(n^2) complexity (already_seen) and we might want to do some other changes (like using hash tables) before increasing the maximum even more. Signed-off-by: Jiri Olsa Reviewed-by: Andi Kleen Cc: Alexander Shishkin Cc: John Garry Cc: Kajol Jain Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Ravi Bangoria Link: http://lore.kernel.org/lkml/20200228093616.67125-4-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/expr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/expr.h b/tools/perf/util/expr.h index 9332796..df0a17d 100644 --- a/tools/perf/util/expr.h +++ b/tools/perf/util/expr.h @@ -2,7 +2,7 @@ #ifndef PARSE_CTX_H #define PARSE_CTX_H 1 -#define EXPR_MAX_OTHER 15 +#define EXPR_MAX_OTHER 20 #define MAX_PARSE_ID EXPR_MAX_OTHER struct parse_id {