From: Ingo Molnar Date: Fri, 23 Oct 2009 06:23:20 +0000 (+0200) Subject: Merge branch 'perf/core' into perf/probes X-Git-Tag: firefly_0821_release~9833^2~3628^2~310 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=43315956509ca6913764861ac7dec128b91eb1ec;p=firefly-linux-kernel-4.4.55.git Merge branch 'perf/core' into perf/probes Conflicts: tools/perf/Makefile Merge reason: - fix the conflict - pick up the pr_*() infrastructure to queue up dependent patch Signed-off-by: Ingo Molnar --- 43315956509ca6913764861ac7dec128b91eb1ec diff --cc tools/perf/Makefile index 1811a7015f9c,0a40c29b2387..147e3cf035d3 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile @@@ -328,9 -335,26 +335,27 @@@ LIB_FILE=libperf. LIB_H += ../../include/linux/perf_event.h LIB_H += ../../include/linux/rbtree.h LIB_H += ../../include/linux/list.h +LIB_H += ../../include/linux/stringify.h + LIB_H += util/include/linux/bitmap.h + LIB_H += util/include/linux/bitops.h + LIB_H += util/include/linux/compiler.h + LIB_H += util/include/linux/ctype.h + LIB_H += util/include/linux/kernel.h LIB_H += util/include/linux/list.h + LIB_H += util/include/linux/module.h + LIB_H += util/include/linux/poison.h + LIB_H += util/include/linux/prefetch.h + LIB_H += util/include/linux/rbtree.h + LIB_H += util/include/linux/string.h + LIB_H += util/include/linux/types.h + LIB_H += util/include/asm/asm-offsets.h + LIB_H += util/include/asm/bitops.h + LIB_H += util/include/asm/byteorder.h + LIB_H += util/include/asm/swab.h + LIB_H += util/include/asm/system.h + LIB_H += util/include/asm/uaccess.h LIB_H += perf.h + LIB_H += util/event.h LIB_H += util/types.h LIB_H += util/levenshtein.h LIB_H += util/parse-options.h @@@ -424,19 -455,14 +457,23 @@@ ifeq ($(uname_S),Darwin PTHREAD_LIBS = endif + ifneq ($(shell sh -c "(echo '\#include '; echo 'int main(void) { const char * version = gnu_get_libc_version(); return (long)version; }') | $(CC) -x c - $(ALL_CFLAGS) -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -o /dev/null $(ALL_LDFLAGS) > /dev/null 2>&1 && echo y"), y) + msg := $(error No gnu/libc-version.h found, please install glibc-dev[el]); + endif + ifneq ($(shell sh -c "(echo '\#include '; echo 'int main(void) { Elf * elf = elf_begin(0, ELF_C_READ_MMAP, 0); return (long)elf; }') | $(CC) -x c - $(ALL_CFLAGS) -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -o /dev/null $(ALL_LDFLAGS) > /dev/null 2>&1 && echo y"), y) - msg := $(error No libelf.h/libelf found, please install libelf-dev/elfutils-libelf-devel and glibc-dev[el]); + msg := $(error No libelf.h/libelf found, please install libelf-dev/elfutils-libelf-devel); endif +ifneq ($(shell sh -c "(echo '\#include '; echo '\#include '; echo 'int main(void) { Dwarf_Debug dbg; Dwarf_Error err; Dwarf_Ranges *rng; dwarf_init(0, DW_DLC_READ, 0, 0, &dbg, &err); dwarf_get_ranges(dbg, 0, &rng, 0, 0, &err); return (long)dbg; }') | $(CC) -x c - $(ALL_CFLAGS) -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -ldwarf -lelf -o /dev/null $(ALL_LDFLAGS) > /dev/null 2>&1 && echo y"), y) + msg := $(warning No libdwarf.h found or old libdwarf.h found, disables dwarf support. Please install libdwarf-dev/libdwarf-devel >= 20081231); + BASIC_CFLAGS += -DNO_LIBDWARF +else + EXTLIBS += -lelf -ldwarf + LIB_H += util/probe-finder.h + LIB_OBJS += util/probe-finder.o +endif + ifdef NO_DEMANGLE BASIC_CFLAGS += -DNO_DEMANGLE else