summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Enable lmkd kill tracing everywhereDaniel Colascione2018-08-031-10/+1
| | | | | | | Test: asdf Exempt-From-Owner-Approval: vacation Merged-In: If6af7df74d303466aac4a69cdfe558e9748f72b9 Change-Id: If6af7df74d303466aac4a69cdfe558e9748f72b9
* lmkd: only mlockall() if enabledMark Salyzyn2018-04-031-1/+1
| | | | | | | | | | | | | | Move process initialization, mlockall() and sched_setscheduler() to only occur if initialization succeeds and is enabled. This conserves mlock'd memory and a FIFO processing slot if (deprecated) kernel lowmemorykiller is active. Cleanup: Android coding standard compliance. Test: lmkd_unit_test Bug: 33808187 Bug: 72838192 Change-Id: I51af0235c8eca4ef958ef2d83a8071ff58b49d78
* lmkd: Introduce liblmkd_utils for communicating with lmkd processSuren Baghdasaryan2018-03-091-0/+15
| | | | | | | | | | | | | | | (cherry pick from commit 0f1005180513e880bf7c90a3f2c2bf1a36aa1406) A number of tools and tests require communication with lmkd. In order to avoid code duplication liblmkd_utils implements functions commonly used when interacting with lmkd process. Isolate communication protocol details into lmkd.h Bug: 63631020 Change-Id: Id840983d55b7db60013d52dee0c3187943811822 Merged-In: Id840983d55b7db60013d52dee0c3187943811822 Signed-off-by: Suren Baghdasaryan <surenb@google.com>
* lmkd: Remove stale dependency on libprocessgroupSuren Baghdasaryan2018-03-011-1/+0
| | | | | | | | | | (cherry pick from commit b333f83481d3de7a29a7aa8d27456af89581c12b) Remove stale dependencies and header file inclusions Change-Id: Ic0e7adb5bd2a0832937a831b6918e52ace4ad46a Merged-In: Ic0e7adb5bd2a0832937a831b6918e52ace4ad46a Signed-off-by: Suren Baghdasaryan <surenb@google.com>
* lmkd: Add ability to trace lmkd killsSuren Baghdasaryan2018-03-011-0/+8
| | | | | | | | | | | | | | | (cherry pick from commit c71355991d4bafb4694f6252ac10e288a5fb9f75) For tracing lmkd kills inside kernel it is useful to have traces indicating when and which process lmkd is killing. By default the tracing is disabled. Bug: 63631020 Test: alloc-stress Change-Id: I3ceb2bde0c292eec55855cb4535927f3b4c5d08b Merged-In: I3ceb2bde0c292eec55855cb4535927f3b4c5d08b Signed-off-by: Suren Baghdasaryan <surenb@google.com>
* lmkd: Android.mk -> Android.bpSteven Moreland2017-04-281-0/+13
Test: links Change-Id: I19aa62270488af02d64830ca90faf80b35423009