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

Initial support of unattended mode #430

Merged
merged 2 commits into from
Dec 1, 2020
Merged

Conversation

jbachorik
Copy link
Collaborator

This change allows running BTrace probes in unattended mode when they are not connected to the initiating client.

Having the possibility of running probes in unattended mode comes very handy especially with the recent addition of JFR event support where one can setup a probe to emit custom JFR events and disconnect and leave the application running with the probe applied.

In order to support the unattended execution this PR is adding:

  • the ability to detach from the command line client
  • the ability to deploy the probe in unattended mode (btrace -x <options> <pid> <probe>)
  • the ability to list all active probes which can be attached to (btrace -lp <pid>)
  • the ability to reconnect to a previously disconnected probes (btrace -r <probe id> <pid>) where probe id is assigned (and displayed) when the probe is first time deployed

For disconnected probes there is small message buffers which can hold up to 5000 most recent messages so when reconnecting one can get the most recent history replayed.

@jbachorik jbachorik added this to the 2.1.0 milestone Nov 29, 2020
@jbachorik jbachorik self-assigned this Nov 29, 2020
@jbachorik jbachorik changed the title Initial implementation of client disconnect and reconnect and listing… Initial support of unattended mode Nov 29, 2020
@jbachorik jbachorik merged commit 26815c1 into develop Dec 1, 2020
@jbachorik jbachorik deleted the unattended_execution branch December 1, 2020 14:29
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