procmem: fix procmem crash issue

For the case pm_map_pagemap return error(e.g, maps[i]->start==maps[i]->end==0),
the main loop continue without set mis[i] fields, and then mis[i]==0. So that
the corresponding mi item is 0 for this case.
Skip dumping this item to avoid crash.

Change-Id: I7e1bea1abdccfd7594b9d904938b3462dc182a76
Signed-off-by: Hong-Mei Li <a21834@motorola.com>
Add strcmp benchmarking.

NOTE: After this change memcpy results will be significantly lower
      for larger sized copies.

Changes:
- Addition of strcmp benchmarking.
- Fix memcpy to initialize memory before copy. If this is not done, the
  results of memcpy are artificially higher.
- Add a min and max when printing averages.
- Add two new options --dst_or_mask and --src_or_mask to allow more
  flexibility when testing different alignments.

Change-Id: Ia2859d5569ab5ffa35e5ac0f6d5d1f248fef6533
Merge "Add strcmp benchmarking."
am 409e8950: Merge "Add strcmp benchmarking."

* commit '409e8950ee2fc9802c4382cd7d2fb10f5e0b9d74':
  Add strcmp benchmarking.
Add framework for libc testing.

In order to test the strcmp and memcpy libc changes, I created this
framework and these extensive tests.

Change-Id: I8400f786f467f20afe0330c23bd7c50704f8376d
Merge "Add framework for libc testing."
am ed1d0432: Merge "Add framework for libc testing."

* commit 'ed1d0432389fef75563d9c659bf88c50185ef654':
  Add framework for libc testing.
Add a test for memset.

Change-Id: Id6bebd267c609b3a42412ec8d4ffa88597afd54f
Merge "Add a test for memset."
am dd31e3fa: Merge "Add a test for memset."

* commit 'dd31e3fadbfab9502a117078eda019e115c24e5e':
  Add a test for memset.
am 4d4bc6e7: Add liblog

* commit '4d4bc6e7777887d93340f577d9b46de4a7c75f26':
  Add liblog
Adding a few bandwidth tests.

New tests being added:
- copy_bandwidth: Gathers the copy bandwidth using four different
  hand-coded assembler routines and using memcpy.
- write_bandwidth: Gathers the write bandwidth using four different
  hand-coded assembler routines and using memset.
- per_core_bandwidth: Launches a thread of any one of the write/copy
  bandwidth tests locked to every available core on the machine.
- multithread_bandwidth: Launches a user specified number of threads running
  any one of the write/copy bandwidth tests.

Each of the tests can be modified as to the size of the data to manipulate
and the number of loops to run.

Deleted tests:
- memcpy (a better memcpy benchmark can be found in system/extras/micro_bench)
- memset (a better memset benchmark can be found in system/extras/micro_bench)
- memcmp (no real replacement, but I plan to add this to micro_bench)
- strlen (no real replacement, but I plan to add this to micro_bench)
- cpufreq (this doesn't work any more)

All verification tests have been mostly shifted to system/extras/libc_test.

Merge from internal master.

(cherry-picked from commit 1348ce27ee9bb8e50a3294879c1523fa4b4d8f8b)

Change-Id: I96e9f26357e4bac1d7bb8736176d80cc41d0b36b
Merge "Adding a few bandwidth tests."
am 822f0058: Merge "Adding a few bandwidth tests."

* commit '822f00581198c2faf4f78b8dd3106e3306bb8249':
  Adding a few bandwidth tests.
Update the libc_test.

- Refactored the fencepost testing code, include adding a fencepost
  before the buffer (when not using the value returned by malloc).
- Add a verbose option to display more information as the test runs.
- Change the test to stop on the first fail rather than keep going.

Merge change from internal master.

(cherry-picked from commit f0b2c68c83e6ced8f988f014bc235393ca231958)

Change-Id: I846c7a01be64a0bcea49084fe2f75df4af00e699
Add defines around neon code.

Merge from internal master.

(cherry-picked from commit e5282ae49814c9ed0b9bdec920a20e6978349327)

Change-Id: I00bf68545987ef360fe489b14df8e11fdd7b687b
Merge "Update the libc_test."
Merge "Add defines around neon code."
am fd17d874: Merge "Update the libc_test."

* commit 'fd17d874d61021db7e7580b19b8b17b6e1da2ab8':
  Update the libc_test.
am c3004a7b: Merge "Add defines around neon code."

* commit 'c3004a7b5c1bc83440d45d6f56627708517d8711':
  Add defines around neon code.