Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2679227rdb; Tue, 12 Sep 2023 08:57:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF857ZPl1cZw1cM0csjgWLCKZFor/oObNm4Xm/rsmd1RdBGRh9sVFKkrhBjxo14jTTp4cji X-Received: by 2002:a05:6a00:1f0f:b0:68c:7089:cb8 with SMTP id be15-20020a056a001f0f00b0068c70890cb8mr158831pfb.2.1694534235629; Tue, 12 Sep 2023 08:57:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694534235; cv=none; d=google.com; s=arc-20160816; b=LmaFu+ZINIPa+xFBXjatJdcH90sIG8VZaqeJ07+4qVk/dRlTyyJBcwnjXiJGegqD8Q Sl5wzmAvFpJknIlS2BM0mcD5R/8pcopmBsDueJ5JpmNxcH6gLK3M6+kr1peR74zQv284 7LJerhullb3wX8G8UOvrL+P2NC/iR+VcoWrbhYbfsOv42peGymu2hF9BYSTrrB7/c3Uf v+aYbAijnGoXPTVeDfQCX9bUdgbc2CyUwueV/dTmM/pQhsmif4XlWJ8kr35fJv3nDCYG wOBxtf2aixIeaZ+YerfcZ+dvumFgtEuArfOrY0Upfr7xBUmYdHSqKzYV7grp9pcugTI2 FuuQ== 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=GAXxHg6ZQntxT/PQjcgalO3OQjXF00m2KUshZi8okiU=; fh=iAMKmEU8QtysKSTSBPQoaXBzU51TMN/li6YaV2/xiv8=; b=tVjj40macqs1b/jBmbwfJZg7JnERkHDCqh9FK8VW/aCsD2yyuCoVG73acsVvwjIbla WaQjwMsTdxKmGGaNYFn3XBcGGcGtbLIMbHPL0/KOXnEN1keBF5wYtpeMcYVwKQvqMMNr kfBOMLIIByd3u5Rb1xgDmuA+uzs38KHLPrnwiKRTD5wt0Bs0UCuO39qAosGrnkvXMGLJ a5UdlIiBN1FWg3+aEwwEz/11gMdJRzPqFVD4zJwu4Z2E9gSCyRUkuOObpbwQWr1hHxtm rOBRHJJuVqF8HX3hXTEVwrwar4g0ixbPuu8KRF34V9icl5uBu30EsCX6uFK3d1iOaSpV b4qQ== 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 s34-20020a056a0017a200b0068fcc67e73asi3096787pfg.18.2023.09.12.08.57.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 08:57:15 -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 6E1D687C0197; Mon, 11 Sep 2023 23:00:43 -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 S229589AbjILGAi convert rfc822-to-8bit (ORCPT + 99 others); Tue, 12 Sep 2023 02:00:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229556AbjILGAi (ORCPT ); Tue, 12 Sep 2023 02:00:38 -0400 Received: from mail-yb1-f170.google.com (mail-yb1-f170.google.com [209.85.219.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EA46E6F; Mon, 11 Sep 2023 23:00:34 -0700 (PDT) Received: by mail-yb1-f170.google.com with SMTP id 3f1490d57ef6-d7260fae148so4720990276.1; Mon, 11 Sep 2023 23:00:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694498433; x=1695103233; 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=uDoTwLrmKoaof/JBEdXQtP7jXktkcDfzwol6kevEdW8=; b=IarhDHeF7n5n70eyxZKmlYaKBBcGoWyf0ELfvDj26eLkp+CHXP53hqrf/JyXjDtCsB 6/H9YrTWiGn6sLeBHUG0za/rWEqpXxHIDzD1G+h9dEXQNc86DBAODbj8KSeQb8FUFHHU QBR+oD6GsHPz124Ol6zJnTOjEKT6iFyyTN1I91OINV0q5ePaS0DKuMpu//FnbG8BuvQ4 2q1O/NiQOrLe8Hpy54hMq2n5NblVl3v7rr3nWT6Y91Bdz1brGwPTc4eCurHGfLRCJ2kZ 0BpYgyr6sxBmFkcBAj7+s8kCt199tCfxbOi/Ii5wFctNBY79JFMeOvniWQyTc+mjqddZ pqPg== X-Gm-Message-State: AOJu0YyxDQr2SZIj17+8juhl1+DFvvuRmFqY5iVQdOGApugJQc+6zXk3 /fB+mK9DpZqr7WsNQ0RJLWmf11SZ4zstv0iJyMw= X-Received: by 2002:a25:ab33:0:b0:d05:59cd:a89d with SMTP id u48-20020a25ab33000000b00d0559cda89dmr11590307ybi.30.1694498433253; Mon, 11 Sep 2023 23:00:33 -0700 (PDT) MIME-Version: 1.0 References: <20230911170559.4037734-1-irogers@google.com> <20230911170559.4037734-4-irogers@google.com> In-Reply-To: <20230911170559.4037734-4-irogers@google.com> From: Namhyung Kim Date: Mon, 11 Sep 2023 23:00:22 -0700 Message-ID: Subject: Re: [PATCH v1 4/5] perf pmu: Add YYDEBUG 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:43 -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 > pmu-bison.c. Conditionally enabled only for debug builds. > > Signed-off-by: Ian Rogers Acked-by: Namhyung Kim Thanks, Namhyung > --- > tools/perf/util/pmu.y | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/tools/perf/util/pmu.y b/tools/perf/util/pmu.y > index 600c8c158c8e..198907a8a48a 100644 > --- a/tools/perf/util/pmu.y > +++ b/tools/perf/util/pmu.y > @@ -5,6 +5,10 @@ > > %{ > > +#ifndef NDEBUG > +#define YYDEBUG 1 > +#endif > + > #include > #include > #include > -- > 2.42.0.283.g2d96d420d3-goog >