README 1.8 KB

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