I am trying to evaluate the MPX instrumentation performed by the MPX-enabled gcc. My goal is to count the number of executed instructions like BNDLDX and BNDCU. Currently I found only one way to do that: run SDE with -mpx_trace_ins all and then grep the HUGE resulting text file. The switch -mpx_stats produces statistics which I can not interpret. Do you have any explanations of the output of -mpx_stats?
What I need is something like this:
If curious, here is my current analysis of MPX: https://code.google.com/p/address-sanitizer/wiki/IntelMemoryProtectionExtensions