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

Investigate and possibly implement real-time tracing: qb-blackbox { --pid <PID> | --command <cmd> } #291

Open
jnpkrn opened this issue Jan 24, 2018 · 2 comments

Comments

@jnpkrn
Copy link
Contributor

jnpkrn commented Jan 24, 2018

Currently, there seems to be an opportunity to get on-the-fly stream of messages
temporarily hitting blackbox, enabler being on-disk materialized files.

This would also give an opportunity for a deepest look into the run possible,
beside mere debugging/stracing/probing, which is rather cumbersome for
not so isolated observations.

@kgaillot
Copy link
Contributor

A similar capability is already available using signals: SIGUSR1 starts the collection of data, and SIGTRAP causes a write-out of the blackbox.

@jnpkrn
Copy link
Contributor Author

jnpkrn commented Jan 24, 2018

Thas misses several points:

  • you talk just about pacemaker-specific provision
  • blackbox has a limited capacity whereas stream is possibly
    "endless'
  • may not solve infloop/deadlock problems when signal handling
    will never be served

Compared to big-gun solutions like attaching debugger, this would
save one from active attendance on debugging session, stopping
the process (making the timeouts kick in), expertise required from
the user. This indeed assumes the trace messages are spread
reasonably in the code.

@jnpkrn jnpkrn changed the title Investigate and possibly implement real-time tracing: qb-blackbox { --attach <PID> | --command <cmd> } Investigate and possibly implement real-time tracing: qb-blackbox { --pid <PID> | --command <cmd> } Feb 2, 2018
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

No branches or pull requests

2 participants