Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2679440rdb; Tue, 12 Sep 2023 08:57:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGT7JNNpMNPb41Gz9QXiFKWufDKbMCo0CxkAutj8ZrU08y3gC5L/jsgER6SnpHERRzkKAiE X-Received: by 2002:a05:6a20:8e19:b0:137:3eba:b808 with SMTP id y25-20020a056a208e1900b001373ebab808mr13847351pzj.5.1694534259369; Tue, 12 Sep 2023 08:57:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694534259; cv=none; d=google.com; s=arc-20160816; b=iGvgbWzQ5KCRFiTwR9fZhxRBtx5w20Z01pP/oSAu/juTFVpMiVMoSYGQkmP8uxabnf p83BL0uuhhICEn+h9f3oczqJkCCJbjWMbceYIAfkvlh78JTSkyhOn6Z6o6Ju7ofDXigp 2S5/CwvvqW5pwLdDgmolxrae9WDfLcdy8iyx2E62QweREDljMr0xHOwQluciFjUBVLF4 edB59KHYncX217XO+hGrPhzFxD211oxODHsiQljXN7D2jH1vJ5sGqjLzDlg/EIfpAxCw PUykhqVclBInBiFCCiiliP1VAcet02lLlsdut4auFn4Jo4/dmkg8PwMKudvAFUlfHHXH Jfhg== 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=Adc7Igqu/2HnjeH8FYTA/u2m1sCQ1KcAtGMFGesfRvg=; fh=iAMKmEU8QtysKSTSBPQoaXBzU51TMN/li6YaV2/xiv8=; b=eQ0hyx0jEFrJmZwsKWn/1ihroNDhaRbB7SF5qpQGbZp56lRvABnfkaE0szh4TwwPEU SX6KzTtiIRUkwNifSCFktqa2aSmggqQdPkpsXezWLIn+uXQtF/Uvm2HRejUeFZgwQ84d adSR57M5J5k4+LqmWWm1t/8navzUOrq4/L6M/2mQTv+qbQKwJYLKxIe6bpWn6ZnM+m+f xcEMtuDTB9DCHQ1RcJCT7YH7H81k3CNXVf9Z05ywmM7wUYVxNWV9CtfZbTTdfcXXret1 0WMdv6zAeAwQSjP11KmnDFc0jXU8JvpfatdHi7JV51gCzQpX+zV0N4csGuaG+npdeaWq QbJg== 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 g12-20020a056a001a0c00b0068e3f550763si8421169pfv.101.2023.09.12.08.57.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 08:57:39 -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 D514787C01A9; Mon, 11 Sep 2023 23:00:57 -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 S229606AbjILGAx convert rfc822-to-8bit (ORCPT + 99 others); Tue, 12 Sep 2023 02:00:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229556AbjILGAw (ORCPT ); Tue, 12 Sep 2023 02:00:52 -0400 Received: from mail-yb1-f172.google.com (mail-yb1-f172.google.com [209.85.219.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0AB5AF; Mon, 11 Sep 2023 23:00:48 -0700 (PDT) Received: by mail-yb1-f172.google.com with SMTP id 3f1490d57ef6-d80089712e5so6199951276.1; Mon, 11 Sep 2023 23:00:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694498448; x=1695103248; 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=VUILU1E0+FdlFdLUANe6gniGaPM89l1IGPrpgMyRN5I=; b=IRltfIMM1TXrcViGkNG/VK96IsT8nn517HsTaBAcVNPZhllEPrcf5LpVyrV/16Ejb6 0Zo39/6wnk59EIQKH4ys6UGC4QNP9YB/5pLtLQkQskPVWYUBhtWglNJB8kz+uMbIT/4Q I3qm401yQCQN6rRVbmO/iasgbO3/LDhaS+GtlROGx2JPACVdDAkCEzOAcRc3B7TuUsS1 /5da9rKMNpSKgqCE6vVDd41NgR6cgGxN8oslTgAN+v1RLSRPjbtZsN/BCu/txU3xk49u wLF3QkXD/WVLedc2CdezxKcGGP4hqhRnvqKMFH2TiiFdXzeqUjynYQ5SZYeDiCGnCkAf OmZA== X-Gm-Message-State: AOJu0Yzor37LZBmzTkYR9Nc1wza50RF/2dgkX7k/7V4sWeVUKiCa1H7p zTaW9/70N0oP5GihcozBs2a4DV6zZM6nVY6+RSYb22S2hk0= X-Received: by 2002:a25:dc11:0:b0:d09:22c0:138d with SMTP id y17-20020a25dc11000000b00d0922c0138dmr2062829ybe.7.1694498447808; Mon, 11 Sep 2023 23:00:47 -0700 (PDT) MIME-Version: 1.0 References: <20230911170559.4037734-1-irogers@google.com> <20230911170559.4037734-5-irogers@google.com> In-Reply-To: <20230911170559.4037734-5-irogers@google.com> From: Namhyung Kim Date: Mon, 11 Sep 2023 23:00:36 -0700 Message-ID: Subject: Re: [PATCH v1 5/5] perf bpf-filter: 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:58 -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 > bpf-filter-bison.c. Conditionally enabled only for debug builds. > > Signed-off-by: Ian Rogers Acked-by: Namhyung Kim Thanks, Namhyung > --- > tools/perf/util/bpf-filter.y | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/tools/perf/util/bpf-filter.y b/tools/perf/util/bpf-filter.y > index 5dfa948fc986..0e4d6de3c2ad 100644 > --- a/tools/perf/util/bpf-filter.y > +++ b/tools/perf/util/bpf-filter.y > @@ -3,6 +3,10 @@ > > %{ > > +#ifndef NDEBUG > +#define YYDEBUG 1 > +#endif > + > #include > #include > #include > -- > 2.42.0.283.g2d96d420d3-goog >