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

Addition of example plugin for library call detection and counting. #79

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

joshualant
Copy link

The pull request is for adding an example plugin, showing how you might begin to create an ltrace type tool using MAMBO. It uses libelf to scan the PLT of the application and adds them to a list, checking the untranslated address against the PLT entry. Instructions are added to increment counters in this list when these addresses are hit pre-basic-block. Also contains a placeholder function for scanning the mapped libraries once main is reached, which could be used in order to parse the PLT of the libraries and show library calls within the libraries themselves.

…imes they are called with one level of depth in an application.
…ded mambo_calloc function to plugin_support.c which uses simple memset() to initialize mambo_alloc'd memory to zero. Unsure if this is an acceptably performant solution or not...
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

Successfully merging this pull request may close these issues.

1 participant