Add the atrace utility.

This change adds a new system binary to help with capturing and dumping
kernel traces.

Change-Id: If2fc074480f822588a4c171312dc4c04fd305356
Add the atrace utility.

This change adds a new system binary to help with capturing and dumping
kernel traces.

Change-Id: If2fc074480f822588a4c171312dc4c04fd305356
atrace: include the binary in debug builds

This change makes the atrace module tag 'debug' so that the binary is
included in all debug builds.

Change-Id: I1fdb87be0461daf686e52ded04b37b9a122edea3
atrace: add some more command line options

This change adds two command line optiosn:
  -b for setting the trace buffer size
  -f for enabling tracing of the CPU frequency
  -l for enabling tracing of the CPU load

Change-Id: Id99851a4c4eba5cfed218f29081e072bbe492133
atrace: make cpu freq governor tracing optional

This change allows atrace to run on kernels that do not have CPU frequency
interactive governor tracing enabled in the kernel.

Change-Id: Ibfde751da7b6cc9a55794355093a37feb28f5e52
atrace: add support for zlib compression

This change adds the -z command line flag to atrace to enable support for
compressing the trace with zlib as it's printed to stdout.

Change-Id: I45301c63a4d1d388152244fec3c9e05e554598e8
atrace: add support for tracing CPU idle events

This change adds the -i command line flag to atrace to enable tracing CPU idle
kernel events.

Change-Id: I4a2c8619224c0f50c7fd7c61c7b24fa2211f656c
Add disk I/O tracing.

Bug: 6488845
Change-Id: I93acb726f35b114fb1ea7297da4456826f805b7b
atrace: enable running on user builds

This change allows atrace to be run on a user build, where it is not run as
root.  Some command line options still require root, and atrace will refuse to
run if those options are specified when run as non-root.

Bug: 6513400
Change-Id: I29984cb8a7c3ad80ba5fa6b031ed8ff81acabacf
Sync with jb-mr1-dev

Change-Id: I8ad322a285ffbcda32be279f3e06fdb2908789d9
am b6ae16f0: Merge "Revert "Minimal changes to support multi-display HWC"" into jb-mr1-dev

* commit 'b6ae16f04e0655f938cd511c3965fa00e2ae6763':
  Revert "Minimal changes to support multi-display HWC"
Reconcile with jb-mr1-release - do not merge

Change-Id: I198408ef678851f19476836b10a2fc002dd11a95
am 2b24add3: (-s ours) Reconcile with jb-mr1-release - do not merge

* commit '2b24add32eb6d0250581465bdc6961114cca86c3':
  Revert "Minimal changes to support multi-display HWC"
am cbc388ca: Merge "Move eglSwapBuffers out of HWComposer" into jb-mr1-dev

* commit 'cbc388ca6a363d5228e69fdab5c583877a760280':
  Move eglSwapBuffers out of HWComposer
am b765f2c2: am cbc388ca: Merge "Move eglSwapBuffers out of HWComposer" into jb-mr1-dev

* commit 'b765f2c2db85be3b1a2aecf0d94969113e46c71c':
  Move eglSwapBuffers out of HWComposer
am 1dd2003f: Merge "libgui: enable EGL_fence_sync usage for exynos5" into jb-mr1-dev

* commit '1dd2003f1a9a7a4826da7a4b565d41b941b7cc5d':
  libgui: enable EGL_fence_sync usage for exynos5
am e5b50d31: am 1dd2003f: Merge "libgui: enable EGL_fence_sync usage for exynos5" into jb-mr1-dev

* commit 'e5b50d312fc5d7d596908135ab0d673947ad0033':
  libgui: enable EGL_fence_sync usage for exynos5
am 22ea9b37: Dalvik heap size for a 10" xhdpi tablet.

* commit '22ea9b37e2a2b5e3e0e2e1d556f499fc20a9de17':
  Dalvik heap size for a 10" xhdpi tablet.
am 53f10b7b: Merge "Add missing break in switch statement" into jb-mr1-dev

* commit '53f10b7b13363e6d017985ead704494fe79c9e09':
  Add missing break in switch statement
am 4d1a4829: am 22ea9b37: Dalvik heap size for a 10" xhdpi tablet.

* commit '4d1a4829bf52677585ff330ff9df4b4af402ab9c':
  Dalvik heap size for a 10" xhdpi tablet.