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