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

handle mmap and custom allocator #16

Open
11 tasks
ampotos opened this issue Aug 25, 2016 · 1 comment
Open
11 tasks

handle mmap and custom allocator #16

ampotos opened this issue Aug 25, 2016 · 1 comment

Comments

@ampotos
Copy link
Owner

ampotos commented Aug 25, 2016

Today dynStruct can only wrap malloc/calloc/realloc and free as memory managment function. It is possible to wrap this functions in another lib than the LibC via the "-a" option but they have to have the same args/return then the libC's fucntions.

Begin able to handle mmap and custom allocator will be a very good feature and will help do handle other languages memory managment system.

  • Defining description of memory managment function
  • implment parsing of this description
  • wrap function as describe in the description in the data gatherer
  • Write doc of the description
  • Allow descrition to use binary file addresses instead of name for stripped custom allocator

Descriptions to write:

  • libC functions
  • Cpp functions
  • Rust functions
  • Go functions
  • mmap
  • brk (for old style allcoator)
@ampotos
Copy link
Owner Author

ampotos commented Mar 13, 2018

If libstdc++.so is monitored it's actually possible to see all allocation made by new (which call malloc).

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

No branches or pull requests

1 participant