From: Ingo Molnar Date: Sun, 15 Nov 2009 08:51:19 +0000 (+0100) Subject: Merge branches 'perf/powerpc' and 'perf/bench' into perf/core X-Git-Tag: v2.6.33-rc1~48^2~288^2~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0ffa798d947f5f5e40690cc9d38e678080a34f87;p=platform%2Fkernel%2Flinux-3.10.git Merge branches 'perf/powerpc' and 'perf/bench' into perf/core Merge reason: Both 'perf bench' and the pending PowerPC changes are now ready for the next merge window. Signed-off-by: Ingo Molnar --- 0ffa798d947f5f5e40690cc9d38e678080a34f87 diff --cc include/linux/perf_event.h index ec3768a,a33707a,45b56fa..df4e73e --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h @@@@ -219,9 -221,8 -219,9 +221,9 @@@@ struct perf_event_attr #define PERF_EVENT_IOC_DISABLE _IO ('$', 1) #define PERF_EVENT_IOC_REFRESH _IO ('$', 2) #define PERF_EVENT_IOC_RESET _IO ('$', 3) --#define PERF_EVENT_IOC_PERIOD _IOW('$', 4, u64) ++#define PERF_EVENT_IOC_PERIOD _IOW('$', 4, __u64) #define PERF_EVENT_IOC_SET_OUTPUT _IO ('$', 5) + #define PERF_EVENT_IOC_SET_FILTER _IOW('$', 6, char *) enum perf_event_ioc_flags { PERF_IOC_FLAG_GROUP = 1U << 0, diff --cc tools/perf/Makefile index e6d4272,742a32e,0a25428..f7cd896 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile @@@@ -200,14 -201,7 -200,14 +200,14 @@@@ EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wo EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wstrict-prototypes EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wdeclaration-after-statement - CFLAGS = $(MBITS) -ggdb3 -Wall -Wextra -std=gnu99 -Werror -O6 -fstack-protector-all -D_FORTIFY_SOURCE=2 $(EXTRA_WARNINGS) + ifeq ("$(origin DEBUG)", "command line") + PERF_DEBUG = $(DEBUG) + endif + ifndef PERF_DEBUG + CFLAGS_OPTIMIZE = -O6 + endif + -CFLAGS = $(MBITS) -ggdb3 -Wall -Wextra -std=gnu99 -Werror $(CFLAGS_OPTIMIZE) -fstack-protector-all -D_FORTIFY_SOURCE=2 $(EXTRA_WARNINGS) ++CFLAGS = $(MBITS) -ggdb3 -Wall -Wextra -std=gnu99 -Werror $(CFLAGS_OPTIMIZE) -D_FORTIFY_SOURCE=2 $(EXTRA_WARNINGS) LDFLAGS = -lpthread -lrt -lelf -lm ALL_CFLAGS = $(CFLAGS) ALL_LDFLAGS = $(LDFLAGS) @@@@ -337,27 -328,8 -334,26 +337,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 += 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/debugfs.h + LIB_H += util/event.h LIB_H += util/types.h LIB_H += util/levenshtein.h LIB_H += util/parse-options.h @@@@ -382,9 -351,7 -378,8 +382,9 @@@@ LIB_OBJS += util/abspath. LIB_OBJS += util/alias.o LIB_OBJS += util/config.o LIB_OBJS += util/ctype.o ++LIB_OBJS += util/debugfs.o LIB_OBJS += util/environment.o + LIB_OBJS += util/event.o LIB_OBJS += util/exec_cmd.o LIB_OBJS += util/help.o LIB_OBJS += util/levenshtein.o @@@@ -416,11 -381,8 -411,18 +416,18 @@@@ LIB_OBJS += util/trace-event-parse. LIB_OBJS += util/trace-event-read.o LIB_OBJS += util/trace-event-info.o LIB_OBJS += util/svghelper.o + LIB_OBJS += util/sort.o + LIB_OBJS += util/hist.o + LIB_OBJS += util/data_map.o BUILTIN_OBJS += builtin-annotate.o ++ ++ BUILTIN_OBJS += builtin-bench.o ++ ++ # Benchmark modules ++ BUILTIN_OBJS += bench/sched-messaging.o ++ BUILTIN_OBJS += bench/sched-pipe.o ++ BUILTIN_OBJS += builtin-help.o BUILTIN_OBJS += builtin-sched.o BUILTIN_OBJS += builtin-list.o diff --cc tools/perf/util/parse-events.c index 097938a,34bd8442,31baa5a..0faf4f2 --- a/tools/perf/util/parse-events.c +++ b/tools/perf/util/parse-events.c @@@@ -7,12 -7,10 -7,11 +7,12 @@@@ #include "string.h" #include "cache.h" #include "header.h" ++#include "debugfs.h" - int nr_counters; + int nr_counters; struct perf_event_attr attrs[MAX_COUNTERS]; + char *filters[MAX_COUNTERS]; struct event_symbol { u8 type;