Commit d1912c7
authored
i#4138 samples: clarify why instrace does not expand REP string instructions (#7789)
Document the rationale for not expanding REP-prefixed string instructions
in the instrace sample clients.
instrace is a simple instruction tracer focused on instruction fetches,
not per-iteration memory accesses. Expanding REP would emit multiple
consecutive instances of the same instruction, which is often confusing
in instrace output and differs from tools like perf that count only a
single instance.
Emulation-aware expansion of REP and scatter/gather instructions
requires consuming emulation metadata via drmgr_orig_app_instr_for_fetch() and
drmgr_orig_app_instr_for_operands(), as done in memtrace.
That complexity is intentionally avoided in instrace and left to emulation-aware
samples.
Fixes #4138.1 parent eb8c0c7 commit d1912c7
2 files changed
+29
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
212 | 226 | | |
213 | 227 | | |
214 | 228 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
252 | 267 | | |
253 | 268 | | |
254 | 269 | | |
| |||
0 commit comments