Simplify perf target flags. Apparently the event names aren't stable/portable.

This commit is contained in:
Graydon Hoare 2011-09-19 14:55:52 -07:00
parent dd1cf63515
commit 939a9dd738
1 changed files with 1 additions and 20 deletions

View File

@ -35,26 +35,7 @@ ifeq ($(CFG_OSTYPE), Linux)
CFG_LDENV := LD_LIBRARY_PATH
CFG_DEF_SUFFIX := .linux.def
ifdef CFG_PERF
CFG_PERF_TOOL :=\
$(CFG_PERF) \
stat \
-e cycles \
-e instructions \
-e cache-references \
-e cache-misses \
-e branches \
-e branch-misses \
-e bus-cycles \
-e task-clock \
-e page-faults \
-e context-switches \
-e cpu-migrations \
-e kmem:mm_page_alloc \
-e syscalls:sys_enter \
-e sched:sched_switch \
-e fs:do_sys_open \
-i \
-r 3
CFG_PERF_TOOL := $(CFG_PERF) stat -i -r 3
else
ifdef CFG_VALGRIND
CFG_PERF_TOOL :=\