summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuren Baghdasaryan2018-01-04 12:43:58 -0600
committerSuren Baghdasaryan2018-03-01 19:10:42 -0600
commite1217c025d31edbb729d5acd6c04965fe3a913c4 (patch)
treea4a91bd6caea4c23a8c1046862f69906e10ca53f /lmkd/Android.bp
parentb93764db9c52b49edfc10962884e98bf6450d5cb (diff)
downloadplatform-system-core-e1217c025d31edbb729d5acd6c04965fe3a913c4.tar.gz
platform-system-core-e1217c025d31edbb729d5acd6c04965fe3a913c4.tar.xz
platform-system-core-e1217c025d31edbb729d5acd6c04965fe3a913c4.zip
lmkd: Add ability to trace lmkd kills
(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>
Diffstat (limited to 'lmkd/Android.bp')
-rw-r--r--lmkd/Android.bp8
1 files changed, 8 insertions, 0 deletions
diff --git a/lmkd/Android.bp b/lmkd/Android.bp
index 3f8a5035f..2731596f9 100644
--- a/lmkd/Android.bp
+++ b/lmkd/Android.bp
@@ -10,4 +10,12 @@ cc_binary {
10 cflags: ["-Werror"], 10 cflags: ["-Werror"],
11 11
12 init_rc: ["lmkd.rc"], 12 init_rc: ["lmkd.rc"],
13
14 product_variables: {
15 debuggable: {
16 cflags: [
17 "-DLMKD_TRACE_KILLS"
18 ],
19 },
20 },
13} 21}