[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1411422796-27049-1-git-send-email-alexis.berlemont@gmail.com>
Date: Mon, 22 Sep 2014 23:53:01 +0200
From: Alexis Berlemont <alexis.berlemont@...il.com>
To: linux-kernel@...r.kernel.org
Cc: Alexis Berlemont <alexis.berlemont@...il.com>, jolsa@...hat.com,
dsahern@...il.com, mingo@...nel.org, sam@...nborg.org,
mmarek@...e.cz, namhyung@...nel.org
Subject: [PATCH 00/15] Kbuild for perf
Hello,
Here is a proposal of perf's build process managed by Kbuild.
I already tried to propose somes sets of patches a few months ago but
they were far from being perfect... So, let's start from scratch with
this new one:
* Patches sequence was cleaned
* Kconfig now handles ARCH and CROSS_COMPILE variables
* Cross-compilation configurations were tested (thanks to crosstool-ng
powered toolchain: arm-cortex_a8-linux-gnueabi,
powerpc-405-linux-gnu, etc.)
* Many bugs were fixed
* A minor patch was tailed to this set so as to fix the compilation
issue with glibc-2.20 headers (_BSD_SOURCE -> _DEFAULT_SOURCE)
Regards,
Alexis.
Alexis Berlemont (12):
kbuild: add support of custom paths for "auto.conf*" files
perf kbuild: remove Makefile.perf
perf kbuild: remove legacy tui/gui-related build variables
perf kbuild: remove legacy demangle-related build variables
perf kbuild: cross-compilation variables are now handled in Kconfig
perf kbuild: remove legacy misc build variables
perf kbuild: remove legacy libelf-related build variables
perf kbuild: remove legacy libdwarf-related build variables
perf kbuild: remove legacy script-related build variables
perf kbuild: final cosmetic changes
perf kbuild: add generated Kconfig build-test cases
perf: replace _BSD_SOURCE macro by _DEFAULT_SOURCE
Jiri Olsa (3):
perf tools: Kbuild builtin source related fixies
perf tools: Kbuild source related fixies
perf tools: Add kbuild support into Makefile.kbuild
scripts/Makefile.build | 3 +-
scripts/kconfig/confdata.c | 27 +-
scripts/kconfig/lkc.h | 1 +
tools/perf/Kbuild | 47 +
tools/perf/Kconfig | 430 ++++++++++
tools/perf/MANIFEST | 1 +
tools/perf/Makefile | 2 +-
tools/perf/Makefile.kbuild | 443 ++++++++++
tools/perf/Makefile.perf | 942 ---------------------
tools/perf/arch/Kbuild | 3 +
tools/perf/arch/arm/Kbuild | 2 +
tools/perf/arch/arm/Makefile | 14 -
tools/perf/arch/arm/tests/Kbuild | 2 +
tools/perf/arch/arm/util/Kbuild | 3 +
tools/perf/arch/arm64/Kbuild | 1 +
tools/perf/arch/arm64/Makefile | 7 -
tools/perf/arch/arm64/util/Kbuild | 2 +
tools/perf/arch/powerpc/Kbuild | 1 +
tools/perf/arch/powerpc/Makefile | 6 -
tools/perf/arch/powerpc/util/Kbuild | 3 +
tools/perf/arch/s390/Kbuild | 1 +
tools/perf/arch/s390/Makefile | 7 -
tools/perf/arch/s390/util/Kbuild | 2 +
tools/perf/arch/sh/Kbuild | 1 +
tools/perf/arch/sh/Makefile | 4 -
tools/perf/arch/sh/util/Kbuild | 1 +
tools/perf/arch/sparc/Kbuild | 1 +
tools/perf/arch/sparc/Makefile | 4 -
tools/perf/arch/sparc/util/Kbuild | 1 +
tools/perf/arch/x86/Kbuild | 2 +
tools/perf/arch/x86/Makefile | 19 -
tools/perf/arch/x86/include/perf_regs.h | 8 +-
tools/perf/arch/x86/tests/Kbuild | 3 +
tools/perf/{ => arch/x86}/tests/perf-time-to-tsc.c | 2 +-
tools/perf/arch/x86/tests/regs_load.S | 3 +-
tools/perf/arch/x86/util/Kbuild | 6 +
tools/perf/arch/x86/util/unwind-libunwind.c | 5 +-
tools/perf/bench/Kbuild | 12 +
tools/perf/bench/mem-memcpy-arch.h | 4 +-
tools/perf/bench/mem-memcpy.c | 4 +-
tools/perf/bench/mem-memset-arch.h | 4 +-
tools/perf/bench/mem-memset.c | 4 +-
tools/perf/builtin-annotate.c | 8 +-
tools/perf/builtin-bench.c | 5 +-
tools/perf/builtin-help.c | 1 +
tools/perf/builtin-inject.c | 2 +-
tools/perf/builtin-kvm.c | 38 +-
tools/perf/builtin-lock.c | 5 +-
tools/perf/builtin-probe.c | 15 +-
tools/perf/builtin-record.c | 12 +-
tools/perf/builtin-report.c | 3 +
tools/perf/builtin-sched.c | 3 +
tools/perf/builtin-script.c | 6 +-
tools/perf/builtin-top.c | 19 +-
tools/perf/config/Makefile | 446 +++++-----
tools/perf/config/defconfig | 54 ++
tools/perf/perf-sys.h | 4 +-
tools/perf/perf.c | 53 +-
tools/perf/scripts/perl/Perf-Trace-Util/Kbuild | 6 +
tools/perf/scripts/python/Perf-Trace-Util/Kbuild | 5 +
tools/perf/tests/Kbuild | 38 +
tools/perf/tests/builtin-test.c | 3 +-
tools/perf/tests/configs/MINIMAL_config | 60 ++
tools/perf/tests/configs/NO_BACKTRACE_config | 73 ++
.../perf/tests/configs/NO_BUILTIN_ANNOTATE_config | 73 ++
tools/perf/tests/configs/NO_BUILTIN_BENCH_config | 73 ++
.../tests/configs/NO_BUILTIN_BUILDID_CACHE_config | 73 ++
.../tests/configs/NO_BUILTIN_BUILDID_LIST_config | 71 ++
tools/perf/tests/configs/NO_BUILTIN_DIFF_config | 71 ++
tools/perf/tests/configs/NO_BUILTIN_EVLIST_config | 73 ++
tools/perf/tests/configs/NO_BUILTIN_HELP_config | 73 ++
tools/perf/tests/configs/NO_BUILTIN_INJECT_config | 73 ++
tools/perf/tests/configs/NO_BUILTIN_KMEM_config | 73 ++
.../perf/tests/configs/NO_BUILTIN_KVM_STAT_config | 73 ++
tools/perf/tests/configs/NO_BUILTIN_KVM_config | 72 ++
tools/perf/tests/configs/NO_BUILTIN_LIST_config | 73 ++
tools/perf/tests/configs/NO_BUILTIN_LOCK_config | 73 ++
tools/perf/tests/configs/NO_BUILTIN_MEM_config | 73 ++
tools/perf/tests/configs/NO_BUILTIN_PROBE_config | 73 ++
tools/perf/tests/configs/NO_BUILTIN_RECORD_config | 63 ++
tools/perf/tests/configs/NO_BUILTIN_REPORT_config | 68 ++
tools/perf/tests/configs/NO_BUILTIN_SCHED_config | 73 ++
tools/perf/tests/configs/NO_BUILTIN_SCRIPT_config | 73 ++
tools/perf/tests/configs/NO_BUILTIN_STAT_config | 71 ++
tools/perf/tests/configs/NO_BUILTIN_TEST_config | 73 ++
.../perf/tests/configs/NO_BUILTIN_TIMECHART_config | 73 ++
tools/perf/tests/configs/NO_BUILTIN_TOP_config | 71 ++
tools/perf/tests/configs/NO_BUILTIN_TRACE_config | 73 ++
tools/perf/tests/configs/NO_DEMANGLE_config | 71 ++
tools/perf/tests/configs/NO_GTK2_config | 73 ++
tools/perf/tests/configs/NO_LIBAUDIT_config | 72 ++
tools/perf/tests/configs/NO_LIBDWARF_config | 71 ++
tools/perf/tests/configs/NO_LIBELF_MMAP_config | 73 ++
tools/perf/tests/configs/NO_LIBGTK2_INFOBAR_config | 73 ++
tools/perf/tests/configs/NO_LIBGTK2_config | 71 ++
tools/perf/tests/configs/NO_LIBNUMA_config | 73 ++
tools/perf/tests/configs/NO_LIBPERL_config | 73 ++
tools/perf/tests/configs/NO_LIBPYTHON_config | 73 ++
tools/perf/tests/configs/NO_LIBSLANG_config | 72 ++
.../tests/configs/NO_LIBUNWIND_DEBUG_FRAME_config | 73 ++
tools/perf/tests/configs/NO_PERF_REGS_config | 73 ++
tools/perf/tests/configs/NO_STDIO_config | 73 ++
tools/perf/tests/configs/NO_TIMERFD_config | 73 ++
tools/perf/tests/configs/NO_TUI_config | 73 ++
tools/perf/tests/configs/NO_UNWIND_config | 69 ++
tools/perf/tests/configs/REF_config | 73 ++
tools/perf/tests/generate_configs.py | 43 +
tools/perf/tests/make | 70 +-
tools/perf/tests/tests.h | 6 +-
tools/perf/ui/Kbuild | 15 +
tools/perf/ui/browsers/Kbuild | 9 +
tools/perf/ui/browsers/scripts.c | 4 +
tools/perf/ui/gtk/Kbuild | 9 +
tools/perf/ui/gtk/browser.c | 4 +-
tools/perf/ui/gtk/gtk.h | 5 +-
tools/perf/ui/gtk/util.c | 6 +-
tools/perf/ui/setup.c | 12 +-
tools/perf/ui/stdio/Kbuild | 1 +
tools/perf/ui/tui/Kbuild | 4 +
tools/perf/ui/ui.h | 4 +-
tools/perf/util/Kbuild | 127 +++
tools/perf/util/PERF-VERSION-GEN | 4 +
tools/perf/util/annotate.h | 4 +-
tools/perf/util/callchain.h | 2 +-
tools/perf/util/generate-cmdlist.sh | 22 +-
tools/perf/util/hist.h | 4 +-
tools/perf/util/include/dwarf-regs.h | 4 +-
tools/perf/util/machine.c | 2 +-
tools/perf/util/map.c | 3 +-
tools/perf/util/perf_regs.c | 1 +
tools/perf/util/perf_regs.h | 6 +-
tools/perf/util/probe-event.c | 6 +-
tools/perf/util/probe-finder.h | 5 +-
tools/perf/util/scripting-engines/Kbuild | 11 +
tools/perf/util/setup.py | 8 +-
tools/perf/util/srcline.c | 8 +-
tools/perf/util/symbol-elf.c | 3 +-
tools/perf/util/symbol.h | 33 +-
tools/perf/util/trace-event-scripting.c | 13 +-
tools/perf/util/unwind-libunwind.c | 5 +-
tools/perf/util/unwind.h | 7 +-
tools/perf/util/util.c | 5 +-
tools/perf/util/util.h | 2 +-
143 files changed, 4998 insertions(+), 1406 deletions(-)
create mode 100644 tools/perf/Kbuild
create mode 100644 tools/perf/Kconfig
create mode 100644 tools/perf/Makefile.kbuild
delete mode 100644 tools/perf/Makefile.perf
create mode 100644 tools/perf/arch/Kbuild
create mode 100644 tools/perf/arch/arm/Kbuild
delete mode 100644 tools/perf/arch/arm/Makefile
create mode 100644 tools/perf/arch/arm/tests/Kbuild
create mode 100644 tools/perf/arch/arm/util/Kbuild
create mode 100644 tools/perf/arch/arm64/Kbuild
delete mode 100644 tools/perf/arch/arm64/Makefile
create mode 100644 tools/perf/arch/arm64/util/Kbuild
create mode 100644 tools/perf/arch/powerpc/Kbuild
delete mode 100644 tools/perf/arch/powerpc/Makefile
create mode 100644 tools/perf/arch/powerpc/util/Kbuild
create mode 100644 tools/perf/arch/s390/Kbuild
delete mode 100644 tools/perf/arch/s390/Makefile
create mode 100644 tools/perf/arch/s390/util/Kbuild
create mode 100644 tools/perf/arch/sh/Kbuild
delete mode 100644 tools/perf/arch/sh/Makefile
create mode 100644 tools/perf/arch/sh/util/Kbuild
create mode 100644 tools/perf/arch/sparc/Kbuild
delete mode 100644 tools/perf/arch/sparc/Makefile
create mode 100644 tools/perf/arch/sparc/util/Kbuild
create mode 100644 tools/perf/arch/x86/Kbuild
delete mode 100644 tools/perf/arch/x86/Makefile
create mode 100644 tools/perf/arch/x86/tests/Kbuild
rename tools/perf/{ => arch/x86}/tests/perf-time-to-tsc.c (99%)
create mode 100644 tools/perf/arch/x86/util/Kbuild
create mode 100644 tools/perf/bench/Kbuild
create mode 100644 tools/perf/config/defconfig
create mode 100644 tools/perf/scripts/perl/Perf-Trace-Util/Kbuild
create mode 100644 tools/perf/scripts/python/Perf-Trace-Util/Kbuild
create mode 100644 tools/perf/tests/Kbuild
create mode 100644 tools/perf/tests/configs/MINIMAL_config
create mode 100644 tools/perf/tests/configs/NO_BACKTRACE_config
create mode 100644 tools/perf/tests/configs/NO_BUILTIN_ANNOTATE_config
create mode 100644 tools/perf/tests/configs/NO_BUILTIN_BENCH_config
create mode 100644 tools/perf/tests/configs/NO_BUILTIN_BUILDID_CACHE_config
create mode 100644 tools/perf/tests/configs/NO_BUILTIN_BUILDID_LIST_config
create mode 100644 tools/perf/tests/configs/NO_BUILTIN_DIFF_config
create mode 100644 tools/perf/tests/configs/NO_BUILTIN_EVLIST_config
create mode 100644 tools/perf/tests/configs/NO_BUILTIN_HELP_config
create mode 100644 tools/perf/tests/configs/NO_BUILTIN_INJECT_config
create mode 100644 tools/perf/tests/configs/NO_BUILTIN_KMEM_config
create mode 100644 tools/perf/tests/configs/NO_BUILTIN_KVM_STAT_config
create mode 100644 tools/perf/tests/configs/NO_BUILTIN_KVM_config
create mode 100644 tools/perf/tests/configs/NO_BUILTIN_LIST_config
create mode 100644 tools/perf/tests/configs/NO_BUILTIN_LOCK_config
create mode 100644 tools/perf/tests/configs/NO_BUILTIN_MEM_config
create mode 100644 tools/perf/tests/configs/NO_BUILTIN_PROBE_config
create mode 100644 tools/perf/tests/configs/NO_BUILTIN_RECORD_config
create mode 100644 tools/perf/tests/configs/NO_BUILTIN_REPORT_config
create mode 100644 tools/perf/tests/configs/NO_BUILTIN_SCHED_config
create mode 100644 tools/perf/tests/configs/NO_BUILTIN_SCRIPT_config
create mode 100644 tools/perf/tests/configs/NO_BUILTIN_STAT_config
create mode 100644 tools/perf/tests/configs/NO_BUILTIN_TEST_config
create mode 100644 tools/perf/tests/configs/NO_BUILTIN_TIMECHART_config
create mode 100644 tools/perf/tests/configs/NO_BUILTIN_TOP_config
create mode 100644 tools/perf/tests/configs/NO_BUILTIN_TRACE_config
create mode 100644 tools/perf/tests/configs/NO_DEMANGLE_config
create mode 100644 tools/perf/tests/configs/NO_GTK2_config
create mode 100644 tools/perf/tests/configs/NO_LIBAUDIT_config
create mode 100644 tools/perf/tests/configs/NO_LIBDWARF_config
create mode 100644 tools/perf/tests/configs/NO_LIBELF_MMAP_config
create mode 100644 tools/perf/tests/configs/NO_LIBGTK2_INFOBAR_config
create mode 100644 tools/perf/tests/configs/NO_LIBGTK2_config
create mode 100644 tools/perf/tests/configs/NO_LIBNUMA_config
create mode 100644 tools/perf/tests/configs/NO_LIBPERL_config
create mode 100644 tools/perf/tests/configs/NO_LIBPYTHON_config
create mode 100644 tools/perf/tests/configs/NO_LIBSLANG_config
create mode 100644 tools/perf/tests/configs/NO_LIBUNWIND_DEBUG_FRAME_config
create mode 100644 tools/perf/tests/configs/NO_PERF_REGS_config
create mode 100644 tools/perf/tests/configs/NO_STDIO_config
create mode 100644 tools/perf/tests/configs/NO_TIMERFD_config
create mode 100644 tools/perf/tests/configs/NO_TUI_config
create mode 100644 tools/perf/tests/configs/NO_UNWIND_config
create mode 100644 tools/perf/tests/configs/REF_config
create mode 100644 tools/perf/tests/generate_configs.py
create mode 100644 tools/perf/ui/Kbuild
create mode 100644 tools/perf/ui/browsers/Kbuild
create mode 100644 tools/perf/ui/gtk/Kbuild
create mode 100644 tools/perf/ui/stdio/Kbuild
create mode 100644 tools/perf/ui/tui/Kbuild
create mode 100644 tools/perf/util/Kbuild
create mode 100644 tools/perf/util/scripting-engines/Kbuild
--
2.1.0
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists