History log of /hardware/qcom/display/msm8084/libmemtrack/kgsl.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f41c66785a46545ea48fddfb24e39a29a35bed58 12-Aug-2014 Steve Rossbach <rossbach@motorola.com> libmemtrack: avoid counting surfaceflinger buffers twice

The system wide Graphics memory usage is inaccurate because some ION
buffers which are shared between processes are counted twice, once for
the buffer's consumer (surfaceflinger), and again for the producer.
These ION buffers appear in surfaceflinger's kgsl memory dump with
usage=egl_image, and in the producer's dump with usage=egl_surface.

Improve the accuracy of Graphics memory tracking by ignoring all ION
buffers with usage=egl_image in the surfaceflinger process, under the
assumption that the buffers will be accounted for when examining the
producer's process.

Change-Id: I764c610f226d41e2897d6e0c2247793b0e321ed0
Signed-off-by: Fred Fettinger <fred.fettinger@motorola.com>
/hardware/qcom/display/msm8084/libmemtrack/kgsl.c
41ea6c01349105b5f4a71e0f629b14835882b58f 09-Aug-2014 Iliyan Malchev <malchev@google.com> msm8084: 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

Cherry-picked from:
https://www.codeaurora.org/cgit/quic/la/platform/hardware/qcom/display/commit/?h=kk_3.5&id=8b9c04bf53bf1477cac52c1c96c32bc6db3abe08

b/16527585 Memory: msm graphics driver seems to be overcounting memory usage
Signed-off-by: Iliyan Malchev <malchev@google.com>
/hardware/qcom/display/msm8084/libmemtrack/kgsl.c
6468a024b651aee29ec8f1ad33e0afcd44707573 30-Sep-2013 Colin Cross <ccross@android.com> fix fd leak in memtrack.msm8960

Close smaps_fd when exiting function.

Bug: 11007903
Change-Id: I4a9fcd1e84aae195d229e5dd11f99ccb9f6f5006
/hardware/qcom/display/msm8084/libmemtrack/kgsl.c
e9268aa55a434104f2368bf115db7995f7a98b47 12-Nov-2013 Arun Kumar K.R <akumarkr@codeaurora.org> 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
/hardware/qcom/display/msm8084/libmemtrack/kgsl.c
001f8b8389111c7254b61a1a7f0c05156ac7e4be 07-Sep-2013 Colin Cross <ccross@android.com> 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
/hardware/qcom/display/msm8084/libmemtrack/kgsl.c