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 DR feature to retrieve app cmdline and use in Dr. Memory #178

Open
derekbruening opened this issue Nov 28, 2014 · 2 comments
Open

add DR feature to retrieve app cmdline and use in Dr. Memory #178

derekbruening opened this issue Nov 28, 2014 · 2 comments

Comments

@derekbruening
Copy link
Contributor

From derek.br...@gmail.com on December 10, 2010 17:58:17

PR 524040

xref PR 363063
can retrieve via VSI_NODE_userworld_cartel_cmdline

also update results.txt header from PR 470920 on what was run w/ what was
actually run (today it's wrong for post-exec children).
client can provide that now so can remove from postprocess.

Original issue: http://code.google.com/p/drmemory/issues/detail?id=178

@derekbruening
Copy link
Contributor Author

From bruen...@google.com on February 17, 2013 08:19:47

DrMem is listing the cmdline in results.txt on Windows today via it sown get_app_commandline(). This issue covers adding a DR routine to provide in on both Windows and Linux.

Labels: GoodContrib GoodFirstBug

@derekbruening
Copy link
Contributor Author

From dtouc...@gmail.com on May 14, 2013 15:48:39

I believe the existing get_app_commandline() for Windows can be included in dynamorio easily. As for linux, we can call ps, or we can parse /proc//cmdline, but the file is null byte delimited and we need some clunky C as the one attached. I will try to test this in report.c and I will report back.

Attachment: get_app_commandline_linux.c

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