mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-13 12:49:35 +02:00
ANDROID: android: Add symbols to debug_symbols driver
Add __show_mem/totalcma_pages to android_debug_symbols for memory debug use. Bug: 345658537 Change-Id: Ia66945ccc4e75d75546b65fc545f744b96225285 Signed-off-by: Penghao Wei <weipenghao@xiaomi.com>
This commit is contained in:
parent
42eb612b25
commit
15fc1b760f
|
@ -17,6 +17,7 @@
|
||||||
#include <linux/fs.h>
|
#include <linux/fs.h>
|
||||||
#include <linux/swap.h>
|
#include <linux/swap.h>
|
||||||
#include <linux/compaction.h>
|
#include <linux/compaction.h>
|
||||||
|
#include <linux/cma.h>
|
||||||
|
|
||||||
struct ads_entry {
|
struct ads_entry {
|
||||||
char *name;
|
char *name;
|
||||||
|
@ -47,6 +48,8 @@ static const struct ads_entry ads_entries[ADS_END] = {
|
||||||
ADS_ENTRY(ADS_DROP_SLAB, drop_slab),
|
ADS_ENTRY(ADS_DROP_SLAB, drop_slab),
|
||||||
ADS_ENTRY(ADS_FREE_PAGES, try_to_free_pages),
|
ADS_ENTRY(ADS_FREE_PAGES, try_to_free_pages),
|
||||||
ADS_ENTRY(ADS_COMPACT_PAGES, try_to_compact_pages),
|
ADS_ENTRY(ADS_COMPACT_PAGES, try_to_compact_pages),
|
||||||
|
ADS_ENTRY(ADS_SHOW_MEM, __show_mem),
|
||||||
|
ADS_ENTRY(ADS_TOTAL_CMA, &totalcma_pages),
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -18,6 +18,8 @@ enum android_debug_symbol {
|
||||||
ADS_DROP_SLAB,
|
ADS_DROP_SLAB,
|
||||||
ADS_FREE_PAGES,
|
ADS_FREE_PAGES,
|
||||||
ADS_COMPACT_PAGES,
|
ADS_COMPACT_PAGES,
|
||||||
|
ADS_SHOW_MEM, /* for debugging memory usage */
|
||||||
|
ADS_TOTAL_CMA, /* for debugging total cma pages */
|
||||||
ADS_END
|
ADS_END
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user