Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

perf build: Don't always set -funwind-tables and -ggdb3

Commit 6a40cd90f5deb6de ("perf tools: Add libunwind dependency for DWARF
CFI unwinding") added libunwind support but also -funwind-tables and
-ggdb3 to the standard build. These build flags aren't necessary so
remove, set -g when DEBUG is enabled for the build.

Signed-off-by: Ian Rogers <irogers@google.com>
Acked-by: James Clark <james.clark@arm.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andrii Nakryiko <andrii@kernel.org>
Cc: Eduard Zingerman <eddyz87@gmail.com>
Cc: Gaosheng Cui <cuigaosheng1@huawei.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Nathan Chancellor <nathan@kernel.org>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rob Herring <robh@kernel.org>
Cc: Tom Rix <trix@redhat.com>
Cc: bpf@vger.kernel.org
Cc: llvm@lists.linux.dev
Link: https://lore.kernel.org/r/20230728064917.767761-3-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Ian Rogers and committed by
Arnaldo Carvalho de Melo
435bea0a 1134f290

+3 -4
+3 -4
tools/perf/Makefile.config
··· 246 246 else 247 247 CORE_CFLAGS += -O6 248 248 endif 249 + else 250 + CORE_CFLAGS += -g 251 + CXXFLAGS += -g 249 252 endif 250 253 251 254 ifdef PARSER_DEBUG ··· 327 324 FEATURE_CHECK_LDFLAGS-disassembler-init-styled = -lbfd -lopcodes -ldl 328 325 329 326 CORE_CFLAGS += -fno-omit-frame-pointer 330 - CORE_CFLAGS += -ggdb3 331 - CORE_CFLAGS += -funwind-tables 332 327 CORE_CFLAGS += -Wall 333 328 CORE_CFLAGS += -Wextra 334 329 CORE_CFLAGS += -std=gnu11 ··· 334 333 CXXFLAGS += -std=gnu++14 -fno-exceptions -fno-rtti 335 334 CXXFLAGS += -Wall 336 335 CXXFLAGS += -fno-omit-frame-pointer 337 - CXXFLAGS += -ggdb3 338 - CXXFLAGS += -funwind-tables 339 336 CXXFLAGS += -Wno-strict-aliasing 340 337 341 338 HOSTCFLAGS += -Wall