[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hurd-bug
Subject:    Re: [PATCH] Implement /proc/slabinfo
From:       Pino Toscano <toscano.pino () tiscali ! it>
Date:       2014-05-24 9:03:48
Message-ID: 2aa62cbe0ecc44833368d49316205c37 () tiscali ! it
[Download RAW message or body]

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?

-- 
Pino Toscano


Scopri istella, il nuovo motore per il web italiano.
Istella garantisce risultati di qualità e la possibilità di 
condividere, in modo semplice e veloce, documenti, immagini, audio e 
video.
Usa istella, vai su http://www.istella.it?wtk=amc138614816829636



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic