Always assume kernel source is present

See:

Autor:		Ricardo Cerqueira <ricardo@cyngn.com>
Autor Datum:	vor 3 Wochen (06.11.2014 20:42:54)
Committer:	Nick Reuter <nreuter85@gmail.com>
Commit Datum:	vor 3 Wochen (09.11.2014 07:55:37)
Commit Hash:	9122b94ae1c9ba968775dd73d1b5ed1c95fc7f99
Eltern:		a361a4df31

Under CM, always assume kernel source is present

Change-Id: I99fa7616c0b973d867d166f79e7c175e5aa32e3d
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

Conflicts:

	Android.mk
display: remove compile time warnings

- remove unused variable in libexternal.
- make use of all variables in memtrack.

Change-Id: I67b34428f4a976327e4e9dcd6fd7dfb9063b969c

Conflicts:

	libexternal/external.cpp
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
libmemtrack: Refine the feature define

Use appropriate name for the feature define.

Change-Id: If6b6f63a24c84f916f26043ad776084f3723137d
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
libmemtrack: Use kgsl memory flag to determine usermapped buffers

Instead of using useraddr from kgsl memory allocations to be
matched against proc/<pid>/smaps file to be used to determine
usermapping of a buffer, use the newly added flag which directly
indicates whether a given gpubuffer entry is usermapped or
not. The flag is the last character in the "flags" field.

CRs-fixed: 634962
Change-Id: I1f82f7a2ff207eb780f1938a3b1347451b1e3d77