Page MenuHomeFreeBSD
Feed Advanced Search

Thu, Nov 6

0mp closed D51287: dtrace_pid.4: Document the DTrace PID provider.
Thu, Nov 6, 10:42 PM · manpages, DTrace

Mon, Nov 3

0mp planned changes to D51396: dtrace_dtmalloc.4: Document the DTrace dtmalloc provider.

I need to add a explanation of malloc types

Mon, Nov 3, 3:45 PM · manpages, DTrace
0mp added inline comments to D51396: dtrace_dtmalloc.4: Document the DTrace dtmalloc provider.
Mon, Nov 3, 2:21 PM · manpages, DTrace

Oct 24 2025

0mp updated the summary of D51287: dtrace_pid.4: Document the DTrace PID provider.
Oct 24 2025, 8:59 PM · manpages, DTrace
0mp updated the diff for D51287: dtrace_pid.4: Document the DTrace PID provider.
  • Wordsmith
Oct 24 2025, 8:58 PM · manpages, DTrace
ziaee added inline comments to D51396: dtrace_dtmalloc.4: Document the DTrace dtmalloc provider.
Oct 24 2025, 8:22 PM · manpages, DTrace
0mp updated the diff for D51396: dtrace_dtmalloc.4: Document the DTrace dtmalloc provider.

Remove password prompt from the example

Oct 24 2025, 8:16 PM · manpages, DTrace
0mp added inline comments to D51396: dtrace_dtmalloc.4: Document the DTrace dtmalloc provider.
Oct 24 2025, 8:14 PM · manpages, DTrace
0mp updated the diff for D51396: dtrace_dtmalloc.4: Document the DTrace dtmalloc provider.
  • address feedback (I answered some of the comments directly or at least marked them as done)
  • sort copyright header
Oct 24 2025, 8:14 PM · manpages, DTrace

Oct 16 2025

christos added a reviewer for D38825: libdtrace: Implement inline function tracing for kinst: emaste.
Oct 16 2025, 10:56 AM · DTrace
christos added a comment to D38825: libdtrace: Implement inline function tracing for kinst.

I have been testing this again recently, and it works fine, at least with the tests I ran. I think we should go ahead and get it into the tree, it's been sitting in review for 3 years almost. releng/15.0 is branched so there is no fear of breaking the release, even though this shouldn't break anything in the first place, it's a kinst-specific change and at worst it won't always yield 100% correct results. Once we have it in tree we can work on remaining issues, but I do not see a point in keeping it here anymore.

Oct 16 2025, 10:56 AM · DTrace

Sep 11 2025

christos abandoned D39259: fbt: Allow tracing of dtrace_test.ko functions.

I think this is subsumed by commit 5bd7b976c1214cd6357b74f491753a331f9b7c99.

Sep 11 2025, 12:12 PM · DTrace

Jul 28 2025

christos added inline comments to D51396: dtrace_dtmalloc.4: Document the DTrace dtmalloc provider.
Jul 28 2025, 2:41 PM · manpages, DTrace

Jul 27 2025

markj added inline comments to D51396: dtrace_dtmalloc.4: Document the DTrace dtmalloc provider.
Jul 27 2025, 1:57 PM · manpages, DTrace

Jul 22 2025

christos added inline comments to D51396: dtrace_dtmalloc.4: Document the DTrace dtmalloc provider.
Jul 22 2025, 2:29 AM · manpages, DTrace

Jul 18 2025

yan.jurak_gmail.com removed a watcher for DTrace: yan.jurak_gmail.com.
Jul 18 2025, 9:03 PM

Jul 17 2025

0mp added inline comments to D51396: dtrace_dtmalloc.4: Document the DTrace dtmalloc provider.
Jul 17 2025, 9:01 PM · manpages, DTrace
0mp updated the diff for D51396: dtrace_dtmalloc.4: Document the DTrace dtmalloc provider.
  • UMA -> uma
Jul 17 2025, 9:00 PM · manpages, DTrace
0mp added reviewers for D51396: dtrace_dtmalloc.4: Document the DTrace dtmalloc provider: bnovkov, markj, christos.
Jul 17 2025, 8:58 PM · manpages, DTrace

Jul 16 2025

0mp closed D50922: dtrace_fbt.4: Document the DTrace fbt provider.

Closed via 9388c2887817d7162ebb356b39aa9b4ab67a8c00.

Jul 16 2025, 10:31 AM · DTrace

Jul 15 2025

0mp added a comment to D51315: vfs_cache: Fix the SDT definition of vfs:fplookup:lookup:done.

Thanks, Mark!

