Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2380011rdb; Mon, 11 Sep 2023 23:01:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGew4x6jf7sdNrlerBDJOvGUCfHLZq8O1EdAvYNzRh+tEOq0PHWwhVil+vD7PCD66oOv6Ul X-Received: by 2002:a17:903:2341:b0:1c2:811:2cee with SMTP id c1-20020a170903234100b001c208112ceemr12692334plh.23.1694498513870; Mon, 11 Sep 2023 23:01:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694498513; cv=none; d=google.com; s=arc-20160816; b=gJS+9iDj9DPyLLWIPGCLC4KSENyShhY3GOA6UW9MKVD4ohC0AFUEkVt6zLN2MtGZki dw15EnQ4syo/Ox+ECz/xf+xSUICKEC671IvgYH0cwrmhG/kx6sSahk0p6++13899iK2z UPz/NqNzLBRtc7pBrhslpzoCOuZd3TPBWUraqWYd9M+GpIZrR4lMmz2/COtR47oiCmXD 14HOu9mU/Jlw1zo+P8l4IUmruW/iByGUoIrvKg6upF4CtrA2rWfEtQaNcTtxVzpCWH7v Uu3YCO62lpTP9xhd4+nvwUCFIorTfpzilyIGQlMqsMgDqQtnDkfaF80gtCk4UJu6oD6y gk1w== 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=OfTKyBWiaX6dU6EFTNn3Bv7mRaDbNLFU8b5H2Qk4dck=; fh=iAMKmEU8QtysKSTSBPQoaXBzU51TMN/li6YaV2/xiv8=; b=oE58YWq/3SAoWI/SLAFmaoBkwwQfnX0djd4RieFg5F9bMkar5YKnkFexzaEjXVsO8z PFzXtxvA+H3KoLpx5cyX5NKl8j3OJTF8BEAs9boFf/64qjhdQduOaidey355JOCIl8BH YIELxqgqQnCD0UbFuCOecpJd16dKHKlot2YtpXcW2nrfnYrUGk05tgn5JsdvZlSIe22C iKY2pV0YXyF+nTVbRcx/PplWiwolhaxaD4JlgcB6TSxlhIBu7GQAxgnZvPDXr1HmEE1X SxSpKs2WgRt3jMD30ovuY2MDFSk5KtMQ0CWTXGwayQsdoG1YqNh/2sKKbCIpjCjuRpsO x+bg== 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:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id n13-20020a170902d2cd00b001c3b2d40b3csi3416421plc.330.2023.09.11.23.01.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Sep 2023 23:01:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 3857180A1490; Mon, 11 Sep 2023 23:00:39 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229548AbjILGAD convert rfc822-to-8bit (ORCPT + 99 others); Tue, 12 Sep 2023 02:00:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbjILGAC (ORCPT ); Tue, 12 Sep 2023 02:00:02 -0400 Received: from mail-yw1-f171.google.com (mail-yw1-f171.google.com [209.85.128.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F085E6F; Mon, 11 Sep 2023 22:59:59 -0700 (PDT) Received: by mail-yw1-f171.google.com with SMTP id 00721157ae682-5925e580e87so50235047b3.1; Mon, 11 Sep 2023 22:59:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694498398; x=1695103198; 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=YUW3PBCAleAS9w3cdUEQTVpKbtiKssCpvnhKjHCXuM8=; b=TUD0VYPmgDvbLI0gy6/dWoxe8BmOlSNbLV2Db504Nkrc5zvXSrRNt4mbQompyEu7vY JY3Sh3+r9pjBzCIu3/znl3nBO32J/kLqz1U8RQpfN+dA6ttkO2a836AmAwubfjgmA1cm +Toghc1M5Uf2ubmN1Hz0jeOLUIOzZk4CAZnUCr+goBfiG21kr4lw3cyY1P4ys3fJ4Lpr Ocn8SCBD1F9qpyDHXnbI+H9JNFaUVJRyvz36jiJ8++q7IDxn0dnoWVzNsJyenr9tY5BH fVzAPESn7NSD6NkxxC1D6WtRiO8qi0AlKEaV4u9tew6VDHNoDP1FMnm5kBXeNODGOl9l 8Azg== X-Gm-Message-State: AOJu0YyxioXJ5gFJ2+VI0AuZaYisQRKsnTLGt354IsFCmIMnAvp/6AKm 78CmIhgsSyFPeVz2jl48+HkaE234BA1O79e8ljg= X-Received: by 2002:a25:a403:0:b0:d77:ff96:66ae with SMTP id f3-20020a25a403000000b00d77ff9666aemr9403254ybi.50.1694498398172; Mon, 11 Sep 2023 22:59:58 -0700 (PDT) MIME-Version: 1.0 References: <20230911170559.4037734-1-irogers@google.com> <20230911170559.4037734-2-irogers@google.com> In-Reply-To: <20230911170559.4037734-2-irogers@google.com> From: Namhyung Kim Date: Mon, 11 Sep 2023 22:59:47 -0700 Message-ID: Subject: Re: [PATCH v1 2/5] perf parse-events: 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 (fry.vger.email [0.0.0.0]); Mon, 11 Sep 2023 23:00:39 -0700 (PDT) X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email On Mon, Sep 11, 2023 at 10:06 AM Ian Rogers wrote: > > YYDEBUG enables line numbers and other error helpers in the generated > parse-events-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/parse-events.y | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/tools/perf/util/parse-events.y b/tools/perf/util/parse-events.y > index ef03728b7ea3..786393106ae6 100644 > --- a/tools/perf/util/parse-events.y > +++ b/tools/perf/util/parse-events.y > @@ -6,7 +6,9 @@ > > %{ > > +#ifndef NDEBUG > #define YYDEBUG 1 > +#endif > > #include > #include > -- > 2.42.0.283.g2d96d420d3-goog >