]> git.saurik.com Git - apple/system_cmds.git/blame - zlog.tproj/zlog.1
system_cmds-805.250.2.tar.gz
[apple/system_cmds.git] / zlog.tproj / zlog.1
CommitLineData
530d02b6
A
1.\" Copyright (c) 2018, Apple Inc. All rights reserved.
2.\"
3.Dd February 21, 2018
4.Dt ZLOG 1
5.Os "Mac OS X"
6.Sh NAME
7.Nm zlog
8.Nd show allocation backtraces for kernel zones
9.Sh SYNOPSIS
10.Nm
11.Op Fl t
12.Op Fl z Ar name Op Fl n Ar num | Fl l
13.Op Fl h
14.Sh DESCRIPTION
15.Nm
16displays allocation (and free, if used in corruption tracking mode with
17the boot-arg "-zc") backtraces for zones that have zone logging enabled.
18Zone logging can be turned on by using the boot-arg "zlog<N>=<name>",
19where 'N' can range from 1 to 10, and 'name' is the name of the zone to
20be tracked.
21.Pp
22.Nm
23interprets the following options:
24.Pp
25.Bl -tag -width "disable -"
26.\" -t
27.It Fl t
28(Default) list all the zones that have logging enabled
29.\" -z
30.It Fl z Ar name
31show all allocation backtraces for zone
32.Ar name
33.\" -n
34.It Fl n Ar num
35Can be used in combination with the
36.Fl z
37option to show the top
38.Ar num
39backtraces with the most active references in the zone
40.Ar name
41.\" -l
42.It Fl l
43Can be used in combination with the
44.Fl z
45option to show the backtrace most likely contributing to a leak in the zone
46.Ar name
47(prints the backtrace with the most active references)
48.\" -h
49.It Fl h
50show the help text
51.El
52.Sh DIAGNOSTICS
53.Ex -std
54.Sh SEE ALSO
55.Xr zprint 1 ,
56.Xr ioclasscount 1