Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | SUMMARY = "Fast, multi-threaded malloc() and nifty performance analysis tools" |
| 2 | HOMEPAGE = "https://github.com/gperftools/gperftools" |
Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 3 | DESCRIPTION = "The gperftools, previously called google-perftools, package contains some \ |
| 4 | utilities to improve and analyze the performance of C++ programs. \ |
| 5 | Included are an optimized thread-caching malloc() and cpu and heap profiling utilities. \ |
| 6 | " |
| 7 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 8 | LICENSE = "BSD-3-Clause" |
| 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=762732742c73dc6c7fbe8632f06c059a" |
| 10 | |
Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 11 | DEPENDS_append_libc-musl = " libucontext" |
| 12 | |
| 13 | SRCREV = "f7c6fb6c8e99d6b1b725e5994373bcd19ffdf8fd" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 14 | SRC_URI = "git://github.com/gperftools/gperftools \ |
| 15 | file://0001-Support-Atomic-ops-on-clang.patch \ |
| 16 | file://0001-fix-build-with-musl-libc.patch \ |
| 17 | file://0001-disbale-heap-checkers-and-debug-allocator-on-musl.patch \ |
| 18 | file://disable_libunwind_aarch64.patch \ |
| 19 | file://sgidef.patch \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 20 | " |
| 21 | |
Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 22 | SRC_URI_append_libc-musl = " file://ppc-musl.patch" |
| 23 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 24 | inherit autotools |
| 25 | |
| 26 | S = "${WORKDIR}/git" |
| 27 | |
| 28 | # On mips, we have the following error. |
| 29 | # do_page_fault(): sending SIGSEGV to ls for invalid read access from 00000008 |
| 30 | # Segmentation fault (core dumped) |
| 31 | COMPATIBLE_HOST_mipsarch = "null" |
| 32 | COMPATIBLE_HOST_riscv64 = "null" |
| 33 | COMPATIBLE_HOST_riscv32 = "null" |
| 34 | |
| 35 | # Disable thumb1 |
| 36 | # {standard input}: Assembler messages: |
| 37 | # {standard input}:434: Error: lo register required -- `ldr pc,[sp]' |
| 38 | # Makefile:4538: recipe for target 'src/base/libtcmalloc_la-linuxthreads.lo' failed |
| 39 | ARM_INSTRUCTION_SET_armv5 = "arm" |
| 40 | ARM_INSTRUCTION_SET_toolchain-clang_arm = "arm" |
| 41 | |
Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 42 | EXTRA_OECONF_append_libc-musl_powerpc64le = " --disable-cpu-profiler --disable-heap-profiler --disable-heap-checker" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 43 | PACKAGECONFIG ?= "libunwind static" |
| 44 | PACKAGECONFIG_remove_arm_libc-musl = "libunwind" |
| 45 | PACKAGECONFIG_remove_riscv64 = "libunwind" |
| 46 | PACKAGECONFIG_remove_riscv32 = "libunwind" |
| 47 | |
| 48 | PACKAGECONFIG[libunwind] = "--enable-libunwind,--disable-libunwind,libunwind" |
| 49 | PACKAGECONFIG[static] = "--enable-static,--disable-static," |
| 50 | |
| 51 | PACKAGE_BEFORE_PN += "libtcmalloc-minimal" |
| 52 | FILES_libtcmalloc-minimal = "${libdir}/libtcmalloc_minimal*${SOLIBS} ${libdir}/libtcmalloc_minimal_debug*${SOLIBS}" |
| 53 | |
| 54 | # pprof tool requires Getopt::long and POSIX perl5 modules. |
| 55 | # Also runs `objdump` on each cpuprofile data file |
Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 56 | RDEPENDS_${PN} += " \ |
| 57 | binutils \ |
| 58 | curl \ |
| 59 | perl-module-carp \ |
| 60 | perl-module-cwd \ |
| 61 | perl-module-getopt-long \ |
| 62 | perl-module-overloading \ |
| 63 | perl-module-posix \ |
| 64 | " |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 65 | |
| 66 | RDEPENDS_${PN} += "libtcmalloc-minimal (= ${EXTENDPKGV})" |