Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inaccurate Cache Miss Analysis when dumping prefetching hints for multi-process applications in online mode #6905

Open
jin11109 opened this issue Aug 1, 2024 · 0 comments

Comments

@jin11109
Copy link
Contributor

jin11109 commented Aug 1, 2024

In the current approach, when dumping prefetching hints for multi-process applications in online mode, it considers all cache misses caused by the same PC across different PIDs. These cache misses could also be spread across page tables maintained by multiple processes. This could potentially lead to incorrect stride calculations and misleading analysis results.

reproduce the behavior:

bin64/drrun -t drmemtrace -tool miss_analyzer -LL_miss_file rec.csv -- gimp

In this scenario, GIMP operates as a multi-process program and actual executions can record different PIDs in memref. However, the function dynamorio::drmemtrace::cache_miss_stats_t::dump_miss() only retains the PC and address information and does not take into account the presence of multiple PIDs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant