Bug 246722 - ktrace(1): Add example to trace all processes
Summary: ktrace(1): Add example to trace all processes
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 12.1-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-doc (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2020-05-25 17:21 UTC by Kevin Zheng
Modified: 2020-10-27 12:18 UTC (History)
1 user (show)

See Also:


Attachments
Patch (790 bytes, patch)
2020-05-25 17:21 UTC, Kevin Zheng
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Zheng 2020-05-25 17:21:35 UTC
Created attachment 214846 [details]
Patch

It is not immediately obvious how to use ktrace(1) to trace all running processes. This patch adds an example to the ktrace(1) man page.

     As root, enable system call tracing on all processes (since all processes  
     descend from init(8) ):                                                    
           # ktrace -t c -dp 1