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

attaching to running process not yet implemented #3597

Closed
rkgithubs opened this issue May 8, 2019 · 3 comments
Closed

attaching to running process not yet implemented #3597

rkgithubs opened this issue May 8, 2019 · 3 comments

Comments

@rkgithubs
Copy link

for large applications is there currently a way to attach to running PID on-the-fly. I tried using -attach option with drrun which failed with following message.
./drrun -attach 16601
ERROR: attaching to running processes is not yet implemented

Is there a workaround or alternative which allows for tracing a particular steady-state portion of the application. I can try the -trace_after_instrs option but i need to be sure that instruction count reported by 'perf stat' is consistent with the way dynamoRIO counts retired instructions otherwise we run the risk of tracing wrong part of the application execution. Please advise on a good approach.

@derekbruening
Copy link
Contributor

Duplicate of #38, #725
Xref PR #3328 which adds attach but is not yet merged.

Internally-triggered attach (dr_app_start()) is supported today.

@derekbruening
Copy link
Contributor

#3107 is the feature request for tracing boundary marking in the app

@derekbruening
Copy link
Contributor

Internally-triggered is how most current users have been doing this. #3328 should be easy to finish up however.

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

2 participants