Print this page
11691 ptree could show service FMRIs
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Jason King <jason.king@joyent.com>
Reviewed by: Andy Fiddaman <andy@omniosce.org>

@@ -4,11 +4,11 @@
 
 NAME
        ptree - print process trees
 
 SYNOPSIS
-       /usr/bin/ptree [-a] [-c] [-z zone] [pid | user]...
+       /usr/bin/ptree [-a] [-c] [-s svc] [-z zone] [pid | user]...
 
 
 DESCRIPTION
        The ptree utility prints the process trees containing the specified
        pids or users, with child processes indented from their respective

@@ -22,15 +22,23 @@
        -a
                   All. Print all processes, including children of process 0.
 
 
        -c
-                  Contracts. Print process contract memberships in addition to
-                  parent-child relationships. See process(4). This option
-                  implies the -a option.
+                  Contracts. Print process contract memberships and their
+                  associated SMF FMRIs, in addition to parent-child
+                  relationships. See process(4).  This option implies the -a
+                  option.
 
 
+       -s svc
+                  Print only processes with an SMF service FMRI matching the
+                  argument. The FMRI may be in truncated form (such as
+                  'console-login'). This includes child processes even if they
+                  are not members of the service contract.  See process(4).
+
+
        -z zone
                   Zones. Print only processes in the specified zone. Each zone
                   ID can be specified as either a zone name or a numerical
                   zone ID.
 

@@ -108,6 +116,6 @@
        truss(1), wait(1), fcntl(2), fstat(2), setuid(2), dlopen(3C),
        signal.h(3HEAD), core(4), proc(4), process(4), attributes(5), zones(5)
 
 
 
-                               October 11, 2005                       PTREE(1)
+                               September 3, 2019                      PTREE(1)