update stats documentation

pull/121/head
Daniel Micay 2020-09-17 17:44:01 -04:00
parent 483b1d7b8b
commit 59e174eee0
1 changed files with 4 additions and 1 deletions

View File

@ -836,7 +836,7 @@ is still provided, with a similar format as what Android uses, with tweaks for
hardened\_malloc and the version set to `hardened_malloc-1`. The data format hardened\_malloc and the version set to `hardened_malloc-1`. The data format
may be changed in the future. may be changed in the future.
As an example, consider the follow program from the hardened\_malloc tests: As an example, consider the following program from the hardened\_malloc tests:
```c ```c
#include <pthread.h> #include <pthread.h>
@ -987,6 +987,9 @@ number to the corresponding size class. The bin index begins at 0, mapping to
the 0 byte size class, followed by 1 for the 16 bytes, 2 for 32 bytes, etc. and the 0 byte size class, followed by 1 for the 16 bytes, 2 for 32 bytes, etc. and
large allocations are treated as one group. large allocations are treated as one group.
When stats aren't enabled, the `malloc_info` output will be an empty `malloc`
element.
## System calls ## System calls
This is intended to aid with creating system call whitelists via seccomp-bpf This is intended to aid with creating system call whitelists via seccomp-bpf