Quoth Humm : > Quoth igor@9lab.org: > >/sys/lib/acid/leak requires /sys/src/libc/port/pool.$objtype.acid > >which is not present by default. > > > >The attached patch adds an acid target to /sys/src/libc/port/mkfile > >that generates pool.$objtype.acid and refers to it in leak(1). > > The new target is unnecessary, as %.acid in /sys/src/cmd/mksyslib can > generate pool.$objtype.acid already. Thanks for pointing this out. That means the only thing requiring modification is leak(1) by documenting how to generate the acid file, namely like this: % cd /sys/src/libc/port && mk pool.$objtype.acid Attached si anupdated patch to leak(1) only. Unless there are any more comments I will merge this over the weekend. From: Igor Böhm Date: Thu, 04 Nov 2021 23:11:56 +0000 Subject: [PATCH] leak(1): document how to generate pool.$objtype.acid /sys/lib/acid/leak requires /sys/src/libc/port/pool.$objtype.acid which is not present by default, describe how to generate it. --- diff ca73f673473457152d6f1b2e9030495f8dec5c49 2c38083b6c34c72b5417f29dc6002aa445212ae5 --- a/sys/man/1/leak Mon Nov 1 18:07:28 2021 +++ b/sys/man/1/leak Fri Nov 5 00:11:56 2021 @@ -218,7 +218,17 @@ .I kmem depend on the internal structure of the libc pool memory allocator (see -.IR pool (2)). +.IR pool (2)) +and require +.B /sys/src/libc/port/pool.$objtype.acid +to be present and generated from +.BR pool.c +as follows: +.IP +.EX +% cd /sys/src/libc/port && mk pool.$objtype.acid +.EE +.PP Since the ANSI/POSIX environment uses a different allocator, .I leak @@ -228,8 +238,5 @@ is not speedy, and .I acidleak can consume more memory than the process(es) being examined. -.PP -These commands require -.B /sys/src/libc/port/pool.acid -to be present and generated from -.BR pool.c . + +