Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp339044pxb; Thu, 23 Sep 2021 00:49:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4ZAE3CSxkv22vd7YsjstmYX4T8pvRYZafpl1N4/scBYV1dQ6RQEOhNh817wwSmZKVxXm1 X-Received: by 2002:a17:907:7348:: with SMTP id dq8mr3680211ejc.174.1632383356917; Thu, 23 Sep 2021 00:49:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632383356; cv=none; d=google.com; s=arc-20160816; b=rPXAYI6gLKxXhnz2sUqIjM8yjxNnXfh00rdNRQeN0AyJpZtWgaBY9Uxb24YwQmYI4Z SFp1jaC56RsH8O0a/ozPI10mLumEeHYs10nz/oHxLyW3+lKubbH1tMpFIzCw8T6bk7tj dxpSe7qOXSGFtI16xzz2jd7irp2uP1caSKsxfv9/BOqA9rWQdwMci94yb77SC7aiCuwS LrbbyDnaC3qAm0R1IyYq69p0WZcldqD7AnM8yXAGvxAVHIrDBvUQ+aQhWhRBG8L8vYBy EGtvOKu3MqZt3Zr8R11uNGZgmY1CGAOyzhg13QXKlIZ/83TVPVf7Nx5PPD9wOF6Pei5J c1WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=Hs5Rj+NJx7+HtIpxHcg+oHBvbk954rcb4LXyidx6Rwg=; b=0yPo7Td0zNHbRVp1WGmQkcbRZSVCLkg65fmhn11Hk42aW6oerct10NxhJLX/BdwKzp s8j5nLTNMAcsAg8y/GBbj4jQT10F4E6J9GV5gz+UONt457sCofeFgZ1LgHmczfmXqFd/ FX1fEKfsmBXRbEFnWxpownMp+xE7CmJ2GCmpBCZLETGpTECTD73cWrAwFuE9j2x2l5DS lFMXQR+0ZVhBj+db0lqs9tnDzEhl0BWNlCqj/XF32VsGFlFd/PbQmD9yVbwNaj8KK2rX FLbOWI6IhYDp3HqPgItpa5XVZQn82fvGG8p6enOM2z5J/90f3ZvUa9w1jiqEmMXe5msu 7hFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=s+JliFIJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 12si5155162eja.664.2021.09.23.00.48.52; Thu, 23 Sep 2021 00:49:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=s+JliFIJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239796AbhIWHsa (ORCPT + 99 others); Thu, 23 Sep 2021 03:48:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239773AbhIWHsQ (ORCPT ); Thu, 23 Sep 2021 03:48:16 -0400 Received: from mail-qt1-x84a.google.com (mail-qt1-x84a.google.com [IPv6:2607:f8b0:4864:20::84a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01365C061757 for ; Thu, 23 Sep 2021 00:46:45 -0700 (PDT) Received: by mail-qt1-x84a.google.com with SMTP id o7-20020ac86d07000000b002a69537d614so15263638qtt.21 for ; Thu, 23 Sep 2021 00:46:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=Hs5Rj+NJx7+HtIpxHcg+oHBvbk954rcb4LXyidx6Rwg=; b=s+JliFIJVOrnwMlQ9siG3F9Wi2QguFdhEczvYRLZv5jCJSUyt7HxXQwnujlvFbvvmt FTiXdoOIfIbe/KHSbHBOJV4MZoD+bfsVPxy5aPS1kr2S7CaPfNHUKpdepzCAf7ODEIib O9Aoqe1+3HDDV2bynzFEMZRynKlNYAkLoZHIctdFSTFRbMkY4UxIfHlIgJ3/s/YnNtmf SFPRCVJ/J8bKlGe9ZD0PJaDfcNYNsnEf+zAHKAuVQw6gQ1QyxkbyK1gFBc7WicnTzDeh +w6LQeCaA3lra2WUif7DWIg2abTK9nM5KlDrnXadASvSPt3uGAkCt66gb6IFRcwMkEc7 qoug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=Hs5Rj+NJx7+HtIpxHcg+oHBvbk954rcb4LXyidx6Rwg=; b=BRb+8nQ6cXR7GmM5jX4BnZ3E7KcWgjyHXJ9I3Y3K3nxmFUhccMcZLfnXg7OLX3ncq9 IPDyjhri2VhckfBO45ar+i+HowqmHKMIQVniCCmgeQTwGiIiLHY9LTHBEqpA6yhGAfDz TxjeGbLptz+mwSlb9Pf58kXPK6zXW7yUcznaKqcQi6kA8isqOM0eAzOmYYwqeUcAh3yb d4c+2qpQBe2Dri7mbc3qRb+B1bFggcezPRMyiiYq1J8P+MGWC7Xhp6qBI+mPb2IpZvCE IOYiorsMx/b6rXcQyTo0uHvTHstwzBlZQkDyTrDsC7hvPm8sFv3LTJheVB0YRQYkWmua 7BIQ== X-Gm-Message-State: AOAM531Vi1hGr64FB3+QuhGkckdjiX9guiQjMO8XupS50MZNajvWp6iB QsClkwnYOAfazl9kftCE0XK3jzJ2ZwMO X-Received: from irogers.svl.corp.google.com ([2620:15c:2cd:202:d3ff:e8f7:11f4:c738]) (user=irogers job=sendgmr) by 2002:a05:6214:4c9:: with SMTP id ck9mr3145524qvb.52.1632383204146; Thu, 23 Sep 2021 00:46:44 -0700 (PDT) Date: Thu, 23 Sep 2021 00:46:07 -0700 In-Reply-To: <20210923074616.674826-1-irogers@google.com> Message-Id: <20210923074616.674826-5-irogers@google.com> Mime-Version: 1.0 References: <20210923074616.674826-1-irogers@google.com> X-Mailer: git-send-email 2.33.0.464.g1972c5931b-goog Subject: [PATCH v9 04/13] perf expr: Separate token declataion from type From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-kernel@vger.kernel.org, Andi Kleen , Jin Yao , John Garry , Paul Clarke , kajoljain , linux-perf-users@vger.kernel.org Cc: Stephane Eranian , Sandeep Dasgupta , Ian Rogers Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org No functional change, so the type of expr remains . A later patch will change the computation to be an aggregate type and making this change makes that later change smaller. Signed-off-by: Ian Rogers --- tools/perf/util/expr.y | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tools/perf/util/expr.y b/tools/perf/util/expr.y index e6005450feae..68b122e59b3f 100644 --- a/tools/perf/util/expr.y +++ b/tools/perf/util/expr.y @@ -20,11 +20,7 @@ char *str; } -%token EXPR_PARSE EXPR_OTHER EXPR_ERROR -%token NUMBER -%token ID -%destructor { free ($$); } -%token MIN MAX IF ELSE SMT_ON D_RATIO +%token ID NUMBER MIN MAX IF ELSE SMT_ON D_RATIO EXPR_ERROR EXPR_PARSE EXPR_OTHER %left MIN MAX IF %left '|' %left '^' @@ -33,6 +29,9 @@ %left '-' '+' %left '*' '/' '%' %left NEG NOT +%type NUMBER +%type ID +%destructor { free ($$); } %type expr if_expr %{ -- 2.33.0.464.g1972c5931b-goog