RtsFlags.TraceFlags.sched = rtsFalse;
#ifdef USE_PAPI
- RtsFlags.PapiFlags.eventType = PAPI_FLAG_BRANCH;
+ /* By default no special measurements taken */
+ RtsFlags.PapiFlags.eventType = 0;
#endif
}
" 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.",
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] );
}