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

Add a basic Function call tracer to LogMaker #9

Open
7 tasks
R3x opened this issue Apr 13, 2020 · 5 comments
Open
7 tasks

Add a basic Function call tracer to LogMaker #9

R3x opened this issue Apr 13, 2020 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@R3x
Copy link
Member

R3x commented Apr 13, 2020

Function call tracer

  • Iterate through the entire program and get details on all the function calls
  • Get function arguments for each call
  • Sort whether each call is a library call or a user defined call
  • Store addresses of each function call
  • Store statistics of each function call (ie how many times is it called)
  • Sort function calls - by callee functions
  • Mark out common arguments for multiple functions - (It can help us figure out some pattern)
@R3x R3x added the enhancement New feature or request label Apr 13, 2020
@Freakston
Copy link
Member

Freakston commented Apr 17, 2020

The Initial version of the LogMaker is done which goes through the given binary and prints out all the functions. The data from pin is parsed into the following format. In the below picture the input is a simple ptrace check binary.

image

The following have been implemented -

  • Iterate through the entire program and get details on all the function calls
  • Store statistics of each function call (ie how many times is it called)

The following are partially implemented -

  • Get function arguments for each call
  • Store addresses of each function call

The files have been pushed onto my forked repo and will be sending a PR with the final files soon.

@R3x
Copy link
Member Author

R3x commented Apr 17, 2020

Looks good @Freakston! Send the PR and I will review. Attach a gist containing the results with the PR.

@Freakston
Copy link
Member

Freakston commented Apr 22, 2020

#20. Sent a PR. Will be sending a Makefile soon. @ais2397

@Freakston
Copy link
Member

@pranjalsingh008 lets use the branch FuncTrace for working on this issue.

@Freakston
Copy link
Member

PR related to this issue #28

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

No branches or pull requests

4 participants