page size in offline traces

13 views
Skip to first unread message

Prasun Ratn

unread,
Mar 10, 2023, 11:09:12 AM3/10/23
to DynamoRIO Users
The page size in the offline traces appears to be fixed per trace. Is it possible for a trace to have a mix of page sizes?

Derek Bruening

unread,
Mar 10, 2023, 4:04:53 PM3/10/23
to Prasun Ratn, DynamoRIO Users
If hugepages are in use this is not currently reflected in the trace metadata.  On Linux the procfs smaps file has some information on this that can be gathered but it is not perfect due to lazy allocation and mixed-size regions.  With root privileges the physical frame can be obtained from pagemap and used in kpageflags to get information; the -use_physical flag today looks at pagemap but does not look at kpageflags.

On Fri, Mar 10, 2023 at 11:09 AM Prasun Ratn <prasu...@gmail.com> wrote:
The page size in the offline traces appears to be fixed per trace. Is it possible for a trace to have a mix of page sizes?

--
You received this message because you are subscribed to the Google Groups "DynamoRIO Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dynamorio-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dynamorio-users/CAF6hzxyyX3wsPRWiiC0rnyaNtxQgtgiBf%3DCRUAN693tOwwA-Kw%40mail.gmail.com.

Prasun Ratn

unread,
Mar 11, 2023, 11:40:02 PM3/11/23
to Derek Bruening, DynamoRIO Users
Is there any plan to add support for hugepages?

Derek Bruening

unread,
Mar 12, 2023, 12:33:51 PM3/12/23
to Prasun Ratn, DynamoRIO Users
If you would like to contribute some kind of recording of hugepage data that sounds good: probably best to start with a filed feature issue for discussing how to go about it.
Reply all
Reply to author
Forward
0 new messages