projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
optimisation: shortcut branches when possible (x86/x86_64 only for now)
[ghc-hetmet.git]
/
rts
/
RtsFlags.c
diff --git
a/rts/RtsFlags.c
b/rts/RtsFlags.c
index
ddc1928
..
d818e77
100644
(file)
--- a/
rts/RtsFlags.c
+++ b/
rts/RtsFlags.c
@@
-463,6
+463,7
@@
usage_text[] = {
" 2 - level 2 cache misses",
" b - branch mispredictions",
" s - stalled cycles",
" 2 - level 2 cache misses",
" b - branch mispredictions",
" s - stalled cycles",
+" e - cache miss and branch misprediction events",
#endif
"",
"RTS options may also be specified using the GHCRTS environment variable.",
#endif
"",
"RTS options may also be specified using the GHCRTS environment variable.",
@@
-677,6
+678,9
@@
error = rtsTrue;
case 's':
RtsFlags.PapiFlags.eventType = PAPI_FLAG_STALLS;
break;
case 's':
RtsFlags.PapiFlags.eventType = PAPI_FLAG_STALLS;
break;
+ case 'e':
+ RtsFlags.PapiFlags.eventType = PAPI_FLAG_CB_EVENTS;
+ break;
default:
bad_option( rts_argv[arg] );
}
default:
bad_option( rts_argv[arg] );
}