Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2379489rdb; Mon, 11 Sep 2023 23:00:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEDXDODmqFMXuchDd/kPD4/m+Jwkz7u9BScluCJJZNJAkO3rgjzXEy0VSzA2oLrn92aP7T6 X-Received: by 2002:a05:6a00:4802:b0:68f:dfda:182a with SMTP id di2-20020a056a00480200b0068fdfda182amr1898442pfb.26.1694498459089; Mon, 11 Sep 2023 23:00:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694498459; cv=none; d=google.com; s=arc-20160816; b=ZwHO9y2YHa/W34TPlk9Mbv0jmtGXKM5FieDsuBfxlBb5ddx9KWw33399BNTtB7P26C miIw/3ylZGm6lxYjoyVIEu3ct4I+ejE2tHmxYdNniPLYgPDhKjfSAP+lHfAqOvvfzwTI ASeKf5aCADUgSvZSTCcvPeh+jgIewHNd3qMN842qfkVAmja/S+6k+94GOFGXNDSGHF28 k8kGe19R0Mb1t3GzGDTEEmm1osmvskYKG3NFnZf49XaGU29pWJwP4qEeniRUpykNm4Le QDOn5gQQ9/23XV9g5hcB0kTQUFyxBTnlKj82c2ipkvwHCCMeaC1oAVbdmnB5XFvr7ghP 11lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=u1qQ8KHikvycEjr6RmxkQtGdkRaJIRtL3psz+rIbkUY=; fh=iAMKmEU8QtysKSTSBPQoaXBzU51TMN/li6YaV2/xiv8=; b=RhjO/DKbcPpo+r5avmjv9deOr5sCg3B7Wd+KzSwySg3Lf+RQCFcsE07+IiBy78logp SnPUgTdOnCuZGzPKfVp8rM5Q72B0asefgIFl+JBHIVaRB6Q1mM+Ec1h9HXmZSSae3rf4 nC/xeX7LWMV4iX+DQ7jnZ3zqHayTTUQcOZqDKmUCa7RJtGjcE6cw1PFj18vV6laUKc2j 8szTO4+S+uk/q18J4F+EYVPhrPP85AFxIMt8Nnb4X6gX1S6bfHYedi9BBlUq+SLrr1Zk APUY7ajUpc1/sDmaOwU5M1OVZnJfWgzvSXh+ItpPft6fLsLWLaE9uievQ2vlQfzeFtFx 7tQA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id ct5-20020a056a000f8500b0068a692b67b0si7495834pfb.104.2023.09.11.23.00.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Sep 2023 23:00:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id B037B87182BD; Mon, 11 Sep 2023 23:00:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229574AbjILGAW convert rfc822-to-8bit (ORCPT + 99 others); Tue, 12 Sep 2023 02:00:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229495AbjILGAV (ORCPT ); Tue, 12 Sep 2023 02:00:21 -0400 Received: from mail-vs1-f49.google.com (mail-vs1-f49.google.com [209.85.217.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C433E78; Mon, 11 Sep 2023 23:00:17 -0700 (PDT) Received: by mail-vs1-f49.google.com with SMTP id ada2fe7eead31-44d48168e2cso1720649137.2; Mon, 11 Sep 2023 23:00:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694498416; x=1695103216; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SLhA9tf0heJqm8BqIwdIjIP3qki3/sIyX9kK4EflwYA=; b=SgsDcjsGbWhNV271n+DgwC0yi/YGO5qMav+R0ATBpR7/URiaVC2+J1kTERwG0GxPfD wBHFEfc5MIrUk/h2Uqgyj0tcqT2J3jy8bJo5l63N17ZZOY2d1pPJ40fluhQnMajVQXc7 BqVUeiBU0qkmWrgbZRVtNo4jGLHN7YFoEvPgNls8m3ExvN7ueHiZgZHaEEMH9WjBvbEp zlSH2Tq7xYNV0qxDnUQpVazlAwb1+JE03QntnAizeeqAsVc0Ly/0AnTgagsgPShmeXZG nXrapeU0Mfwh7zpAEf04DWxacSr+OA+kU0aXA9LYm3k/gHnmBeU4TpXbl+2K2q26uW7N b1uA== X-Gm-Message-State: AOJu0YwgVHtii6UnW9q3kS26t1r8Ke/CMTfk8KiRPbDijKRmRM36Y/SQ EtdeR2UiXDL1dYhgcNEbJwW3sYzhq0u9LMB4Wak= X-Received: by 2002:a67:f614:0:b0:44e:93f5:beb6 with SMTP id k20-20020a67f614000000b0044e93f5beb6mr11325764vso.29.1694498416546; Mon, 11 Sep 2023 23:00:16 -0700 (PDT) MIME-Version: 1.0 References: <20230911170559.4037734-1-irogers@google.com> <20230911170559.4037734-3-irogers@google.com> In-Reply-To: <20230911170559.4037734-3-irogers@google.com> From: Namhyung Kim Date: Mon, 11 Sep 2023 23:00:05 -0700 Message-ID: Subject: Re: [PATCH v1 3/5] perf expr: Make YYDEBUG dependent on doing a debug build To: Ian Rogers Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , Kan Liang , James Clark , Gaosheng Cui , Rob Herring , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 11 Sep 2023 23:00:24 -0700 (PDT) On Mon, Sep 11, 2023 at 10:06 AM Ian Rogers wrote: > > YYDEBUG enables line numbers and other error helpers in the generated > expr-bison.c. These shouldn't be generated when debugging > isn't enabled. > > Signed-off-by: Ian Rogers Acked-by: Namhyung Kim Thanks, Namhyung > --- > tools/perf/util/expr.y | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/tools/perf/util/expr.y b/tools/perf/util/expr.y > index 6c93b358cc2d..e364790babb5 100644 > --- a/tools/perf/util/expr.y > +++ b/tools/perf/util/expr.y > @@ -1,6 +1,8 @@ > /* Simple expression parser */ > %{ > +#ifndef NDEBUG > #define YYDEBUG 1 > +#endif > #include > #include > #include > -- > 2.42.0.283.g2d96d420d3-goog >