Jul 15 2025, 9:19 PM · DTrace
0mp closed D51315: vfs_cache: Fix the SDT definition of vfs:fplookup:lookup:done.
Jul 15 2025, 9:08 PM · DTrace
markj accepted D51315: vfs_cache: Fix the SDT definition of vfs:fplookup:lookup:done.
Jul 15 2025, 8:31 PM · DTrace
0mp updated the diff for D51315: vfs_cache: Fix the SDT definition of vfs:fplookup:lookup:done.
  • Add the enum to the definition
Jul 15 2025, 8:24 PM · DTrace
0mp abandoned D51328: libdtrace: Add vfs.d and define enum cache_fpl_status values there.

Great! Thanks for explaining, Mark :)

Jul 15 2025, 3:43 PM · DTrace
markj added a comment to D51328: libdtrace: Add vfs.d and define enum cache_fpl_status values there.

Please don't commit this. It's not necessary, and you're just hard-coding internal values from the kernel. The fplookup result status number is just an implementation detail and isn't part of any stable interface.

Jul 15 2025, 3:41 PM · DTrace
markj added a comment to D51315: vfs_cache: Fix the SDT definition of vfs:fplookup:lookup:done.
In D51315#1172217, @0mp wrote:

Another side note: wouldn't it be nice to create a vfs.d in /usr/lib/dtrace so that we could use the actual enum for arg2 instead of integers? The enum would be:

Just change the type from int to enum cache_fpl_status in the probe definition, and it'll work. dtrace knows about enum names since they're encoded in CTF info.

ah, so the actual fix should be:

SDT_PROBE_DEFINE3(vfs, fplookup, lookup, done, "struct nameidata *", "enum cache_fpl_status", "bool");

do I understand correctly?

I'm not sure if that would work. DTrace seems to not know about the the constants like CACHE_FPL_STATUS_DESTROYED at all. How would the type change fix that? I'll try that later. Maybe DTrace does some magic that makes it work.

Jul 15 2025, 3:38 PM · DTrace
0mp added a comment to D51315: vfs_cache: Fix the SDT definition of vfs:fplookup:lookup:done.

Alternatively, I've opened another revision that adds the enum to libdtrace/vfs.d, but I suspect that this is not the right fix based on Mark's last comment.

Jul 15 2025, 3:30 PM · DTrace
0mp added a comment to D51315: vfs_cache: Fix the SDT definition of vfs:fplookup:lookup:done.

Another side note: wouldn't it be nice to create a vfs.d in /usr/lib/dtrace so that we could use the actual enum for arg2 instead of integers? The enum would be:

Just change the type from int to enum cache_fpl_status in the probe definition, and it'll work. dtrace knows about enum names since they're encoded in CTF info.

Jul 15 2025, 3:29 PM · DTrace
0mp updated the test plan for D51328: libdtrace: Add vfs.d and define enum cache_fpl_status values there.
Jul 15 2025, 3:25 PM · DTrace
markj accepted D51315: vfs_cache: Fix the SDT definition of vfs:fplookup:lookup:done.

Another side note: wouldn't it be nice to create a vfs.d in /usr/lib/dtrace so that we could use the actual enum for arg2 instead of integers? The enum would be:

Jul 15 2025, 3:09 PM · DTrace
0mp edited reviewers for D51315: vfs_cache: Fix the SDT definition of vfs:fplookup:lookup:done, added: christos; removed: chris_cretaforce.gr.
Jul 15 2025, 3:03 PM · DTrace
0mp updated the test plan for D51315: vfs_cache: Fix the SDT definition of vfs:fplookup:lookup:done.
Jul 15 2025, 3:03 PM · DTrace
ziaee accepted D50922: dtrace_fbt.4: Document the DTrace fbt provider.

We can of course fix them later, but I did send a mail asking about how we write the synopsis. These SYNOPSIS(es?) do introduce bugs in apropos results.

Jul 15 2025, 1:19 PM · DTrace
christos accepted D50922: dtrace_fbt.4: Document the DTrace fbt provider.
Jul 15 2025, 1:11 PM · DTrace
0mp updated the diff for D50922: dtrace_fbt.4: Document the DTrace fbt provider.
  • Pet mdoc linters
Jul 15 2025, 12:13 AM · DTrace
0mp added inline comments to D50922: dtrace_fbt.4: Document the DTrace fbt provider.
Jul 15 2025, 12:09 AM · DTrace
0mp updated the diff for D50922: dtrace_fbt.4: Document the DTrace fbt provider.
  • Address Christos' feedback
Jul 15 2025, 12:09 AM · DTrace

