Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp478189ybf; Fri, 28 Feb 2020 01:37:34 -0800 (PST) X-Google-Smtp-Source: APXvYqzMQvAlzFn5daj1P0xyE4aV3LnDmyV5ARhiuotfbWu14F6Nr2SOWNqImFG4j4bwSmRzAfPt X-Received: by 2002:a54:4595:: with SMTP id z21mr2515948oib.136.1582882654670; Fri, 28 Feb 2020 01:37:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582882654; cv=none; d=google.com; s=arc-20160816; b=dF4BTufyam7WaV6Xwdi3b3Fy4C5lafDlxs4sxqTdoI3syH17PWswrn9yGPooe+9weG C86kHiRXIOwEVJUM6uPV38vAnO1dj2tVTetQZdPz0PG6skc3DFM9XzxSQUKK3P0g/9VP TCaudfwxHNzJtTyiz8fqOjjiZCwN+2OdMY0/KiCbuhUKZks48V/zYuh7OcaL0/YDGsCI ceO436tI7jT2V5g+v9F5IdhzB2AFYklepiHIQBHw19VeaHDWTuk0N7ST7X25roUHwm8t 3WuSM8uEKbxIt11Z/E4ujs0wTFTtuK3+YxNUq+pLmuS4SzJURrO8TfzcQxiBILlYbFQs xKGg== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=/ohwOJFAcDaPptRkZXfch5q97oKacU7r8448oP2rmTM=; b=yWnleGuUwfFsMZMq0fs+5fWdlSAxUz2DGVyFSCjGL8UAYW33fMN5pM1AFqsEUQRGKY G7cSVgTMkOOvu+RxgVuF4W+Kpg2jAm9zoPQNbOlN4bSPEV11Glq9leX7RKi4bwq1Zs0e XrfFLZl9F7M2hbIdMWdNs+KDRsw++xD5LWI4mXSIROVp7cgH9bv3GxvGBGSc8OnCSBFK 1VqFc7oDHN4beolKI1w6Xb2BBao+3P+9k0mQuRlmYuPjEgA03tpGgPLl3/rlau1uOS60 T0bWfiWQaM8bpyFRd8QOQamZIz3qMCCAcHRm8qhbuo2+ZkkQdRIFiDpnXmRc7lgXpZVB qsTA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u13si1281093otg.56.2020.02.28.01.37.23; Fri, 28 Feb 2020 01:37:34 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726998AbgB1Jgi convert rfc822-to-8bit (ORCPT + 99 others); Fri, 28 Feb 2020 04:36:38 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:46880 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726810AbgB1Jgh (ORCPT ); Fri, 28 Feb 2020 04:36:37 -0500 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-315-tkhBY-Q3M0-pRVQXy6JC3g-1; Fri, 28 Feb 2020 04:36:32 -0500 X-MC-Unique: tkhBY-Q3M0-pRVQXy6JC3g-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A3A021083E80; Fri, 28 Feb 2020 09:36:30 +0000 (UTC) Received: from krava.redhat.com (unknown [10.36.118.62]) by smtp.corp.redhat.com (Postfix) with ESMTP id C39928AC3F; Fri, 28 Feb 2020 09:36:27 +0000 (UTC) From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Michael Petlan , Ravi Bangoria , Andi Kleen , Kajol Jain , John Garry Subject: [PATCH 3/5] perf expr: Increase EXPR_MAX_OTHER Date: Fri, 28 Feb 2020 10:36:14 +0100 Message-Id: <20200228093616.67125-4-jolsa@kernel.org> In-Reply-To: <20200228093616.67125-1-jolsa@kernel.org> References: <20200228093616.67125-1-jolsa@kernel.org> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: kernel.org Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 9332796e6649..df0a17df0cef 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 { -- 2.24.1