From 939a9dd738e2766eea7d3e012350c0484cda5fbb Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Mon, 19 Sep 2011 14:55:52 -0700 Subject: [PATCH] Simplify perf target flags. Apparently the event names aren't stable/portable. --- mk/platform.mk | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/mk/platform.mk b/mk/platform.mk index 123d2d99bd61..001ba43c28ec 100644 --- a/mk/platform.mk +++ b/mk/platform.mk @@ -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 :=\