Deleted Added
full compact
memguard.9 (155776) memguard.9 (162404)
1.\" Copyright (c) 2005 Christian Brueffer
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 8 unchanged lines hidden (view full) ---

17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
1.\" Copyright (c) 2005 Christian Brueffer
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 8 unchanged lines hidden (view full) ---

17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
25.\" $FreeBSD: head/share/man/man9/memguard.9 155776 2006-02-17 09:11:41Z pjd $
25.\" $FreeBSD: head/share/man/man9/memguard.9 162404 2006-09-18 15:24:20Z ru $
26.\"
27.Dd January 31, 2006
28.Dt MEMGUARD 9
29.Os
30.Sh NAME
31.Nm MemGuard
32.Nd "memory allocator for debugging purposes"
33.Sh SYNOPSIS

--- 9 unchanged lines hidden (view full) ---

43.Nm
44can only take over
45.Fn malloc ,
46.Fn realloc
47and
48.Fn free
49for a particular malloc type.
50.Sh EXAMPLES
26.\"
27.Dd January 31, 2006
28.Dt MEMGUARD 9
29.Os
30.Sh NAME
31.Nm MemGuard
32.Nd "memory allocator for debugging purposes"
33.Sh SYNOPSIS

--- 9 unchanged lines hidden (view full) ---

43.Nm
44can only take over
45.Fn malloc ,
46.Fn realloc
47and
48.Fn free
49for a particular malloc type.
50.Sh EXAMPLES
51To use memguard for memory type compiled into the kernel, one has to add the
51To use
52.Nm
53for memory type compiled into the kernel, one has to add the
52following line to the
53.Pa /boot/loader.conf :
54.Bd -literal -offset indent
55vm.memguard.desc=<memory_type>
56.Ed
57.Pp
54following line to the
55.Pa /boot/loader.conf :
56.Bd -literal -offset indent
57vm.memguard.desc=<memory_type>
58.Ed
59.Pp
58Where memory_type is a short description of memory type to monitor.
60Where
61.Ar memory_type
62is a short description of memory type to monitor.
59The short description of memory type is the second argument to
60.Xr MALLOC_DEFINE 9 ,
61so one has to find it in the kernel source.
62.Pp
63The short description of memory type is the second argument to
64.Xr MALLOC_DEFINE 9 ,
65so one has to find it in the kernel source.
66.Pp
63To use memguard for memory type defined in a kernel module, one has to set
67To use
68.Nm
69for memory type defined in a kernel module, one has to set
64.Va vm.memguard.desc
65.Xr sysctl 8
66variable before loading the module:
67.Bd -literal -offset indent
68sysctl vm.memguard.desc=<memory_type>
69.Ed
70.Pp
71The

--- 35 unchanged lines hidden ---
70.Va vm.memguard.desc
71.Xr sysctl 8
72variable before loading the module:
73.Bd -literal -offset indent
74sysctl vm.memguard.desc=<memory_type>
75.Ed
76.Pp
77The

--- 35 unchanged lines hidden ---