Jul 14 2025

0mp planned changes to D50922: dtrace_fbt.4: Document the DTrace fbt provider.
Jul 14 2025, 5:01 PM · DTrace
0mp closed D51268: d.7: Document the DTrace scripting language.
Jul 14 2025, 1:02 PM · docs, DTrace
0mp added a comment to D51268: d.7: Document the DTrace scripting language.

Thanks!

Jul 14 2025, 1:02 PM · docs, DTrace
christos accepted D51268: d.7: Document the DTrace scripting language.
Jul 14 2025, 12:26 PM · docs, DTrace
0mp added inline comments to D51268: d.7: Document the DTrace scripting language.
Jul 14 2025, 12:21 PM · docs, DTrace
0mp updated the diff for D51268: d.7: Document the DTrace scripting language.
  • Capitalize descriptions of aggregation functions
Jul 14 2025, 12:21 PM · docs, DTrace
0mp closed D51267: dtrace_dtrace.4: Document the DTrace dtrace provider.
Jul 14 2025, 12:19 PM · docs, DTrace
christos added inline comments to D51268: d.7: Document the DTrace scripting language.
Jul 14 2025, 12:17 PM · docs, DTrace
0mp added a comment to D51268: d.7: Document the DTrace scripting language.

@ziaee, could you check the apropos(1) compliance? ;)

Jul 14 2025, 12:12 PM · docs, DTrace
0mp updated the diff for D51268: d.7: Document the DTrace scripting language.
  • Address feedback
Jul 14 2025, 12:11 PM · docs, DTrace

Jul 13 2025

christos accepted D51267: dtrace_dtrace.4: Document the DTrace dtrace provider.

I haven't checked mandoc -Tlint, but make sure there are no errors there as well.

Jul 13 2025, 4:29 PM · docs, DTrace
0mp added a comment to D51267: dtrace_dtrace.4: Document the DTrace dtrace provider.

Thanks!

Jul 13 2025, 4:27 PM · docs, DTrace
0mp updated the diff for D51267: dtrace_dtrace.4: Document the DTrace dtrace provider.
  • Address feedback
Jul 13 2025, 4:27 PM · docs, DTrace
0mp updated the diff for D51267: dtrace_dtrace.4: Document the DTrace dtrace provider.
  • Address bcr's comments
Jul 13 2025, 4:24 PM · docs, DTrace
0mp updated the diff for D51268: d.7: Document the DTrace scripting language.
  • Add bcr's comments
Jul 13 2025, 4:12 PM · docs, DTrace
0mp updated the diff for D50922: dtrace_fbt.4: Document the DTrace fbt provider.
  • Apply bcr's comments
Jul 13 2025, 3:58 PM · DTrace
christos added inline comments to D51267: dtrace_dtrace.4: Document the DTrace dtrace provider.
Jul 13 2025, 3:04 PM · docs, DTrace
christos added inline comments to D50922: dtrace_fbt.4: Document the DTrace fbt provider.
Jul 13 2025, 2:59 PM · DTrace
christos added inline comments to D51268: d.7: Document the DTrace scripting language.
Jul 13 2025, 2:40 PM · docs, DTrace
0mp updated the diff for D50922: dtrace_fbt.4: Document the DTrace fbt provider.
  • Fix a typo in Example 1
Jul 13 2025, 2:20 PM · DTrace
0mp updated the summary of D51287: dtrace_pid.4: Document the DTrace PID provider.
Jul 13 2025, 2:17 PM · manpages, DTrace
0mp updated the diff for D51267: dtrace_dtrace.4: Document the DTrace dtrace provider.
  • Fix ERROR's args (arg0 should not be documented; real arguments are arg1-arg5)
  • Expand example 2
Jul 13 2025, 10:08 AM · docs, DTrace

Jul 12 2025

0mp updated the diff for D51268: d.7: Document the DTrace scripting language.
  • Document execargs
  • Add a note what execname is.
Jul 12 2025, 3:46 PM · docs, DTrace
0mp updated the diff for D51268: d.7: Document the DTrace scripting language.
  • Move cwd to BUGS and mention that it is not supported at the moment.
Jul 12 2025, 3:09 PM · docs, DTrace
0mp updated the diff for D51268: d.7: Document the DTrace scripting language.
  • Address bcr's feedback
  • Reference ddb(4) as the kernel debugger, not kgdb
