Bug 412711 - Patch: Add a per-thread simulate flag to Callgrind
Summary: Patch: Add a per-thread simulate flag to Callgrind
Status: REPORTED
Alias: None
Product: valgrind
Classification: Developer tools
Component: callgrind (other bugs)
Version First Reported In: unspecified
Platform: unspecified All
: NOR normal
Target Milestone: ---
Assignee: Josef Weidendorfer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-07 21:34 UTC by Jakob Stoklund Olesen
Modified: 2019-10-07 21:34 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Add a per-thread simulate flag to Callgrind (6.70 KB, application/mbox)
2019-10-07 21:34 UTC, Jakob Stoklund Olesen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jakob Stoklund Olesen 2019-10-07 21:34:26 UTC
Created attachment 123081 [details]
Add a per-thread simulate flag to Callgrind

This patch makes it possible to enable and disable Callgrind's cache simulation on a per-thread basis, just like the collect flag controls event collection per thread. This is useful for example when using Callgrind to profile the memory footprint of embedded code running inside of a larger simulator process. By enabling cache simulation for only the threads doing the interesting work, we can avoid irrelevant threads interfering with the simulated cache.