Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Nov 2022 18:19:16 +0100
From:      Mateusz Piotrowski <0mp@FreeBSD.org>
To:        freebsd-dtrace@freebsd.org
Subject:   In DTrace, why does timestamp increase after a call to chill() but vtimestamp and walltimestamp do not?
Message-ID:  <F2030DBF-E15F-40BB-90D8-394EF6331FDC@FreeBSD.org>

index | next in thread | raw e-mail

[-- Attachment #1 --]
Hello all,

I'd like to understand why calling chill() in a DTrace action block increases the timestampvariable, but not vtimestamp and walltimestamp.
Here's an example showing timestamp increasing after a call to chill():

        # dtrace -w -c true -n 'pid$target:::entry {self->t = $1; chill(1); printf("%d\n", $1 - self->t);}' timestamp
        dtrace: description 'pid$target:::entry ' matched 3082 probes
        dtrace: allowing destructive actions
        dtrace: pid 6734 has exited
        CPU     ID                    FUNCTION:NAME
          5  83475          _r_debug_postinit:entry 11258
        
          5  85771                     atexit:entry 2218
        
          5  86468              __libc_atexit:entry 491
        
          5  86428                       exit:entry 441
        
          5  85397    __cxa_thread_call_dtors:entry 441
        
          5  86213             __cxa_finalize:entry 447
        
          5  86213             __cxa_finalize:entry 565
        
          5  83470            _rtld_addr_phdr:entry 454
        
          5  86213             __cxa_finalize:entry 431
        
          5  83470            _rtld_addr_phdr:entry 1645
        
          5  84405                      _exit:entry 432

If we run the same script but use walltimestamp (or vtimestamp), we'll see the counter did not increase:

        # dtrace -w -c true -n 'pid$target:::entry {self->t = $1; chill(1); printf("%d\n", $1 - self->t);}' walltimestamp
        dtrace: description 'pid$target:::entry ' matched 3082 probes
        dtrace: allowing destructive actions
        dtrace: pid 6707 has exited
        CPU     ID                    FUNCTION:NAME
          4  83475          _r_debug_postinit:entry 0
        
          4  85771                     atexit:entry 0
        
          4  86468              __libc_atexit:entry 0
        
          4  86428                       exit:entry 0
        
          4  85397    __cxa_thread_call_dtors:entry 0
        
          4  86213             __cxa_finalize:entry 0
        
          4  86213             __cxa_finalize:entry 0
        
          4  83470            _rtld_addr_phdr:entry 0
        
          4  86213             __cxa_finalize:entry 0
        
          4  83470            _rtld_addr_phdr:entry 0
        
          4  84405                      _exit:entry 0

This is understandable for vtimestamp, as it does not increase when executing DTrace code, but I don't understand walltimestamp's behavior here.

I'm running FreeBSD 13.1-RELEASE-p1 here on amd64.

Best,
Mateusz
[-- Attachment #2 --]
<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">Hello all,</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class=""><br class=""></span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">I'd like to understand why calling chill() in a DTrace action block increases the timestampvariable, but not vtimestamp and walltimestamp.</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">Here's an example showing timestamp increasing after a call to chill():</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class=""><br class=""></span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp; # dtrace -w -c true -n 'pid$target:::entry {self-&gt;t = $1; chill(1); printf("%d\n", $1 - self-&gt;t);}' timestamp</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp; dtrace: description 'pid$target:::entry ' matched 3082 probes</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp; dtrace: allowing destructive actions</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp; dtrace: pid 6734 has exited</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp; CPU &nbsp; &nbsp; ID &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FUNCTION:NAME</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 5 &nbsp;83475 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_r_debug_postinit:entry 11258</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 5 &nbsp;85771 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; atexit:entry 2218</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 5 &nbsp;86468 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;__libc_atexit:entry 491</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 5 &nbsp;86428 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit:entry 441</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 5 &nbsp;85397 &nbsp; &nbsp;__cxa_thread_call_dtors:entry 441</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 5 &nbsp;86213 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; __cxa_finalize:entry 447</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 5 &nbsp;86213 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; __cxa_finalize:entry 565</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 5 &nbsp;83470 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_rtld_addr_phdr:entry 454</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 5 &nbsp;86213 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; __cxa_finalize:entry 431</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 5 &nbsp;83470 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_rtld_addr_phdr:entry 1645</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 5 &nbsp;84405 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_exit:entry 432</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class=""><br class=""></span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">If we run the same script but use walltimestamp (or vtimestamp), we'll see the counter did not increase:</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class=""><br class=""></span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp; # dtrace -w -c true -n 'pid$target:::entry {self-&gt;t = $1; chill(1); printf("%d\n", $1 - self-&gt;t);}' walltimestamp</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp; dtrace: description 'pid$target:::entry ' matched 3082 probes</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp; dtrace: allowing destructive actions</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp; dtrace: pid 6707 has exited</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp; CPU &nbsp; &nbsp; ID &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FUNCTION:NAME</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4 &nbsp;83475 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_r_debug_postinit:entry 0</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4 &nbsp;85771 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; atexit:entry 0</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4 &nbsp;86468 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;__libc_atexit:entry 0</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4 &nbsp;86428 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit:entry 0</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4 &nbsp;85397 &nbsp; &nbsp;__cxa_thread_call_dtors:entry 0</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4 &nbsp;86213 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; __cxa_finalize:entry 0</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4 &nbsp;86213 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; __cxa_finalize:entry 0</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4 &nbsp;83470 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_rtld_addr_phdr:entry 0</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4 &nbsp;86213 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; __cxa_finalize:entry 0</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4 &nbsp;83470 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_rtld_addr_phdr:entry 0</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4 &nbsp;84405 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_exit:entry 0</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class=""><br class=""></span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">This is understandable for vtimestamp, as it does not increase when executing DTrace code, but I don't understand walltimestamp's behavior here.</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class=""><br class=""></span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">I'm running FreeBSD 13.1-RELEASE-p1 here on amd64.</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class=""><br class=""></span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">Best,</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: var(--s-prose-spacing); margin-left: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; clear: both;" class=""><font color="#232629" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" class=""><span style="caret-color: rgb(35, 38, 41); font-size: 15px;" class="">Mateusz</span></font></div></div></body></html>
help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F2030DBF-E15F-40BB-90D8-394EF6331FDC>