Add uevents tool to dump kernel uevents

Change-Id: I62d957490a50311ea26167befb89ec98ee71b119
am 79c7ae40: (-s ours) am 9bc71158: am f9ad69f4: am 803b245e: (-s ours) am 469dbc0a: (-s ours) Reconcile with jb-mr1-release - do not merge

* commit '79c7ae405544ce425eeeaaee855a06862dd00b71':
am 162186ff: Remove bugsender; now using dumpstate directly.

* commit '162186ff7fc059d963cd27dc693eb7d620f9ee8a':
  Remove bugsender; now using dumpstate directly.
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.
am f44529ea: am 409e8950: Merge "Add strcmp benchmarking."

* commit 'f44529ea90250fc9dd62899d3311c167d7425fd6':
  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.
am 8c7dddd8: am ed1d0432: Merge "Add framework for libc testing."

* commit '8c7dddd858a7c9d1435ea932890b1add12dcfd04':
  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 6402068c: am dd31e3fa: Merge "Add a test for memset."

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

* commit '4d4bc6e7777887d93340f577d9b46de4a7c75f26':
  Add liblog
am a0c0e82b: am 4d4bc6e7: Add liblog

* commit 'a0c0e82b313f1662b1f3a36df93b350fa7d3dbec':
  Add liblog
Merge "Add uevents tool to dump kernel uevents"
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.

Change-Id: I70d1e27da3b2ff1a4c8fc257e03b9c43c8c9e7cc