Skip to content

perf build fixes

Florian Fainelli bpf linux-perf-users lkml llvm stable 2 versions – Applied

Status from this message: This is a note to let you know that I've just added the patch titled

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 8 repliesApplied
  2. v13 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- backport change adding version-lt3 macro
- added fix for "perf build: Disable fewer bison warnings" per Sasha's review

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/5perf build: Conditionally define NDEBUGtools/perf/Makefile.config+1 -01 reply
2/5perf parse-events: Make YYDEBUG dependent on doing a debug buildtools/perf/util/parse-events.y+2 -01 reply
3/5perf build: Disable fewer bison warningstools/perf/util/Build tools/perf/util/expr.y tools/perf/util/parse-events.y +1 more+15 -51 reply
4/5tools build: Add 3-component logical version comparatorstools/scripts/utilities.mak+20 -01 reply
5/5perf build: Remove -Wno-unused-but-set-variable from the flex flags when building with clang < 13.0.0tools/perf/util/Build+17 -34 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchNamhyung Kim
1/5
2/5A-b A-b
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH stable 6.1 v2 0/5] perf build fixes

This patch series contains "perf" build fixes specific to 6.1. We have seen occasional build failures in our CI looking like these:

util/parse-events-bison.c: In function 'yy_symbol_print':
util/parse-events-bison.c:901: error: unterminated #if
901 | #if YYDEBUG

      |

util/parse-events-bison.c:1020:62: error: '_p' undeclared (first use in this function)
1020 | yy_symbol_value_print (yyo, yykind, yyvaluep, yylocationp, _parse_state, scanner);
| ^~
util/parse-events-bison.c:1020:62: note: each undeclared identifier is reported only once for each function it appears in util/parse-events-bison.c:1020:64: error: expected ')' at end of input

 1020 |   yy_symbol_value_print (yyo, yykind, yyvaluep, yylocationp, _parse_state, scanner);
      |                         ~                                      ^
      |                                                                )
 1021 |   YYFPRINTF (yyo, ")");
      |
util/parse-events-bison.c:1020:3: error: too few arguments to function 'yy_symbol_value_print'
 1020 |   yy_symbol_value_print (yyo, yykind, yyvaluep, yylocationp, _parse_state, scanner);
      |   ^~~~~~~~~~~~~~~~~~~~~
util/parse-events-bison.c:991:1: note: declared here
  991 | yy_symbol_value_print (FILE *yyo,
      | ^~~~~~~~~~~~~~~~~~~~~

which are resolved by these patches.

Changes in v2:

- backport change adding version-lt3 macro
- added fix for "perf build: Disable fewer bison warnings" per Sasha's review

Arnaldo Carvalho de Melo (2):
tools build: Add 3-component logical version comparators perf build: Remove -Wno-unused-but-set-variable from the flex flags
when building with clang < 13.0.0

Ian Rogers (3):
perf build: Conditionally define NDEBUG
perf parse-events: Make YYDEBUG dependent on doing a debug build perf build: Disable fewer bison warnings

 tools/perf/Makefile.config     |  1 +
 tools/perf/util/Build          | 32 +++++++++++++++++++++++++-------
 tools/perf/util/expr.y         |  4 +++-
 tools/perf/util/parse-events.y |  3 +++
 tools/perf/util/pmu.y          |  3 +++
 tools/scripts/utilities.mak    | 20 ++++++++++++++++++++
 6 files changed, 55 insertions(+), 8 deletions(-)
Signature · 1 line
2.34.1