summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Colascione2018-02-12 13:24:47 -0600
committerSuren Baghdasaryan2018-08-03 11:08:01 -0500
commitcd9ba8cbadf28df5d9e1354e3debeacd3517dbf7 (patch)
treef3eeda47025a88beda226ed7c0ce283cc5225925
parent615745cead3d368b974f468efd6545e87f74b474 (diff)
downloadplatform-system-core-cd9ba8cbadf28df5d9e1354e3debeacd3517dbf7.tar.gz
platform-system-core-cd9ba8cbadf28df5d9e1354e3debeacd3517dbf7.tar.xz
platform-system-core-cd9ba8cbadf28df5d9e1354e3debeacd3517dbf7.zip
Enable lmkd kill tracing everywhere
Test: asdf Exempt-From-Owner-Approval: vacation Merged-In: If6af7df74d303466aac4a69cdfe558e9748f72b9 Change-Id: If6af7df74d303466aac4a69cdfe558e9748f72b9
-rw-r--r--lmkd/Android.bp11
-rw-r--r--lmkd/lmkd.c4
2 files changed, 3 insertions, 12 deletions
diff --git a/lmkd/Android.bp b/lmkd/Android.bp
index 2efda86cd..9ac082f54 100644
--- a/lmkd/Android.bp
+++ b/lmkd/Android.bp
@@ -7,17 +7,8 @@ cc_binary {
7 "liblog", 7 "liblog",
8 ], 8 ],
9 local_include_dirs: ["include"], 9 local_include_dirs: ["include"],
10 cflags: ["-Werror"], 10 cflags: ["-Werror", "-DLMKD_TRACE_KILLS"],
11
12 init_rc: ["lmkd.rc"], 11 init_rc: ["lmkd.rc"],
13
14 product_variables: {
15 debuggable: {
16 cflags: [
17 "-DLMKD_TRACE_KILLS"
18 ],
19 },
20 },
21} 12}
22 13
23cc_library_static { 14cc_library_static {
diff --git a/lmkd/lmkd.c b/lmkd/lmkd.c
index e7c13e0c8..1a14be3e1 100644
--- a/lmkd/lmkd.c
+++ b/lmkd/lmkd.c
@@ -52,8 +52,8 @@
52 52
53#else /* LMKD_TRACE_KILLS */ 53#else /* LMKD_TRACE_KILLS */
54 54
55#define TRACE_KILL_START(pid) 55#define TRACE_KILL_START(pid) ((void)(pid))
56#define TRACE_KILL_END() 56#define TRACE_KILL_END() ((void)0)
57 57
58#endif /* LMKD_TRACE_KILLS */ 58#endif /* LMKD_TRACE_KILLS */
59 59