bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Implement /proc/slabinfo


From: Justus Winter
Subject: Re: [PATCH] Implement /proc/slabinfo
Date: Sat, 24 May 2014 12:45:40 +0200
User-agent: alot/0.3.4

Quoting Pino Toscano (2014-05-24 11:03:48)
> Il 23.05.2014 08:54 Justus Winter ha scritto:
> > Add a node 'slabinfo' to the root directory that contains information
> > about the slab allocator used in GNU Mach.
> >
> > The formatting code has been taken from Richard Braun's standalone
> > client available here:
> >
> > git://darnassus.sceen.net/rbraun/slabinfo.git
> > [...]
> > + infos = malloc ((cache_info_count + 1) * sizeof *infos);
> > + if (infos == NULL)
> > + return ENOMEM;
> 
> What about using FILE + open_memstream to ease the output?

Much nicer, indeed! Thanks for introducing me to this gem :)

(Also, I forgot to vm_deallocate cache_info.)

Justus



reply via email to

[Prev in Thread] Current Thread [Next in Thread]