| 1 |
The files in this directory are a collection of recordings of |
| 2 |
the memory allocations of a set of apps. |
| 3 |
|
| 4 |
In order to run these files through the tool, they will need to be placed |
| 5 |
unzipped on the device. |
| 6 |
|
| 7 |
Format of dumps: |
| 8 |
|
| 9 |
<tid>: <action_name> <ptr> [<optional_arguments>] |
| 10 |
|
| 11 |
<tid> |
| 12 |
The pid_t value that is the gettid() value recorded during the run. |
| 13 |
|
| 14 |
<action_name> |
| 15 |
One of: |
| 16 |
malloc - Allocate memory using the malloc function. |
| 17 |
calloc - Allocate memory using the calloc function. |
| 18 |
memalign - Allocate memory using the memalign function. This is used |
| 19 |
during recording for either memalign or posix_memalign. |
| 20 |
realloc - Allocate memory using the realloc function. |
| 21 |
free - Free memory allocated using one of the above actions. |
| 22 |
thread_done - Terminate the thread with the given tid. |
| 23 |
|
| 24 |
Format of each action: |
| 25 |
|
| 26 |
<tid>: malloc <ptr> <size> |
| 27 |
Allocation made by malloc(<size>). <ptr> is the value returned by malloc. |
| 28 |
|
| 29 |
Example: |
| 30 |
|
| 31 |
100: malloc 0xb48390a0 48 |
| 32 |
|
| 33 |
<tid>: calloc <ptr> <nmemb> <size> |
| 34 |
Allocation made by calloc(<nmemb>, <size>. <ptr> is the value returned |
| 35 |
by calloc. |
| 36 |
|
| 37 |
Example: |
| 38 |
|
| 39 |
200: calloc 0xb48c1100 32 8 |
| 40 |
|
| 41 |
<tid>:realloc <new_ptr> <old_ptr> <size> |
| 42 |
Allocation made by realloc(<old_ptr>, <size>). <old_ptr> can be 0x0 |
| 43 |
to indicate a realloc with a nullptr. <new_ptr> is the value returned |
| 44 |
by realloc. |
| 45 |
|
| 46 |
Example: |
| 47 |
|
| 48 |
300: realloc 0x96b90920 0x93605280 150 |
| 49 |
|
| 50 |
<tid>:memalign <ptr> <alignment> <size> |
| 51 |
Allocation made by memalign(<alignment>, <size>). <ptr> is the value |
| 52 |
returned by memalign. |
| 53 |
|
| 54 |
Example: |
| 55 |
|
| 56 |
400: memalign 0xae42d080 16 104 |
| 57 |
|
| 58 |
<tid>: free <ptr> |
| 59 |
Find a previously allocated pointer <ptr> and call free(<ptr>). |
| 60 |
<ptr> can be 0x0 to indicate the freeing of a nullptr. |
| 61 |
|
| 62 |
Example: |
| 63 |
|
| 64 |
500: free 0xb4827400 |
| 65 |
|
| 66 |
<tid>: thread_done 0x0 |
| 67 |
Indicates that the thread <tid> has completed. |
| 68 |
|
| 69 |
Example: |
| 70 |
|
| 71 |
600: thread_done 0x0 |