1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License").  You may not use this file except in compliance
7 * with the License.
8 *
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
13 *
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22/*
23 * Copyright (c) 2000-2001 by Sun Microsystems, Inc.
24 * All rights reserved.
25 */
26
27#pragma ident	"%Z%%M%	%I%	%E% SMI"
28
29#include <stdio.h>
30
31#include "rdimpl.h"
32
33
34void
35prtelement(FILE *fp, id_info_t *id)
36{
37	(void) fprintf(fp, "\n"
38	"processID                   = %d\n"
39	"userID                      = %d\n"
40	"taskID                      = %d\n"
41	"projectID		     = %d\n"
42	"setID                       = %d\n"
43	"UserModeTime                = %f\n"
44	"SystemModeTime              = %f\n"
45	"SystemTrapTime              = %f\n"
46	"TextPageFaultSleepTime      = %f\n"
47	"DataPageFaultSleepTime      = %f\n"
48	"SystemPageFaultSleepTime    = %f\n"
49	"UserLockWaitSleepTime       = %f\n"
50	"OtherSleepTime              = %f\n"
51	"WaitCPUTime                 = %f\n"
52	"StoppedTime                 = %f\n"
53	"MinorPageFaults             = %" PRId64 "\n"
54	"MajorPageFaults             = %" PRId64 "\n"
55	"SwapOperations              = %" PRId64 "\n"
56	"BlocksRead                  = %" PRId64 "\n"
57	"BlocksWritten               = %" PRId64 "\n"
58	"MessagesSent                = %" PRId64 "\n"
59	"MessagesReceived            = %" PRId64 "\n"
60	"SignalsReceived             = %" PRId64 "\n"
61	"VoluntaryContextSwitches    = %" PRId64 "\n"
62	"InvoluntaryContextSwitches  = %" PRId64 "\n"
63	"SystemCallsMade             = %" PRId64 "\n"
64	"CharacterIOUsage            = %" PRId64 "\n"
65	"ProcessHeapSize             = %" PRId64 "\n"
66	"ProcessVMSize               = %" PRId64 "\n"
67	"ProcessResidentSetSize      = %" PRId64 "\n"
68	"PercentCPUTime              = %f\n"
69	"PercentMemorySize           = %f\n"
70	"UserSystemModeTime          = %" PRId64 "\n"
71	"NumThreads                  = %d\n"
72	"NumProcesses                = %d\n"
73	"TIMESTAMP in us             = %" PRId64 "\n"
74	"name                        = %s\n",
75	id->id_pid,
76	id->id_uid,
77	id->id_taskid,
78	id->id_projid,
79	id->id_psetid,
80	id->id_usr,
81	id->id_sys,
82	id->id_ttime,
83	id->id_tpftime,
84	id->id_dpftime,
85	id->id_kpftime,
86	id->id_lck,
87	id->id_slp,
88	id->id_lat,
89	id->id_stime,
90	id->id_minf,
91	id->id_majf,
92	id->id_nswap,
93	id->id_inblk,
94	id->id_oublk,
95	id->id_msnd,
96	id->id_mrcv,
97	id->id_sigs,
98	id->id_vctx,
99	id->id_ictx,
100	id->id_scl,
101	id->id_ioch,
102	id->id_hpsize,
103	id->id_size,
104	id->id_rssize,
105	id->id_pctcpu,
106	id->id_pctmem,
107	id->id_time,
108	id->id_nlwps,
109	id->id_nproc,
110	id->id_timestamp,
111	id->id_name);
112}
113