perf: integrate with kconfig and CONFIG driven features
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest23 patches 8 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/23 | perf: initial infrasructure for kconfigtools/ tools/ | +5 | 2 replies | |
| 2/23 | perf: make perl support based on CONFIG_LIBPERLtools/ tools/ tools/ +2 more | +28 | 0 replies | |
| 3/23 | perf: make python support based on CONFIG_LIBPYTHONtools/ tools/ tools/ +2 more | +61 | 0 replies | |
| 4/23 | perf: make gtk2 support based on CONFIG_GTK2tools/ tools/ tools/ | +22 | 0 replies | |
| 5/23 | perf: make newt support based on CONFIG_NEWTtools/ tools/ tools/ | +26 | 0 replies | |
| 6/23 | perf: remove NEWT_SUPPORT in favor of CONFIG_NEWTtools/ tools/ tools/ +1 more | +6 | 0 replies | |
| 7/23 | perf: remove GTK2_SUPPORT in favor of CONFIG_GTK2tools/ tools/ tools/ +1 more | +3 | 0 replies | |
| 8/23 | perf: make elf support based on CONFIG_LIBELFtools/ tools/ | +54 | 0 replies | |
| 9/23 | perf: make cfi unwind support based on CONFIG_LIBUNWINDtools/ tools/ tools/ +1 more | +27 | 3 replies | |
| 10/23 | perf: make demangle support based on CONFIG_DEMANGLEtools/ tools/ tools/ | +39 | 1 reply | |
| 11/23 | perf: make dwarf support based on CONFIG_DWARFtools/ tools/ tools/ +6 more | +23 | 0 replies | |
| 12/23 | perf: add BIONIC config optiontools/ tools/ | +10 | 0 replies | |
| 13/23 | perf: make numa support based on CONFIG_LIBNUMAtools/ tools/ tools/ | +15 | 0 replies | |
| 14/23 | perf: make backtrace support based on CONFIG_BACKTRACEtools/ tools/ tools/ +1 more | +11 | 0 replies | |
| 15/23 | perf: make libaudit support based on CONFIG_LIBAUDITtools/ tools/ tools/ +1 more | +15 | 0 replies | |
| 16/23 | perf: consolidate CONFIG_LIBUNWIND checks in Makefiletools/ | +17 | 0 replies | |
| 17/23 | perf: remove LIBUNWIND_SUPPORT in favor of CONFIG_LIBUNWINDtools/ tools/ tools/ | +9 | 0 replies | |
| 18/23 | perf: deprecate LIBELF_SUPPORT in favor of CONFIG_LIBELFtools/ tools/ tools/ +3 more | +9 | 0 replies | |
| 19/23 | perf: deprecate DWARF_SUPPORT in favor of CONFIG_DWARFtools/ tools/ tools/ +2 more | +18 | 0 replies | |
| 20/23 | perf: consolidate CONFIG_LIBELF checks in Makefiletools/ | +16 | 2 replies | |
| 21/23 | perf: consolidate CONFIG_DWARF checks in Makefiletools/ | +5 | 0 replies | |
| 22/23 | perf: only add elf to EXTLIBS if CONFIG_LIBELF is settools/ | +4 | 0 replies | |
| 23/23 | perf: only add elf-based object files if CONFIG_LIBELF is settools/ | +4 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/23] perf: integrate with kconfig and CONFIG driven features
Patches can also be retrieved from:
https://github.com/dsahern/linux.git perf-config
I still need to add the conf build targets from the top level Makefile.
For this RFC series, you can run the commands manually to generate the .config file for perf and the corresponding include/config/auto.conf and include/generated/autoconf.h files.
To build conf (if it already exists in kernel tree jump to the conf commands below):
BLDDIR=/tmp/perf-build
SRCDIR=/path/to/kernel.git
BLDDIR=/tmp/perf
SRCDIR=/opt/sw/perf/ahern.git
mkdir $BLDDIR
cd $BLDDIR
mkdir -p include/config include/generated
rsync -av $SRCDIR/scripts/ scripts/
ln -s $SRCDIR source
cd $SRCDIR
make O=$BLDDIR V=1 scripts/kconfig conf
Ignore the .config errors - those relate to the kernel build. What matters here is that conf is built.
cd $BLDDIR
touch .config
PATH=$BLDDIR/scripts/kconfig:$PATH ARCH=x86 conf --silentoldconfig $SRCDIR/tools/perf/Pconfig
At this point you are asked what options to enable:
Enable newt-based TUI (NEWT) [N/y] (NEW) y
Enable GTK-based UI (GTK2) [N/y] (NEW) n
Enable support for Bionic (e.g., Android platform) (BIONIC) [N/y] (NEW) Development support for libc is available - glibc or bionic (LIBC) [N/y] (NEW) y
Enable support for libelf (LIBELF) [N/y] (NEW) y
Enable support for libunwind (LIBUNWIND) [N/y] (NEW) y
Enable support for dwarf (DWARF) [N/y] (NEW) y
Enable support for demangle (DEMANGLE) [N/y] (NEW) y
Enable support for perl scripting engine (LIBPERL) [N/y] (NEW) y Enable support for python scripting engine (LIBPYTHON) [N/y] (NEW) y Enable support for libaudit (LIBAUDIT) [N/y/?] (NEW) y
Enable support for libnuma (LIBNUMA) [N/y/?] (NEW) y
Enable support for stack backtrace debugging (BACKTRACE) [N/y] (NEW) y \#
\# configuration written to .config
\#
Now build it:
cd $SRCDIR
make -C tools/perf O=$BLDDIR DESTDIR=/tmp/perf-install -j 4
---
David Ahern (23):
perf: initial infrasructure for kconfig
perf: make perl support based on CONFIG_LIBPERL
perf: make python support based on CONFIG_LIBPYTHON
perf: make gtk2 support based on CONFIG_GTK2
perf: make newt support based on CONFIG_NEWT
perf: remove NEWT_SUPPORT in favor of CONFIG_NEWT
perf: remove GTK2_SUPPORT in favor of CONFIG_GTK2
perf: make elf support based on CONFIG_LIBELF
perf: make cfi unwind support based on CONFIG_LIBUNWIND
perf: make demangle support based on CONFIG_DEMANGLE
perf: make dwarf support based on CONFIG_DWARF
perf: config: add BIONIC config option
perf config: make numa support based on CONFIG_LIBNUMA perf config: make backtrace support based on CONFIG_BACKTRACE
perf: make libaudit support based on CONFIG_LIBAUDIT
perf: consolidate CONFIG_LIBUNWIND checks in Makefile
perf: remove LIBUNWIND_SUPPORT in favor of CONFIG_LIBUNWIND
perf: deprecate LIBELF_SUPPORT in favor of CONFIG_LIBELF
perf: deprecate DWARF_SUPPORT in favor of CONFIG_DWARF
perf: consolidate CONFIG_LIBELF checks in Makefile
perf: consolidate CONFIG_DWARF checks in Makefile
perf: Makefile: only add elf to EXTLIBS if CONFIG_LIBELF is set
perf: only add elf-based object files if CONFIG_LIBELF is set
tools/perf/Makefile | 512 ++++++++++++++----------------- tools/perf/Pconfig | 59 ++++ tools/perf/arch/arm/Makefile | 2 +- tools/perf/arch/powerpc/Makefile | 2 +- tools/perf/arch/s390/Makefile | 2 +- tools/perf/arch/sh/Makefile | 2 +- tools/perf/arch/sparc/Makefile | 2 +- tools/perf/arch/x86/Makefile | 4 +- tools/perf/builtin-bench.c | 5 +- tools/perf/builtin-inject.c | 3 +- tools/perf/builtin-probe.c | 15 +- tools/perf/builtin-record.c | 11 +- tools/perf/builtin-script.c | 5 +- tools/perf/config/feature-tests.mak | 18 +- tools/perf/perf.c | 5 +- tools/perf/ui/ui.h | 5 +- tools/perf/util/annotate.h | 5 +- tools/perf/util/generate-cmdlist.sh | 4 +- tools/perf/util/hist.h | 5 +- tools/perf/util/include/dwarf-regs.h | 4 +- tools/perf/util/map.c | 3 +- tools/perf/util/probe-event.c | 5 +- tools/perf/util/probe-finder.h | 5 +- tools/perf/util/symbol.h | 7 +- tools/perf/util/trace-event-scripting.c | 30 +- tools/perf/util/unwind.h | 5 +- tools/perf/util/util.c | 5 +- 27 files changed, 379 insertions(+), 351 deletions(-) create mode 100644 tools/perf/Pconfig
Signature · 1 line
1.7.10.1