Initial msm8x64 memory tracker HAL

Reads memory info from kgsl to track unaccounted for GL and ION
memory.  Right now it has to parse every allocation and then
cross-reference it against /proc/pid/smaps.  It would be faster
to modify the kgsl driver to keep counters that could just be
read directly.

Bug: 10294768
Change-Id: Icb17558f03ce53bc594fbee097e51fe82e15dc31
libmemtrack: Add correct target information

- Add correct target information to make file
- Remove incorrect target names in the src files
- replace sprintf(banned api) with snprintf

Change-Id: I846ff3d5dcc5acc843c2c83506deafadd30b4942
fix fd leak in memtrack.msm8960

Close smaps_fd when exiting function.

Bug: 11007903
Change-Id: I4a9fcd1e84aae195d229e5dd11f99ccb9f6f5006
libmemtrack: Fix compilation warning error

Also fix a compile warning by replacing enum with int in the
getMemory function.

Change-Id: Ic4bbba425486bb7f456e928968afa5f2b04ca7ea
hwc : Compilation issue fix.

    Added unsed-paramter to C_FLAGS
    Removed page.h
    Included sync.h

Change-Id: I86db10f108132a7ebc7d4d56be4c18a6ad5017f7
display-legacy: turn off Werror...again

Change-Id: I2c63495ccba924b7e78753725431ff9586d72f45
display-legacy: pmem is dead, bury it

Change-Id: I5bb247b7b6b8b4b6e5e2dc3b0b9c6b4980baf38d
Under CM, always assume kernel source is present

Change-Id: I99fa7616c0b973d867d166f79e7c175e5aa32e3d