summaryrefslogtreecommitdiff
path: root/mm
AgeCommit message (Collapse)Author
2022-11-08MM: allow vendor_init creates trace instanceMinchan Kim
To get pixel specific trace events, vendor_init needs permissions to create trace instance. Test: "adb bugreport" includes the trace dump Bug: 238728493 Change-Id: Id7fdeb31ec8d45d40072bd28cc2e68e47be60c17 Signed-off-by: Minchan Kim <minchan@google.com>
2021-07-01MM: move sepolicy to initMartin Liu
Bug: 189938926 Signed-off-by: Martin Liu <liumartin@google.com> Change-Id: I8a83a549a6c0cf8dd174c52b8377e3bd5dcbea37
2021-06-15MM: create GKI version of sepolicyMartin Liu
Bug: 190571517 Bug: 189938926 Bug: 190732106 Signed-off-by: Martin Liu <liumartin@google.com> Change-Id: Id5c39f45b0dd88e4c7c972fa60f416c715d6f34d Merged-In: Id5c39f45b0dd88e4c7c972fa60f416c715d6f34d
2020-09-21mm: allow access fastrpc total_dma_kb sysfsMartin Liu
Bug: 168084904 Test: boot Signed-off-by: Martin Liu <liumartin@google.com> Change-Id: I8a548fa667072f188b86d101b874a7cf8c9d5d79
2020-09-17mm: allow access page_owner in debugfsMinchan Kim
The page_owner provides what contexts each pages are allocated like this. It shows page frame number, allocation flags and callchains. .. .. .. Page allocated via order 0, mask 0x6212ca(GFP_HIGHUSER_MOVABLE|__GFP_NOWARN|__GFP_NORETRY) PFN 1739255 type Movable Block 1698 type Movable Flags 0x20014(uptodate|lru|mappedtodisk) prep_new_page+0x50/0x170 get_page_from_freelist+0xedc/0x1048 __alloc_pages_nodemask+0x128/0x1008 __do_page_cache_readahead+0xfc/0x1cc filemap_fault+0x2dc/0x684 ext4_filemap_fault+0x34/0x54 __do_fault+0x80/0xf0 handle_mm_fault+0xa68/0xe70 do_page_fault+0x298/0x4d8 do_translation_fault+0x30/0x48 do_mem_abort+0x74/0x124 do_el0_ia_bp_hardening+0x1c/0x28 el0_ia+0x18/0x1c Page allocated via order 0, mask 0x6212ca(GFP_HIGHUSER_MOVABLE|__GFP_NOWARN|__GFP_NORETRY) PFN 1739256 type Movable Block 1698 type Movable Flags 0x20014(uptodate|lru|mappedtodisk) prep_new_page+0x50/0x170 get_page_from_freelist+0xedc/0x1048 __alloc_pages_nodemask+0x128/0x1008 __do_page_cache_readahead+0xfc/0x1cc filemap_fault+0x2dc/0x684 ext4_filemap_fault+0x34/0x54 __do_fault+0x80/0xf0 handle_mm_fault+0xa68/0xe70 do_page_fault+0x298/0x4d8 do_translation_fault+0x30/0x48 do_mem_abort+0x74/0x124 do_el0_ia_bp_hardening+0x1c/0x28 el0_ia+0x18/0x1c .. .. .. Bug: 168344541 Test: confirmed from coral,crosshatch device Signed-off-by: Minchan Kim <minchan@google.com> Change-Id: I1ec864dc193bf4c8408d4bd14cbeddccdae27484 Merged-in: I1ec864dc193bf4c8408d4bd14cbeddccdae27484
2020-04-26add common mm_logd sepolicy to allow write dataMartin Liu
This CL allows mm_logd access several stat from /proc and /proc/<pid>/stat and write them to /data/vendor/mm/ Bug: 151100384 Test: boot Signed-off-by: Martin Liu <liumartin@google.com> Change-Id: I5b74798b5297d5e6be86cd8c1c9421ad0bb6915a
2020-03-27mm: add mm_event common policyMartin Liu
allow dumpstate to read pixel-trace and vendor_init to create new trace instance Bug: 152414692 Test: build Signed-off-by: Martin Liu <liumartin@google.com> Change-Id: Ia0b610307b85ba4d1be49ae922d602ee0ee1017f