The branch main has been updated by 0mp: URL: https://cgit.FreeBSD.org/src/commit/?id=7008192726a30d2d5f8ed912554cc53d7bcf9fba
commit 7008192726a30d2d5f8ed912554cc53d7bcf9fba Author: Mateusz Piotrowski <[email protected]> AuthorDate: 2026-06-09 22:35:26 +0000 Commit: Mateusz Piotrowski <[email protected]> CommitDate: 2026-09-19 14:51:06 +0000 dtrace_pid.4: Add example "Listing Program's Function Entries" Reviewed by: bcr MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D57515 --- share/man/man4/dtrace_pid.4 | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/share/man/man4/dtrace_pid.4 b/share/man/man4/dtrace_pid.4 index 1acbdd097ba8..b2fa13a9c17b 100644 --- a/share/man/man4/dtrace_pid.4 +++ b/share/man/man4/dtrace_pid.4 @@ -1,9 +1,9 @@ .\" -.\" Copyright (c) 2025 Mateusz Piotrowski <[email protected]> +.\" Copyright (c) 2025-2026 Mateusz Piotrowski <[email protected]> .\" .\" SPDX-License-Identifier: BSD-2-Clause .\" -.Dd November 6, 2025 +.Dd September 19, 2026 .Dt DTRACE_PID 4 .Os .Sh NAME @@ -73,6 +73,26 @@ Note that all probe arguments within the .Nm pid provider are of type .Ft uint64_t . +.Sh EXAMPLES +.Ss Example 1: Listing Program's Function Entries +The following example lists the entry probes of +.Xr cat 1 Ap s +global functions: +.Bd -literal -offset indent +# dtrace -l -c cat -n 'pid$target:cat::entry' + ID PROVIDER MODULE FUNCTION NAME +106058 pid34639 cat __do_global_dtors_aux entry +106059 pid34639 cat usage entry +106060 pid34639 cat scanfiles entry +106061 pid34639 cat cook_cat entry +106062 pid34639 cat __do_global_ctors_aux entry +106063 pid34639 cat _start entry +106064 pid34639 cat main entry +.Ed +.Pp +This example will not work without +.Xr cat 1 +debug symbols. .Sh SEE ALSO .Xr dtrace 1 , .Xr dtrace_fbt 4 ,
