Skip to content

Commit 939a9dd

Browse files
committed
Simplify perf target flags. Apparently the event names aren't stable/portable.
1 parent dd1cf63 commit 939a9dd

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

mk/platform.mk

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,26 +35,7 @@ ifeq ($(CFG_OSTYPE), Linux)
3535
CFG_LDENV := LD_LIBRARY_PATH
3636
CFG_DEF_SUFFIX := .linux.def
3737
ifdef CFG_PERF
38-
CFG_PERF_TOOL :=\
39-
$(CFG_PERF) \
40-
stat \
41-
-e cycles \
42-
-e instructions \
43-
-e cache-references \
44-
-e cache-misses \
45-
-e branches \
46-
-e branch-misses \
47-
-e bus-cycles \
48-
-e task-clock \
49-
-e page-faults \
50-
-e context-switches \
51-
-e cpu-migrations \
52-
-e kmem:mm_page_alloc \
53-
-e syscalls:sys_enter \
54-
-e sched:sched_switch \
55-
-e fs:do_sys_open \
56-
-i \
57-
-r 3
38+
CFG_PERF_TOOL := $(CFG_PERF) stat -i -r 3
5839
else
5940
ifdef CFG_VALGRIND
6041
CFG_PERF_TOOL :=\

0 commit comments

Comments
 (0)