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
am 2b24add3: (-s ours) Reconcile with jb-mr1-release - do not merge

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

* commit 'b765f2c2db85be3b1a2aecf0d94969113e46c71c':
  Move eglSwapBuffers out of HWComposer
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 4d1a4829: am 22ea9b37: Dalvik heap size for a 10" xhdpi tablet.

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

* commit 'b4c3a393f092fb7cf12046a7024a7feed983b9f1':
  Add missing break in switch statement
am 6c19776e: (-s ours) Reconcile with jb-mr1-release - do not merge

* commit '6c19776e9c8736b2f29f92e772469724cf55c1e4':
am 9b04a901: am 87baae10: get rid of global regions that should be tracked per display

* commit '9b04a90155bf2ab7a6462ea01edf8d7ae0e70be0':
  get rid of global regions that should be tracked per display
am 50e16020: am 52bbb1ae: getting closer to final main composition loop

* commit '50e16020508d9fc65cd8f94c74b05a681fdb7387':
  getting closer to final main composition loop
am 0e626e06: am be246f86: Layers are now sorted by layer-stack first, then by z-order

* commit '0e626e064a830679aedf4c63f497a869499c44f0':
  Layers are now sorted by layer-stack first, then by z-order
am 1583a154: am 0f2f5ff7: rename DisplayHardware to DisplayDevice

* commit '1583a15400b04e4d45c5300769167d28c8968ec5':
  rename DisplayHardware to DisplayDevice
am d364ea2c: am d3ee231e: cleanups in preparation of bigger changes

* commit 'd364ea2c1e3bdfe789df98f345c5051a821d5502':
  cleanups in preparation of bigger changes