Jul 12 2025, 2:18 PM · docs, DTrace
0mp added a project to D51267: dtrace_dtrace.4: Document the DTrace dtrace provider: docs.
Jul 12 2025, 2:10 PM · docs, DTrace
0mp updated the summary of D51268: d.7: Document the DTrace scripting language.
Jul 12 2025, 1:51 PM · docs, DTrace
0mp updated the diff for D51267: dtrace_dtrace.4: Document the DTrace dtrace provider.
  • Use SPDX
Jul 12 2025, 9:27 AM · docs, DTrace
0mp updated the diff for D51268: d.7: Document the DTrace scripting language.

Finish the first draft.

Jul 12 2025, 9:22 AM · docs, DTrace
bcr added a comment to D51268: d.7: Document the DTrace scripting language.

A few minor things, the rest looks fine.

Jul 12 2025, 8:59 AM · docs, DTrace
0mp added inline comments to D51268: d.7: Document the DTrace scripting language.
Jul 12 2025, 7:28 AM · docs, DTrace
0mp updated the diff for D51268: d.7: Document the DTrace scripting language.
  • Improve Nd
Jul 12 2025, 7:28 AM · docs, DTrace

Jul 11 2025

ziaee added inline comments to D51268: d.7: Document the DTrace scripting language.
Jul 11 2025, 8:58 PM · docs, DTrace
ziaee added inline comments to D51267: dtrace_dtrace.4: Document the DTrace dtrace provider.
Jul 11 2025, 8:56 PM · docs, DTrace
0mp added a project to D51268: d.7: Document the DTrace scripting language: DTrace.
Jul 11 2025, 8:45 PM · docs, DTrace
0mp added a project to D50922: dtrace_fbt.4: Document the DTrace fbt provider: DTrace.
Jul 11 2025, 8:36 PM · DTrace
0mp added a project to D51267: dtrace_dtrace.4: Document the DTrace dtrace provider: DTrace.
Jul 11 2025, 8:36 PM · docs, DTrace

Jul 7 2025

markj closed D51188: dtrace: fix symbol address resolving.
Jul 7 2025, 8:17 PM · DTrace
markj added a comment to D51188: dtrace: fix symbol address resolving.

@markj I found that we should also delete st_value = 0 in dt_module_symsort32/64(), otherwise dmp->dm_aslen would always be lesser than dmp->dm_asrsv by at least one. As a result, dt_module_symsort32/64() ignore the last element in dmp->dm_asmap and dt_module_symaddr32/64() wouldn't find it. I had to update the patch accordingly. Sorry for interrupting the test suite procedure.

Jul 7 2025, 6:52 PM · DTrace
markj added a comment to D51188: dtrace: fix symbol address resolving.

@markj I found that we should also delete st_value = 0 in dt_module_symsort32/64(), otherwise dmp->dm_aslen would always be lesser than dmp->dm_asrsv by at least one. As a result, dt_module_symsort32/64() ignore the last element in dmp->dm_asmap and dt_module_symaddr32/64() wouldn't find it. I had to update the patch accordingly. Sorry for interrupting the test suite procedure.

Jul 7 2025, 6:41 PM · DTrace
zldrobit_gmail.com updated the diff for D51188: dtrace: fix symbol address resolving.

@markj I found that we should also delete st_value = 0 in dt_module_symsort32/64(), otherwise dmp->dm_aslen would always be lesser than dmp->dm_asrsv by at least one. As a result, dt_module_symsort32/64() ignore the last element in dmp->dm_asmap and dt_module_symaddr32/64() wouldn't find it. I had to update the patch accordingly. Sorry for interrupting the test suite procedure.

Jul 7 2025, 6:20 PM · DTrace
markj accepted D51188: dtrace: fix symbol address resolving.

I'll commit this once I've gone through the test suite.

Jul 7 2025, 4:56 PM · DTrace
zldrobit_gmail.com added a comment to D51188: dtrace: fix symbol address resolving.

@avg Sure, I recreated the patch with the -U999 option.

Jul 7 2025, 3:58 PM · DTrace
zldrobit_gmail.com updated the diff for D51188: dtrace: fix symbol address resolving.

The patch is updated:

  1. Delete sym->st_value != 0 in dt_module_syminit32().
  2. Generate patch file with -U999 option.
Jul 7 2025, 3:51 PM · DTrace
markj added a comment to D51188: dtrace: fix symbol address resolving.

This change looks reasonable to me. I think the problem with st_value = 0 only applies to ET_REL KLDs.

Jul 7 2025, 2:45 PM · DTrace
avg added a comment to D51188: dtrace: fix symbol address resolving.

@zldrobit_gmail.com if you cannot submit the change for review from Git (e.g., using git-arc), can you update it with a diff created with -U999 option?

