Skip to content

Strace-like functionality #27

Closed
Closed

Description

@ionelmc

Ruby has an very interesting tracer tool: https://github.com/tmm1/rbtrace/

Hunter could have something like that:

  • IPC with SysV queues (tracer would write to the queue, and external process can read from it).
  • Need external activation of tracer. There are two ways to do it:
    • On demand activation:
    • Passive tracer:
      • Tracer is always installed from pth file but I doesn't do anything until someone connects to queue.
      • Need to detects connections to queue. Or use signal to start pushing stuff in queue?
      • Overhead should be ok for CPython, but what about PyPy?
      • It would allow tracing threads too (since tracer can be installed for threads too).

Activity

  1. ionelmc commented on Mar 5, 2016

    @ionelmc
    OwnerAuthor

    If we'd use a signal I'd go with SIGTRAP: https://www.gnu.org/software/coreutils/manual/html_node/Signal-specifications.html (as opposed to rbtrace's SIGURG, also: tmm1/rbtrace#53).

  2. ionelmc commented on Oct 20, 2016

    @ionelmc
    OwnerAuthor
  3. ionelmc commented on Aug 29, 2017

    @ionelmc
    OwnerAuthor
  4. ionelmc commented on Aug 29, 2017

    @ionelmc
    OwnerAuthor

    For queues this seems like the package: http://semanchuk.com/philip/sysv_ipc/ (supports osx too).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions