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>
next in thread | raw e-mail | index | archive | help
--Apple-Mail=_9AFBAE28-2D18-4A94-8979-B2FE01D2F5D1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii 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 =3D $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 =20 5 85771 atexit:entry 2218 =20 5 86468 __libc_atexit:entry 491 =20 5 86428 exit:entry 441 =20 5 85397 __cxa_thread_call_dtors:entry 441 =20 5 86213 __cxa_finalize:entry 447 =20 5 86213 __cxa_finalize:entry 565 =20 5 83470 _rtld_addr_phdr:entry 454 =20 5 86213 __cxa_finalize:entry 431 =20 5 83470 _rtld_addr_phdr:entry 1645 =20 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 =3D $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 =20 4 85771 atexit:entry 0 =20 4 86468 __libc_atexit:entry 0 =20 4 86428 exit:entry 0 =20 4 85397 __cxa_thread_call_dtors:entry 0 =20 4 86213 __cxa_finalize:entry 0 =20 4 86213 __cxa_finalize:entry 0 =20 4 83470 _rtld_addr_phdr:entry 0 =20 4 86213 __cxa_finalize:entry 0 =20 4 83470 _rtld_addr_phdr:entry 0 =20 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= --Apple-Mail=_9AFBAE28-2D18-4A94-8979-B2FE01D2F5D1 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; = charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><div = style=3D"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=3D""><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D"">Hello all,</span></font></div><div = style=3D"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=3D""><font color=3D"#232629" = face=3D"-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, = Liberation Sans, sans-serif" class=3D""><span style=3D"caret-color: = rgb(35, 38, 41); font-size: 15px;" class=3D""><br = class=3D""></span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D"">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=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D"">Here's an example showing timestamp = increasing after a call to chill():</span></font></div><div = style=3D"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=3D""><font color=3D"#232629" = face=3D"-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, = Liberation Sans, sans-serif" class=3D""><span style=3D"caret-color: = rgb(35, 38, 41); font-size: 15px;" class=3D""><br = class=3D""></span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> # dtrace -w -c = true -n 'pid$target:::entry {self->t =3D $1; chill(1); printf("%d\n", = $1 - self->t);}' timestamp</span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> dtrace: = description 'pid$target:::entry ' matched 3082 = probes</span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> dtrace: = allowing destructive actions</span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> dtrace: pid = 6734 has exited</span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> CPU = ID = FUNCTION:NAME</span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> 5 = 83475 _r_debug_postinit:entry = 11258</span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> = </span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> 5 = 85771 = atexit:entry 2218</span></font></div><div = style=3D"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=3D""><font color=3D"#232629" = face=3D"-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, = Liberation Sans, sans-serif" class=3D""><span style=3D"caret-color: = rgb(35, 38, 41); font-size: 15px;" class=3D""> = </span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> 5 = 86468 = __libc_atexit:entry 491</span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> = </span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> 5 = 86428 = exit:entry 441</span></font></div><div = style=3D"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=3D""><font color=3D"#232629" = face=3D"-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, = Liberation Sans, sans-serif" class=3D""><span style=3D"caret-color: = rgb(35, 38, 41); font-size: 15px;" class=3D""> = </span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> 5 = 85397 __cxa_thread_call_dtors:entry = 441</span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> = </span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> 5 = 86213 = __cxa_finalize:entry 447</span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> = </span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> 5 = 86213 = __cxa_finalize:entry 565</span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> = </span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> 5 = 83470 = _rtld_addr_phdr:entry 454</span></font></div><div = style=3D"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=3D""><font color=3D"#232629" = face=3D"-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, = Liberation Sans, sans-serif" class=3D""><span style=3D"caret-color: = rgb(35, 38, 41); font-size: 15px;" class=3D""> = </span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> 5 = 86213 = __cxa_finalize:entry 431</span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> = </span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> 5 = 83470 = _rtld_addr_phdr:entry 1645</span></font></div><div = style=3D"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=3D""><font color=3D"#232629" = face=3D"-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, = Liberation Sans, sans-serif" class=3D""><span style=3D"caret-color: = rgb(35, 38, 41); font-size: 15px;" class=3D""> = </span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> 5 = 84405 = _exit:entry 432</span></font></div><div = style=3D"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=3D""><font color=3D"#232629" = face=3D"-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, = Liberation Sans, sans-serif" class=3D""><span style=3D"caret-color: = rgb(35, 38, 41); font-size: 15px;" class=3D""><br = class=3D""></span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D"">If we run the same script but use = walltimestamp (or vtimestamp), we'll see the counter did not = increase:</span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""><br class=3D""></span></font></div><div = style=3D"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=3D""><font color=3D"#232629" = face=3D"-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, = Liberation Sans, sans-serif" class=3D""><span style=3D"caret-color: = rgb(35, 38, 41); font-size: 15px;" class=3D""> = # dtrace -w -c true -n 'pid$target:::entry {self->t =3D $1; = chill(1); printf("%d\n", $1 - self->t);}' = walltimestamp</span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> dtrace: = description 'pid$target:::entry ' matched 3082 = probes</span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> dtrace: = allowing destructive actions</span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> dtrace: pid = 6707 has exited</span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> CPU = ID = FUNCTION:NAME</span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> 4 = 83475 _r_debug_postinit:entry = 0</span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> = </span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> 4 = 85771 = atexit:entry 0</span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> = </span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> 4 = 86468 = __libc_atexit:entry 0</span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> = </span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> 4 = 86428 = exit:entry 0</span></font></div><div = style=3D"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=3D""><font color=3D"#232629" = face=3D"-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, = Liberation Sans, sans-serif" class=3D""><span style=3D"caret-color: = rgb(35, 38, 41); font-size: 15px;" class=3D""> = </span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> 4 = 85397 __cxa_thread_call_dtors:entry = 0</span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> = </span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> 4 = 86213 = __cxa_finalize:entry 0</span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> = </span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> 4 = 86213 = __cxa_finalize:entry 0</span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> = </span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> 4 = 83470 = _rtld_addr_phdr:entry 0</span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> = </span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> 4 = 86213 = __cxa_finalize:entry 0</span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> = </span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> 4 = 83470 = _rtld_addr_phdr:entry 0</span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> = </span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""> 4 = 84405 = _exit:entry 0</span></font></div><div = style=3D"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=3D""><font color=3D"#232629" = face=3D"-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, = Liberation Sans, sans-serif" class=3D""><span style=3D"caret-color: = rgb(35, 38, 41); font-size: 15px;" class=3D""><br = class=3D""></span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D"">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=3D"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=3D""><font color=3D"#232629" = face=3D"-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, = Liberation Sans, sans-serif" class=3D""><span style=3D"caret-color: = rgb(35, 38, 41); font-size: 15px;" class=3D""><br = class=3D""></span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D"">I'm running FreeBSD 13.1-RELEASE-p1 here on = amd64.</span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" class=3D""><br class=3D""></span></font></div><div = style=3D"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=3D""><font color=3D"#232629" = face=3D"-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, = Liberation Sans, sans-serif" class=3D""><span style=3D"caret-color: = rgb(35, 38, 41); font-size: 15px;" = class=3D"">Best,</span></font></div><div style=3D"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=3D""><font color=3D"#232629" face=3D"-apple-system, = BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, = sans-serif" class=3D""><span style=3D"caret-color: rgb(35, 38, 41); = font-size: 15px;" = class=3D"">Mateusz</span></font></div></div></body></html>= --Apple-Mail=_9AFBAE28-2D18-4A94-8979-B2FE01D2F5D1--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F2030DBF-E15F-40BB-90D8-394EF6331FDC>