summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-07-02Add vldr vstr type benchmarking.Christopher Ferris
Merge from internal master. (cherry-picked from commit 65d2c7894a93f66ea41d55f843285e7e7bdbf488) Change-Id: I854b5f310fa44efcaf93af14b84ffe5673cc46c0
2013-07-02Add vldr vstr type benchmarking.Christopher Ferris
Change-Id: Ib8d9ac401feacbfd2e0862ad0e5fd2c13a233c58
2013-06-26am 3d98cbcb: am faec68b0: Merge "Add a benchmark of strcpy."Christopher Ferris
* commit '3d98cbcb610ac4192542e46c22a6a2ffe7e31ac4': Add a benchmark of strcpy.
2013-06-26am faec68b0: Merge "Add a benchmark of strcpy."Christopher Ferris
* commit 'faec68b05e13ce31566feabd01fc23960a93aff1': Add a benchmark of strcpy.
2013-06-26Merge "Add a benchmark of strcpy."Christopher Ferris
2013-06-26Add a benchmark of strcpy.Christopher Ferris
List of all changes: - Add a strcpy benchmark. - Create a macro that is used to create all of the code for the main loop of the benchmark. - Fix the strcmp benchmark to use two buffers. The single buffer was an experiment that should not have been committed. It also crashes when a large alignment is used because it hard-coded an extra 2048 allocation regardless of the alignment chosen. - Modify the libc benchmarks to take the function to bench as a parameter. This will allow us to benchmark new potential libc optimizations by adding a single line to the function table list. Merge from internal master. (cherry-picked from commit 014cf9dc226a775e27b2e6ace2461c510d9c6c19) Change-Id: I8848e309fa1b323fe98f4525eb0f27a889fd0a7f
2013-06-26Merge "Add a benchmark of strcpy."Christopher Ferris
2013-06-26Add a benchmark of strcpy.Christopher Ferris
List of all changes: - Add a strcpy benchmark. - Create a macro that is used to create all of the code for the main loop of the benchmark. - Fix the strcmp benchmark to use two buffers. The single buffer was an experiment that should not have been committed. It also crashes when a large alignment is used because it hard-coded an extra 2048 allocation regardless of the alignment chosen. - Modify the libc benchmarks to take the function to bench as a parameter. This will allow us to benchmark new potential libc optimizations by adding a single line to the function table list. Change-Id: Id7129667669318acbd001c1bfa3db82764a39029
2013-06-25am 057f15a2: am 111659ee: Merge changes ↵Colin Cross
I707570ad,I900b673d,I62310b2c,I6b030d9d,I8f5a55de,I51a12fb8,I857143a5,I95025d52,I6367555d,I7d80e2b4,If4a4a2bb,I884eedea,Ibd0b26e4,Ia145018d,I2706e6fb,Ib1467329 * commit '057f15a2f24057493af335f0a05e362aceb8db6d': procrank: add support for only showing cached, noncached, or KSM pages libpagemap: add pm_process_usage_flags librank: add flag to show only KSM pages libpagemap: fix new kernel flag names to start with PM_PAGE_ librank: show swapped pages per library procrank: show swapped pages per process libpagemap: count swapped pages librank: add command line argument for cached or non-cached pages libpagemap: add pm_map_usage_flags librank: add command line argument to show all mappings libpagemap: add page flags for new kernels librank: add permissions command line argument libpagemap: add definition for mask of permission flags librank: convert argument parsing to getopt_long libpagemap: fix vss calculation libpagemap: fix reusing previous name for mappings with no name
2013-06-24am 111659ee: Merge changes ↵Colin Cross
I707570ad,I900b673d,I62310b2c,I6b030d9d,I8f5a55de,I51a12fb8,I857143a5,I95025d52,I6367555d,I7d80e2b4,If4a4a2bb,I884eedea,Ibd0b26e4,Ia145018d,I2706e6fb,Ib1467329 * commit '111659ee89ecb6fc0a70c92cca81c0ee7de6c656': procrank: add support for only showing cached, noncached, or KSM pages libpagemap: add pm_process_usage_flags librank: add flag to show only KSM pages libpagemap: fix new kernel flag names to start with PM_PAGE_ librank: show swapped pages per library procrank: show swapped pages per process libpagemap: count swapped pages librank: add command line argument for cached or non-cached pages libpagemap: add pm_map_usage_flags librank: add command line argument to show all mappings libpagemap: add page flags for new kernels librank: add permissions command line argument libpagemap: add definition for mask of permission flags librank: convert argument parsing to getopt_long libpagemap: fix vss calculation libpagemap: fix reusing previous name for mappings with no name
2013-06-24Merge changes ↵Colin Cross
I707570ad,I900b673d,I62310b2c,I6b030d9d,I8f5a55de,I51a12fb8,I857143a5,I95025d52,I6367555d,I7d80e2b4,If4a4a2bb,I884eedea,Ibd0b26e4,Ia145018d,I2706e6fb,Ib1467329 * changes: procrank: add support for only showing cached, noncached, or KSM pages libpagemap: add pm_process_usage_flags librank: add flag to show only KSM pages libpagemap: fix new kernel flag names to start with PM_PAGE_ librank: show swapped pages per library procrank: show swapped pages per process libpagemap: count swapped pages librank: add command line argument for cached or non-cached pages libpagemap: add pm_map_usage_flags librank: add command line argument to show all mappings libpagemap: add page flags for new kernels librank: add permissions command line argument libpagemap: add definition for mask of permission flags librank: convert argument parsing to getopt_long libpagemap: fix vss calculation libpagemap: fix reusing previous name for mappings with no name
2013-06-24procrank: add support for only showing cached, noncached, or KSM pagesColin Cross
Add the -c, -C, and -k arguments to only show pages that are cached (backed by storage), non-cached (backed by ram or swap), or have been collapsed by KSM respectively. Change-Id: I707570ad406106b0aca230d18f9945901d193aca
2013-06-24libpagemap: add pm_process_usage_flagsColin Cross
Add pm_process_usage flags to get memory usage by a process, only counting pages with specified flags set. Change-Id: I900b673ddbb5ae92312773a8670dd59769617268
2013-06-24librank: add flag to show only KSM pagesColin Cross
Passing -k will cause librank to only show KSM pages. The RSS column will approximate the memory used before KSM, and PSS will show the memory used after KSM. Change-Id: I62310b2cda97316b835cf7ebe51b5155872c37dc
2013-06-24libpagemap: fix new kernel flag names to start with PM_PAGE_Colin Cross
Change-Id: I6b030d9d0356d63b3ddb853de304407bc70b38c4
2013-06-24librank: show swapped pages per libraryColin Cross
Add a column showing swapped pages per library, but only show it if swapped pages exist in at least one library. Change-Id: I8f5a55dee7ed8d1f02ed7c947f6a22f7a5771eb8
2013-06-24procrank: show swapped pages per processColin Cross
Add a column showing swapped pages per process, but only show it if swapped pages exist in at least one process. Change-Id: I51a12fb8999c2a73418277fd575e7109478667d5
2013-06-24libpagemap: count swapped pagesColin Cross
Add a new memusage field for swapped pages. Change-Id: I857143a5fdd294315dd89e834b1217a219f10479
2013-06-24librank: add command line argument for cached or non-cached pagesColin Cross
Add -c and -C command line arguments to only count pages that are cached (backed by storage) or non-cached (backed by ram or swap) respectively. Non-cached pages include all anonymous pages, as well as file backed pages that are mapped private and then modified. Change-Id: I95025d52f1c876b9c41fcbddaef5e95e32ebf307
2013-06-24libpagemap: add pm_map_usage_flagsColin Cross
Add pm_map_usage_flags, which is the same as pm_map_usage but only counts pages with the specified flags set. This can be used to only count "swapbacked" pages, which are pages that cannot be flushed back to disk without using swap. Change-Id: I6367555d9385502c797935849bb4221a8354e251
2013-06-24librank: add command line argument to show all mappingsColin Cross
Add -a command line argument to show all mappings, including anonymous, stack, and heap mappings. Change-Id: I7d80e2b4f5d880d434f57e1e7a37678917cd7407
2013-06-24libpagemap: add page flags for new kernelsColin Cross
Change-Id: If4a4a2bbe9b1a68c5dce1151cf8b7c60cae1a3fa
2013-06-24librank: add permissions command line argumentColin Cross
Add a command line argument to only list pages with the given permissions. Change-Id: I884eedea607b250ac721e7fdac555992c435441f
2013-06-24libpagemap: add definition for mask of permission flagsColin Cross
Change-Id: Ibd0b26e4f5245592152d2c8ef00e7da1ad5f3fdf
2013-06-24librank: convert argument parsing to getopt_longColin Cross
Change-Id: Ia145018d9096a550febe465c9f5b5f00d36c444d
2013-06-24libpagemap: fix vss calculationColin Cross
pm_map_usage was not incrementing vss for pages that were in the process's map but not occupying a physical page. Move the vss increment above the check for present mappings. Change-Id: I2706e6fbcbfe7d70f10950333a486d690bc84d6c
2013-06-24libpagemap: fix reusing previous name for mappings with no nameColin Cross
Mappings that are not from a file do not have a name. The sscanf will read all of the fields up to the name, and then leave name untouched. This causes the previous name to be reused. Reset name to an empty string before each call to sscanf. Change-Id: Ib146732983eb074d0d4773be094efa0b672f5ed2
2013-06-22procrank: add support for only showing cached, noncached, or KSM pagesColin Cross
Add the -c, -C, and -k arguments to only show pages that are cached (backed by storage), non-cached (backed by ram or swap), or have been collapsed by KSM respectively. Change-Id: I707570ad406106b0aca230d18f9945901d193aca
2013-06-22libpagemap: add pm_process_usage_flagsColin Cross
Add pm_process_usage flags to get memory usage by a process, only counting pages with specified flags set. Change-Id: I900b673ddbb5ae92312773a8670dd59769617268
2013-06-22librank: add flag to show only KSM pagesColin Cross
Passing -k will cause librank to only show KSM pages. The RSS column will approximate the memory used before KSM, and PSS will show the memory used after KSM. Change-Id: I62310b2cda97316b835cf7ebe51b5155872c37dc
2013-06-22libpagemap: fix new kernel flag names to start with PM_PAGE_Colin Cross
Change-Id: I6b030d9d0356d63b3ddb853de304407bc70b38c4
2013-06-22librank: show swapped pages per libraryColin Cross
Add a column showing swapped pages per library, but only show it if swapped pages exist in at least one library. Change-Id: I8f5a55dee7ed8d1f02ed7c947f6a22f7a5771eb8
2013-06-21procrank: show swapped pages per processColin Cross
Add a column showing swapped pages per process, but only show it if swapped pages exist in at least one process. Change-Id: I51a12fb8999c2a73418277fd575e7109478667d5
2013-06-21libpagemap: count swapped pagesColin Cross
Add a new memusage field for swapped pages. Change-Id: I857143a5fdd294315dd89e834b1217a219f10479
2013-06-11librank: add command line argument for cached or non-cached pagesColin Cross
Add -c and -C command line arguments to only count pages that are cached (backed by storage) or non-cached (backed by ram or swap) respectively. Non-cached pages include all anonymous pages, as well as file backed pages that are mapped private and then modified. Change-Id: I95025d52f1c876b9c41fcbddaef5e95e32ebf307
2013-06-11libpagemap: add pm_map_usage_flagsColin Cross
Add pm_map_usage_flags, which is the same as pm_map_usage but only counts pages with the specified flags set. This can be used to only count "swapbacked" pages, which are pages that cannot be flushed back to disk without using swap. Change-Id: I6367555d9385502c797935849bb4221a8354e251
2013-06-11librank: add command line argument to show all mappingsColin Cross
Add -a command line argument to show all mappings, including anonymous, stack, and heap mappings. Change-Id: I7d80e2b4f5d880d434f57e1e7a37678917cd7407
2013-06-11libpagemap: add page flags for new kernelsColin Cross
Change-Id: If4a4a2bbe9b1a68c5dce1151cf8b7c60cae1a3fa
2013-06-11librank: add permissions command line argumentColin Cross
Add a command line argument to only list pages with the given permissions. Change-Id: I884eedea607b250ac721e7fdac555992c435441f
2013-06-11libpagemap: add definition for mask of permission flagsColin Cross
Change-Id: Ibd0b26e4f5245592152d2c8ef00e7da1ad5f3fdf
2013-06-11librank: convert argument parsing to getopt_longColin Cross
Change-Id: Ia145018d9096a550febe465c9f5b5f00d36c444d
2013-06-11Merge "libpagemap: fix vss calculation"Colin Cross
2013-06-11libpagemap: fix vss calculationColin Cross
pm_map_usage was not incrementing vss for pages that were in the process's map but not occupying a physical page. Move the vss increment above the check for present mappings. Change-Id: I2706e6fbcbfe7d70f10950333a486d690bc84d6c
2013-05-22Add the memtrack utility.Christopher Ferris
This utility attempts to track the PSS usage of all of the processes in the system. It will keep track of the min/max/avg/last PSS for every process it has ever seen and dump that information when the program is terminated or when a USR1 or TSTP signal is sent to the process. Change-Id: Id9364d5121b70f80b8335c379a241bee2fbdb019
2013-05-15libpagemap: fix reusing previous name for mappings with no nameColin Cross
Mappings that are not from a file do not have a name. The sscanf will read all of the fields up to the name, and then leave name untouched. This causes the previous name to be reused. Reset name to an empty string before each call to sscanf. Change-Id: Ib146732983eb074d0d4773be094efa0b672f5ed2
2013-05-14am a885c1bd: am 69294b5b: Merge "Add guards around neon code."Elliott Hughes
* commit 'a885c1bd06d0472822314e738815cbd2d3247988': Add guards around neon code.
2013-05-14am 69294b5b: Merge "Add guards around neon code."Elliott Hughes
* commit '69294b5bf79dd0f0909ed8831fbac0f3ab5bf1e5': Add guards around neon code.
2013-05-14Merge "Add guards around neon code."Elliott Hughes
2013-05-14Add guards around neon code.Christopher Ferris
Missed the neon code in the copy bandwidths. Added guards and the functionality to indicate that these are neon based benchmarks. (cherry-pick of a67e53c2345eac337d24e4decaf4733c5314aff8.) Change-Id: If0fae051c47979eb243681a3c994222cefaae826
2013-05-14Add guards around neon code.Christopher Ferris
Missed the neon code in the copy bandwidths. Added guards and the functionality to indicate that these are neon based benchmarks. Change-Id: I350d984b27063c47b3c78fc1fa88d33fae960d78