diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2020-04-28 20:26:44 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2020-04-28 20:26:44 +0000 |
commit | 30a4df025ab854a247b9714fbf6840bd7f8211fd (patch) | |
tree | 8c64e6ae9306cdbdbda36580bc247a36a051e1fa /memory_replay/dumps/README | |
parent | c36ecc0803cb1df95f2daf90b100370f0631f9fb (diff) | |
parent | 29e06f5526a2dd48c9f19ef7f238804f84c03c30 (diff) | |
download | extras-30a4df025ab854a247b9714fbf6840bd7f8211fd.tar.gz |
Snap for 6439596 from 29e06f5526a2dd48c9f19ef7f238804f84c03c30 to qt-aml-tzdata-releaseq_tzdata_aml_297100400q_tzdata_aml_297100300q_tzdata_aml_297100000q_tzdata_aml_296200000q_tzdata_aml_295600118q_tzdata_aml_295600110q_tzdata_aml_295500002q_tzdata_aml_295500001q_tzdata_aml_294400310android-mainline-12.0.0_r54android-mainline-12.0.0_r111android-mainline-10.0.0_r13android-mainline-10.0.0_r12android-mainline-10.0.0_r11q_tzdata_aml_297100000android12-mainline-tzdata-releaseandroid10-mainline-tzdata-releaseandroid10-android13-mainline-tzdata-release
Change-Id: Ie3b2616d0777d5fa31840df0790cc48856698478
Diffstat (limited to 'memory_replay/dumps/README')
-rw-r--r-- | memory_replay/dumps/README | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/memory_replay/dumps/README b/memory_replay/dumps/README new file mode 100644 index 00000000..d306b9a4 --- /dev/null +++ b/memory_replay/dumps/README @@ -0,0 +1,71 @@ +The files in this directory are a collection of recordings of +the memory allocations of a set of apps. + +In order to run these files through the tool, they will need to be placed +unzipped on the device. + +Format of dumps: + +<tid>: <action_name> <ptr> [<optional_arguments>] + +<tid> + The pid_t value that is the gettid() value recorded during the run. + +<action_name> + One of: + malloc - Allocate memory using the malloc function. + calloc - Allocate memory using the calloc function. + memalign - Allocate memory using the memalign function. This is used + during recording for either memalign or posix_memalign. + realloc - Allocate memory using the realloc function. + free - Free memory allocated using one of the above actions. + thread_done - Terminate the thread with the given tid. + +Format of each action: + +<tid>: malloc <ptr> <size> + Allocation made by malloc(<size>). <ptr> is the value returned by malloc. + +Example: + +100: malloc 0xb48390a0 48 + +<tid>: calloc <ptr> <nmemb> <size> + Allocation made by calloc(<nmemb>, <size>. <ptr> is the value returned + by calloc. + +Example: + +200: calloc 0xb48c1100 32 8 + +<tid>:realloc <new_ptr> <old_ptr> <size> + Allocation made by realloc(<old_ptr>, <size>). <old_ptr> can be 0x0 + to indicate a realloc with a nullptr. <new_ptr> is the value returned + by realloc. + +Example: + +300: realloc 0x96b90920 0x93605280 150 + +<tid>:memalign <ptr> <alignment> <size> + Allocation made by memalign(<alignment>, <size>). <ptr> is the value + returned by memalign. + +Example: + +400: memalign 0xae42d080 16 104 + +<tid>: free <ptr> + Find a previously allocated pointer <ptr> and call free(<ptr>). + <ptr> can be 0x0 to indicate the freeing of a nullptr. + +Example: + +500: free 0xb4827400 + +<tid>: thread_done 0x0 + Indicates that the thread <tid> has completed. + +Example: + +600: thread_done 0x0 |