mirror of
https://github.com/a52xq-dev/kernel.git
synced 2026-10-18 21:58:11 +07:00
ANDROID: add ion_stat tracepoint to common kernel
Emitted an event whenever ion buffers are created or freed. This enables tracking ion memory utilization changes, as well as individual buffer allocations. This was inspired by the pixel kernel patches by timmurray@ and carmenjackson@. Test: manual test on cuttlefish Bug: 154302786 Change-Id: I4d4b23ae4dbda5012d3582f5564a87e0d08c68c7 Signed-off-by: Ioannis Ilkos <ilkos@google.com>
This commit is contained in:
parent
ab51ca10ee
commit
15207c2985
1 changed files with 75 additions and 2 deletions
|
|
@ -1733,6 +1733,7 @@ int ptr_to_hashval(const void *ptr, unsigned long *hashval_out)
|
|||
{
|
||||
return __ptr_to_hashval(ptr, hashval_out);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(ptr_to_hashval);
|
||||
|
||||
/* Maps a pointer to a 32 bit unique identifier. */
|
||||
static char *ptr_to_id(char *buf, char *end, void *ptr, struct printf_spec spec)
|
||||
|
|
|
|||
Loading…
Reference in a new issue