From: Ian Rogers Date: Mon, 11 Sep 2023 17:05:58 +0000 (-0700) Subject: perf pmu: Add YYDEBUG X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f0f4cd1003a03b0ae86be8c9ec8e88b0df384001;p=linux.git perf pmu: Add YYDEBUG 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 Cc: Adrian Hunter Cc: Alexander Shishkin Cc: Gaosheng Cui Cc: Ingo Molnar Cc: James Clark Cc: Jiri Olsa Cc: Kan Liang Cc: Mark Rutland Cc: Peter Zijlstra Cc: Rob Herring Cc: bpf@vger.kernel.org Link: https://lore.kernel.org/r/20230911170559.4037734-4-irogers@google.com Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/util/pmu.y b/tools/perf/util/pmu.y index 600c8c158c8ee..198907a8a48a6 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