Jul 7 2025, 1:03 PM · DTrace
zldrobit_gmail.com requested review of D51188: dtrace: fix symbol address resolving.
Jul 7 2025, 7:34 AM · DTrace

Jul 1 2025

christos added a comment to D38825: libdtrace: Implement inline function tracing for kinst.

Bump.

Jul 1 2025, 3:48 PM · DTrace

May 23 2025

christos added a comment to D38825: libdtrace: Implement inline function tracing for kinst.

I will spend some time testing this again within a week. My recollection from last time is that there were some edge cases where probes didn't fire when I expected. One thing I didn't test yet but am a bit suspicious will not work properly is stack unwinding -- did you test that the stack() action prints reasonable output when used within an inline function probe?

I will test it in the following days.

May 23 2025, 6:38 PM · DTrace

May 5 2025

christos added a comment to D38825: libdtrace: Implement inline function tracing for kinst.

I will spend some time testing this again within a week. My recollection from last time is that there were some edge cases where probes didn't fire when I expected. One thing I didn't test yet but am a bit suspicious will not work properly is stack unwinding -- did you test that the stack() action prints reasonable output when used within an inline function probe?

May 5 2025, 2:00 PM · DTrace

Apr 15 2025

markj added a comment to D39259: fbt: Allow tracing of dtrace_test.ko functions.

I think this is subsumed by commit 5bd7b976c1214cd6357b74f491753a331f9b7c99.

Apr 15 2025, 7:22 PM · DTrace
domagoj.stolfa_gmail.com accepted D39259: fbt: Allow tracing of dtrace_test.ko functions.
Apr 15 2025, 6:50 PM · DTrace
markj added a comment to D38825: libdtrace: Implement inline function tracing for kinst.

I will spend some time testing this again within a week. My recollection from last time is that there were some edge cases where probes didn't fire when I expected. One thing I didn't test yet but am a bit suspicious will not work properly is stack unwinding -- did you test that the stack() action prints reasonable output when used within an inline function probe?

Apr 15 2025, 6:16 PM · DTrace
domagoj.stolfa_gmail.com requested changes to D38825: libdtrace: Implement inline function tracing for kinst.

After some testing, this generally works fine for me. As per our chat on IRC, one thing I'd quite like before this lands are two additional tests in dtrace_test, one for a simple tail call and one for tail recursion which is unrolled into a loop (both should be achievable via __attribute__((musttail)), though I'm not 100% clear on how to ensure that you get the desired loop unrolling behaviour for recursion. See https://clang.llvm.org/docs/AttributeReference.html#musttail for more details). Even if they don't necessarily pass, I think it's OK to land this and simply fix the tail calls later as the state of things with this change would still improve over what's currently there.

Apr 15 2025, 3:08 PM · DTrace

Apr 7 2025

christos added a comment to D38825: libdtrace: Implement inline function tracing for kinst.

tinderbox build on the cluster done with no errors.

Apr 7 2025, 10:48 PM · DTrace

Mar 25 2025

christos added a comment to D38825: libdtrace: Implement inline function tracing for kinst.

The "Inline Function Tracing" section in the following paper I wrote for AsiaBSDCon 2024 gives an overview of what this patch does: https://papers.freebsd.org/2024/asiabsdcon/margiolis-Arbitrary-Instruction-Tracing-with-DTrace.files/asiabsdcon2024-margiolis-arbitrary-instruction-tracing-paper.pdf

Mar 25 2025, 10:45 PM · DTrace
christos added reviewers for D38825: libdtrace: Implement inline function tracing for kinst: avg, domagoj.stolfa_gmail.com.
Mar 25 2025, 10:43 PM · DTrace

Jan 24 2025

igoro added a member for DTrace: igoro.
Jan 24 2025, 8:40 AM

Jan 9 2025

christos retitled D39259: fbt: Allow tracing of dtrace_test.ko functions from fbt: allow tracing of dtrace_test.ko functions to fbt: Allow tracing of dtrace_test.ko functions.
Jan 9 2025, 12:24 PM · DTrace
christos updated the diff for D38825: libdtrace: Implement inline function tracing for kinst.
  • Remove unncessary goto.
  • Rebase on top of main.
Jan 9 2025, 12:23 PM · DTrace

Jan 8 2025

christos retitled D38825: libdtrace: Implement inline function tracing for kinst from libdtrace: implement inline function tracing for kinst to libdtrace: Implement inline function tracing for kinst.
Jan 8 2025, 2:04 PM · DTrace

Dec 5 2024

christos added inline comments to D38825: libdtrace: Implement inline function tracing for kinst.
Dec 5 2024, 6:46 PM · DTrace