From 58d9bcb94a0e4d43bbf4ef7f183dc6b7d3ba6d0e Mon Sep 17 00:00:00 2001 From: Sultanxda Date: Wed, 9 Sep 2015 18:23:59 -0700 Subject: [PATCH 1/4] Silence spammy logs from camera blobs (AEC_PORT and mm-camera) Log messages under these tags are spammed very hard, destroying logs, and the messages that are spammed are not useful for debugging. Change-Id: I9936ef35c2b231230694d70c88dc56c03410f27a Signed-off-by: blinoff82 Former-commit-id: 092a50c5b1fda871f5505bdba4fde1a43bc2b1b4 [formerly 2b028be136462304b6f2f2bcc2283f130ffb6e00 [formerly eaedfdab7cc91429fc83dc0388a3a61c1eaba9cd]] Former-commit-id: 3db51a3fc19fc131d3d633f21792b49df6dc9d66 [formerly b08811d6f77456666e86e3af2df2b9c53c2164bc] Former-commit-id: 1233179795523bcd93aab6a1a81b16a1ce0d9bf4 Signed-off-by: DennySPB Change-Id: I71ae21358d07885f4871a8706860e4632861b10c Signed-off-by: Pranav Temkar --- liblog/logprint.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/liblog/logprint.cpp b/liblog/logprint.cpp index 5c69bf8636..84e00cfad2 100644 --- a/liblog/logprint.cpp +++ b/liblog/logprint.cpp @@ -197,7 +197,10 @@ static android_LogPriority filterPriForTag(AndroidLogFormat* p_format, const cha */ int android_log_shouldPrintLine(AndroidLogFormat* p_format, const char* tag, android_LogPriority pri) { - return pri >= filterPriForTag(p_format, tag); + if (!strncmp(tag, "AEC_PORT", 8) || !strncmp(tag, "mm-camera", 9)) + return 0; + else + return pri >= filterPriForTag(p_format, tag); } AndroidLogFormat* android_log_format_new() { From 8a9d82276d9ac76ba7b5de633339c3b1d7b87014 Mon Sep 17 00:00:00 2001 From: Simao Gomes Viana Date: Sun, 16 Apr 2017 00:07:53 +0200 Subject: [PATCH 2/4] Filter GalleryDatab* Change-Id: I11e5aae86edd61cafd23daf7c7a086e98e5cc57d Signed-off-by: blinoff82 Former-commit-id: 209fe5b0e403bb307c5d4c446b50974fa0705415 [formerly 2119715ae57a66391af87a9d7664b260b31de6c4 [formerly fa3a4859da765c63eae2191c48fafc2192f6d943]] Former-commit-id: 075e2ee1d422eeebedf5f78ff231ca282e5ed701 [formerly 1f531c98fc8835fdbd36fb08c37721432e8d1526] Former-commit-id: 1c4d75b7a6834f89d841b15c3de6131df5cf30dd Signed-off-by: DennySPB Change-Id: I95baa1e2ae4d7c461f8fe0fa54934bd359f7abdb Signed-off-by: Pranav Temkar --- liblog/logprint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liblog/logprint.cpp b/liblog/logprint.cpp index 84e00cfad2..58f02c6422 100644 --- a/liblog/logprint.cpp +++ b/liblog/logprint.cpp @@ -197,7 +197,7 @@ static android_LogPriority filterPriForTag(AndroidLogFormat* p_format, const cha */ int android_log_shouldPrintLine(AndroidLogFormat* p_format, const char* tag, android_LogPriority pri) { - if (!strncmp(tag, "AEC_PORT", 8) || !strncmp(tag, "mm-camera", 9)) + if (!strncmp(tag, "AEC_PORT", 8) || !strncmp(tag, "mm-camera", 9) || !strncmp(tag, "GalleryDatab", 12)) return 0; else return pri >= filterPriForTag(p_format, tag); From a25bf88b7e7b08996773678b3145ccfe562664b7 Mon Sep 17 00:00:00 2001 From: faust93 Date: Fri, 12 Jan 2018 12:13:42 +0800 Subject: [PATCH 3/4] Shut up camera and wcnss debug output Change-Id: Idfb95702ae5fda03ff9c044bae390c46f284493f Signed-off-by: blinoff82 Former-commit-id: 047ddbb401b50ef7027fe22562c23f01604885c8 [formerly 6d22273337794ad80be0bd16b7eebe0a3fcd2d00 [formerly ea78693dec64bcccc44da0a7c0e749dfad59f633]] Former-commit-id: a6333e2d97bc8cbb656853da023895654fb0a473 [formerly c0786b00cb2c3cac566bf88ebece1e9169bed8c2] Former-commit-id: 1547a9698d27b21b3a6b5647fe92468da178c005 Signed-off-by: DennySPB Change-Id: Ibe3b2e4d265df804847f9a523b7c33b010d439ac Signed-off-by: Pranav Temkar --- liblog/logprint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liblog/logprint.cpp b/liblog/logprint.cpp index 58f02c6422..e70ec80f05 100644 --- a/liblog/logprint.cpp +++ b/liblog/logprint.cpp @@ -197,7 +197,7 @@ static android_LogPriority filterPriForTag(AndroidLogFormat* p_format, const cha */ int android_log_shouldPrintLine(AndroidLogFormat* p_format, const char* tag, android_LogPriority pri) { - if (!strncmp(tag, "AEC_PORT", 8) || !strncmp(tag, "mm-camera", 9) || !strncmp(tag, "GalleryDatab", 12)) + if (!strncmp(tag, "QCamera", 7) || !strncmp(tag, "WCNSS_FILTER", 12) || !strncmp(tag, "mm-3a-core", 10) || !strncmp(tag, "AEC_PORT", 8) || !strncmp(tag, "mm-camera", 9) || !strncmp(tag, "GalleryDatab", 12)) return 0; else return pri >= filterPriForTag(p_format, tag); From 5ff51131b964314c65688a36dcc19c23b9e2e6c7 Mon Sep 17 00:00:00 2001 From: DennySPB Date: Wed, 27 Feb 2019 14:31:32 +0300 Subject: [PATCH 4/4] Filter out QTI performance spam If msm_performance disabled but we use qti perf HAL log will be full of spam about "Failed to apply optimization...." Change-Id: I0aaf73ea19b56f600fa03403019b843b18ab617a Signed-off-by: DennySPB Former-commit-id: 2ed6c087bd6cc98118a0996712a3b5a9799052e4 [formerly 983fb5c59284816e12e972601dfa96024141f4d9] Former-commit-id: 1681b5e4724948bddf77ee39a8482da1652c5d04 Signed-off-by: DennySPB Change-Id: I65da22783a103d12fa5795a8c4a3dae691817c18 Signed-off-by: Pranav Temkar --- liblog/logprint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liblog/logprint.cpp b/liblog/logprint.cpp index e70ec80f05..53f4a64bb0 100644 --- a/liblog/logprint.cpp +++ b/liblog/logprint.cpp @@ -197,7 +197,7 @@ static android_LogPriority filterPriForTag(AndroidLogFormat* p_format, const cha */ int android_log_shouldPrintLine(AndroidLogFormat* p_format, const char* tag, android_LogPriority pri) { - if (!strncmp(tag, "QCamera", 7) || !strncmp(tag, "WCNSS_FILTER", 12) || !strncmp(tag, "mm-3a-core", 10) || !strncmp(tag, "AEC_PORT", 8) || !strncmp(tag, "mm-camera", 9) || !strncmp(tag, "GalleryDatab", 12)) + if (!strncmp(tag, "QCamera", 7) || !strncmp(tag, "ANDR-PERF-RESOURCE", 18) ||!strncmp(tag, "WCNSS_FILTER", 12) || !strncmp(tag, "mm-3a-core", 10) || !strncmp(tag, "AEC_PORT", 8) || !strncmp(tag, "mm-camera", 9) || !strncmp(tag, "GalleryDatab", 12)) return 0; else return pri >= filterPriForTag(p_format, tag);