Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9f001ec3563637d0b71d1547b4965105634a44a1
Ticket: 1793984fffffffffffffffffffffffffffffffff
Tcl DTrace provider
User & Date: das on 2007-09-26 08:41:02
Changes

  1. closedate changed to: "2007-09-26T01:41:02"
  2. closer changed to: "das"
  3. icomment:
    Logged In: YES 
    user_id=90580
    Originator: YES
    
    I have documented the DTrace support on the wiki at 
    http://wiki.tcl.tk/DTrace
    This page also has a 'Discussion' section at the bottom, I am closing this
    tracker item now that the patch has been committed.
    
    sdeasey:
    - the proc-, cmd-, inst- and tcl- probe macros only make sense to use at the tcl-internal probe-sites, so there are no plans to make these publicly available.
    - to get obj- probes for your extension, use public object allocation/deallocation API, or include tclInt.h with USE_DTRACE defined (and ensure your link step is dtrace aware). However, the details of the DTrace obj- probe implementations in tclInt.h should be considered subject to change (as with all internal API).
    - nothing prevents you from using the standard DTRACE_PROBE/DTRACE_PROBE1 etc. macros from <sys/sdt.h> in your extensions, I don't see the value gained from adding TCL_* macro wrappers to these, especially since the tcl provider is not using them itself (and does not include <sys/sdt.h>, it uses probe macros generated by 'dtrace -h').
    - I do not develop on linux and so have no plans to implement systemtap support, but other tcl maintainers might. It does not look like systemtap has something equivalent to USDT in DTrace yet?
    - the internal details of the current implementation should be adaptable to support other tracing mechanisms, the only exported facility is [tcl::dtrace], I do not see a major problem with the DTrace specific name, e.g. systemtap tracing could define [tcl::systemtap] and init.tcl could then define a generic [interp alias] such as [tcl::probe] to whichever one is available (or to the empty proc if neither is). This would allow script-level detection of tracing support via [info commands] in addition to having a generic command for probe triggering from tcl.
    
    
    
  4. login: "das"
  5. mimetype: "text/plain"
  6. resolution changed to: "Fixed"
  7. status changed to: "Closed"
  8. username: "das"