1SUMMARY = "Fast, multi-threaded malloc() and nifty performance analysis tools" 2HOMEPAGE = "https://github.com/gperftools/gperftools" 3DESCRIPTION = "The gperftools, previously called google-perftools, package contains some \ 4utilities to improve and analyze the performance of C++ programs. \ 5Included are an optimized thread-caching malloc() and cpu and heap profiling utilities. \ 6" 7 8LICENSE = "BSD-3-Clause" 9LIC_FILES_CHKSUM = "file://COPYING;md5=762732742c73dc6c7fbe8632f06c059a" 10 11DEPENDS:append:libc-musl = " libucontext" 12 13SRCREV = "365060c4213a48adb27f63d5dfad41b3dfbdd62e" 14SRC_URI = "git://github.com/gperftools/gperftools;branch=master;protocol=https \ 15 file://0001-disbale-heap-checkers-and-debug-allocator-on-musl.patch \ 16 file://disable_libunwind_aarch64.patch \ 17 file://0001-src-mmap_hook.cc-Fix-build-for-32bit-machine.patch \ 18 " 19 20SRC_URI:append:libc-musl = " file://ppc-musl.patch" 21 22inherit autotools 23 24S = "${WORKDIR}/git" 25 26# On mips, we have the following error. 27# do_page_fault(): sending SIGSEGV to ls for invalid read access from 00000008 28# Segmentation fault (core dumped) 29COMPATIBLE_HOST:mipsarch = "null" 30COMPATIBLE_HOST:riscv64 = "null" 31COMPATIBLE_HOST:riscv32 = "null" 32 33# Disable thumb1 34# {standard input}: Assembler messages: 35# {standard input}:434: Error: lo register required -- `ldr pc,[sp]' 36# Makefile:4538: recipe for target 'src/base/libtcmalloc_la-linuxthreads.lo' failed 37ARM_INSTRUCTION_SET:armv5 = "arm" 38ARM_INSTRUCTION_SET:toolchain-clang:arm = "arm" 39 40EXTRA_OECONF:append:libc-musl:powerpc64le = " --disable-cpu-profiler" 41EXTRA_OECONF:append:libc-musl:powerpc = " --disable-cpu-profiler" 42PACKAGECONFIG ?= "libunwind static" 43PACKAGECONFIG:remove:arm:libc-musl = "libunwind" 44PACKAGECONFIG:remove:riscv64 = "libunwind" 45PACKAGECONFIG:remove:riscv32 = "libunwind" 46 47PACKAGECONFIG[libunwind] = "--enable-libunwind,--disable-libunwind,libunwind" 48PACKAGECONFIG[static] = "--enable-static,--disable-static," 49 50PACKAGE_BEFORE_PN += "libtcmalloc-minimal" 51FILES:libtcmalloc-minimal = "${libdir}/libtcmalloc_minimal*${SOLIBS} ${libdir}/libtcmalloc_minimal_debug*${SOLIBS}" 52 53# pprof tool requires Getopt::long and POSIX perl5 modules. 54# Also runs `objdump` on each cpuprofile data file 55RDEPENDS:${PN} += " \ 56 binutils \ 57 curl \ 58 perl-module-carp \ 59 perl-module-cwd \ 60 perl-module-getopt-long \ 61 perl-module-overloading \ 62 perl-module-posix \ 63" 64 65RDEPENDS:${PN} += "libtcmalloc-minimal (= ${EXTENDPKGV})" 66