summaryrefslogtreecommitdiffstats
path: root/logcat
Commit message (Collapse)AuthorAgeFilesLines
* Merge tag 'android-6.0.1_r22' of ↵Steve Kondik2016-03-112-16/+120
|\ | | | | | | | | | | | | | | https://android.googlesource.com/platform/system/core into cm-13.0 Android 6.0.1 release 22 Change-Id: Ia61f8e863f7413a67fe65f41ea2a30c086528df4
| * logcat: continue where we left offMark Salyzyn2015-11-122-16/+120
| | | | | | | | | | | | | | | | | | | | Issue introduced as part of new logcatd functionality in commit f3555d9427425c2cba9600ceffb49305c440aa4a Faulty logic, add a gTest to confirm. Bug: 19608716 Change-Id: Ic1b97def25e03e69faae4398a3dff2ff0f88545e
* | logcat: Map '-C' to 'logcat -v color'Adnan Begovic2015-10-131-1/+6
|/ | | | Change-Id: I0419f4551a6dfd77c7d4833050b36da28113ed9b
* Lower the priority of the threads in logd/logcat.Riley Andrews2015-06-091-0/+6
| | | | | | | | | sched_batch implies only a penalty to latency in scheduling, but does not imply that the process will be given less cpu time. Increase the nice level to 10 to prioritize it below ui threads. Bug: 21696721 Change-Id: I075af059dc755402f7df9b0d7a66cca921ff04b2
* liblog: logcat: Add printable format modifierMark Salyzyn2015-06-041-1/+2
| | | | | | | | | | | | | | | (cherry pick from commit b932b2f8bac124b088edc93966281cca4567dc54) - added printable format modifier: logcat -v printable - opencoded borrowed individual utf8 validity checking algorithm from utf8_length() in libutils/Unicode.cpp - if considered basic one-character ASCII, use popular \x escape sequences for non-printable - logprint convert to C comments to drop mixed-mode Bug: 19000361 Change-Id: I122a5b8fb41216fc0bc816178c0b768f3df56586
* logcat: -f run in backgroundMark Salyzyn2015-06-022-9/+20
| | | | | | | | | | | (cherry pick from commit 3ef730c57f88ac24b0d6b021e43fc344d602fe36) - if saving to file, set SP_BACKGROUND policy - if saving to file, set BATCH priority - sort include files Bug: 19608716 Change-Id: I00acb8b8db0d2ff9ff36c97f9e74604d31938376
* logcat: -f flag to continueMark Salyzyn2015-06-022-6/+94
| | | | | | | | | | | | | (cherry pick from commit f3555d9427425c2cba9600ceffb49305c440aa4a) On startup, check the current logging content, then grab logs from that time forward rather than restarting from the beginning. Add support for reading tail time down to the nano-second. Bonus, permits us to create a logcatd logpersist daemon Bug: 19608716 Change-Id: Iaab58de4c02b7f97c69de12cf954fedc2163059e
* logcat: liblog: Add "usec" format argumentMark Salyzyn2015-05-131-8/+3
| | | | | | | | | | (cherry pick from commit e1f2004ecc05ce2d5d4313d16c7791594643f2ef) - Add additional 3 digits of time precision for time output adding in the reporting of usec - Remove trailing space in header file Change-Id: Ifb560850b8e01080e126fbaeab640db71cce3eea
* Add float support to binary event log.Jeff Brown2015-04-281-0/+1
| | | | | Bug: 20664753 Change-Id: Ib4752bd785496dab5bb4d4979d5d80f662adbdfa
* logcat: build regressionMark Salyzyn2015-04-131-6/+4
| | | | | | | | printflike checks for NULL fmt at compile time, checks for NULL at runtime are optimized out. Regression as a result of commit 5976303aa6e55a9e81eadb35d50f458052e3fa24. Change-Id: Ia4e7ee4b6cb2adf1e6609c70e79684855f76e6fc
* logcat: Minor fixesTraian Schiau2015-04-111-133/+153
| | | | | | | | | | | | | Remove -r default value implementation (since is not functional). Check the status of some memory allocations. Make sure that the pruning buffer is set to NULL if we get to the end of the loop. Make sure that the file status is successfully retrieved before using the size. Add strtouia - string to unsigned argument. Add logcat_panic with/without printing an error message and help. Play nicer with the android namespace. Change-Id: Id4c37cf64968128424e29bf1725f6c9a5924a0e2 Signed-off-by: Traian Schiau <traianx.schiau@intel.com>
* Remove LOCAL_ADDITIONAL_DEPENDENCIES in cases where it's not needed.Elliott Hughes2015-04-021-2/+0
| | | | Change-Id: I720b8ef1050da45a7833adef8219b6acb2cf3a38
* Merge "logcat: test: logcat.logrotate fails"Mark Salyzyn2015-03-121-2/+4
|\
| * logcat: test: logcat.logrotate failsMark Salyzyn2015-03-121-2/+4
| | | | | | | | | | | | | | Test did not handle all possible multiples of block sizes. Bug: 19604106 Change-Id: I693358be9598926389631baf21c5883e0f2fd735
* | logcat: fortify help on filterspecMark Salyzyn2015-03-091-11/+9
|/ | | | | Bug: 19620794 Change-Id: I572ffb62d39d884d5102b0846a95b1a8216f3d41
* logcat: remove dead label codeMark Salyzyn2015-03-041-20/+8
| | | | Change-Id: I12d6aa4ebf48f06faf9435b4ffedfd309629cf3b
* logcat: do not stop on unexpected log IDMark Salyzyn2015-03-041-19/+15
| | | | | | | | We are changing the log read API to allow event notification regarding logging system data loss. We would like these out of band events to be reported. Change-Id: I9e802113604d8cc0fc9adff0d1e014bbc40914fe
* logcat: add pstore readMark Salyzyn2015-02-261-1/+6
| | | | | | | | Used to pull the Android log messages after a reboot. A companion to the pstore console logs. Adding the -L flag triggers this behavior. Change-Id: Icce2dc00bcbb26975bea604420c6be397869e804
* logcat: Add -D print dividers flagMark Salyzyn2015-02-251-10/+22
| | | | | | | | Permits a single thread to collect several log buffer and to separate them out into named buckets by keying off the dividers --------- Change-Id: I5a92c67383a73ea566cb9b9732d26d88d9c41c66
* liblog: introduce ANDROID_LOG_* flagsMark Salyzyn2015-02-251-4/+4
| | | | | | | | Move away from using POSIX open(2) flags and introduce ANDROID_LOG_* flags to replace them. Add security by preventing random mode flags from getting into underlying POSIX calls. ANDROID_LOG_* flags overlap POSIX O_* flag definitions. Change-Id: Ib32bb64c287e8bf150be62242e1ba46bb37839fc
* logcat: use liblog to determine -b all listMark Salyzyn2014-12-051-25/+20
| | | | | | - This is done to prevent the administrivia of adjusting logcat sources every time a new log id is added. Change-Id: I0074afb00694c2c00f6c3a66e58c15691146a6c5
* Remove unused variableBernhard Rosenkränzer2014-11-241-1/+0
| | | | | Change-Id: Ifba91dd93a9c8170f8837c413756554e117be894 Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
* am 91b76d7d: Merge "Made suffix length of rotated logcat files constant."Aristidis Papaioannou2014-10-292-2/+62
|\ | | | | | | | | * commit '91b76d7de3029f6e617d640ca1b9ef844fa44477': Made suffix length of rotated logcat files constant.
| * Made suffix length of rotated logcat files constant.Aristidis Papaioannou2014-10-292-2/+62
| | | | | | | | | | | | | | | | | | The suffix now uses as many digits as needed to cover the maximum number of rotated files. eg, for 20 files it would use 2 digits: log_file.{01,02,03,...,20} Change-Id: I4709b3cf4bf88c209db3c4d9e24a3a4731c98bae
* | am b210403a: am 98d3aa3f: Merge "logcat: tests: deal with -v threadtime default"Mark Salyzyn2014-09-181-7/+11
|\ \ | |/ | | | | | | * commit 'b210403a8bf417e9f88bcca0a2a652d533f6c524': logcat: tests: deal with -v threadtime default
| * logcat: tests: deal with -v threadtime defaultMark Salyzyn2014-09-181-7/+11
| | | | | | | | | | | | | | - specify -v brief where necessary to preserve tests - fix an occasional issue for logrotate and device block size Change-Id: I09b02cc0359dc351a89311abc3ee762a0f23582c
* | am a9d789dd: am a3e53f1d: Merge "logcat: -v format defaults to threadtime"Mark Salyzyn2014-09-161-3/+6
|\ \ | |/ | | | | | | * commit 'a9d789dd8a7c1cfe58793d77af80bb457fca3cf2': logcat: -v format defaults to threadtime
| * logcat: -v format defaults to threadtimeMark Salyzyn2014-09-161-3/+6
| | | | | | | | Change-Id: Iafddf83b0507a667e0395d38ec9afaed67319018
* | am e70851f8: am f9b9693b: Merge "liblog: logcat: colored output."Mark Salyzyn2014-09-121-2/+2
|\ \ | |/ | | | | | | * commit 'e70851f8a8aa4c9dfaa442abf812c283ba8d8b6f': liblog: logcat: colored output.
| * liblog: logcat: colored output.Pierre Zurek2014-09-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | This patch adds a new '-v color' option to logcat so that the output is colored similar to the ones in DDMS. Simply type "adb logcat -v color" to use it. Works well with bash in gnome-terminal. NO GUARANTEE IT WILL WORK ON A NON xterm STYLE TERMINAL. Signed-off-by: Michael Zimmermann <sigmaepsilon92@gmail.com> Signed-off-by: Mark Salyzyn <salyzyn@google.com> Change-Id: I9189c5f27fed991579edbcbc6834536eb8112152
* | am 3888a4d0: am 35a76df5: Merge "logcat: document help tail from time"Mark Salyzyn2014-09-021-0/+3
|\ \ | |/ | | | | | | * commit '3888a4d07f7341c103c618f331fb04d93d9c532b': logcat: document help tail from time
| * logcat: document help tail from timeMark Salyzyn2014-09-011-0/+3
| | | | | | | | | | | | | | (cherry picked from commit 6a594683ec8aa2c8cee98a95f502772db515e60e) Bug: 17323719 Change-Id: Id057dde60e699c946828f4aeabedf1728b3bc877
| * logcat: test: logrotate flagsMark Salyzyn2014-07-241-5/+48
| | | | | | | | | | | | | | | | - test -f -n and -r flags - fix issue with parse error for sizes in bytes (no multiplier) Bug: 16147190 Change-Id: Iadf2fd903d5e881d02f1d2b491441cc8090ee1c9
* | logcat: test: logrotate flagsMark Salyzyn2014-07-241-5/+48
| | | | | | | | | | | | | | | | | | - test -f -n and -r flags - fix issue with parse error for sizes in bytes (no multiplier) (cherry pick from d03caa23ddd8670ccd83eaf4ef4fc0c78e065c1b) Bug: 16147190 Change-Id: Iadf2fd903d5e881d02f1d2b491441cc8090ee1c9
* | am 9a357b88: am badc23f8: am f6ef1f53: Merge "logcat: parse failure for -n ↵Mark Salyzyn2014-07-071-1/+1
|\ \ | |/ | | | | | | | | | | <KBsize> and -r <rotate limit>" * commit '9a357b884fcc46f10f16860987614a2b9b610208': logcat: parse failure for -n <KBsize> and -r <rotate limit>
| * logcat: parse failure for -n <KBsize> and -r <rotate limit>Mark Salyzyn2014-07-071-1/+1
| | | | | | | | Bug: https://code.google.com/p/android/issues/detail?id=72867 Change-Id: Id0c988543ecfccc5054d15d4195ef578468d50af
* | am 4700dfa0: am 8d782f51: am 3f55d2f4: Merge "logcat: test: modernize"Mark Salyzyn2014-06-183-112/+203
|\ \ | |/ | | | | | | * commit '4700dfa0fbb9be31809b250c001d0275ce0b38dc': logcat: test: modernize
| * logcat: test: modernizeMark Salyzyn2014-06-183-112/+203
| | | | | | | | | | | | | | | | | | | | | | - split sequential sort output test out as a benchmark check - Allow up to two failures of sort results because of occasional reader locks. - logcat -g output was changed to handle wider set of values incorporating a multiplier for UX, and would not pass test if 'logcat -G 1M' was run. - If spam filter is turned off, prune checks would fail, allowed for an empty default. Change-Id: I06d6089e18279df7525d1c16a1f76b3125ddbf05
* | Add event log tag for Safety Net.William Luh2014-06-171-0/+2
|/ | | | | | | | This is for clients who log to EventLog and want Safety Net to pick up and send the logs. Bug:15572351 Change-Id: I6fdbe7905ec8b3b27a36eb38aee61c97bcd8d4bf
* logd: logcat: debuggerd: audit logs to events and mainMark Salyzyn2014-05-271-5/+0
| | | | | | | | | | | - auditd spawn log copy to events and main - logcat delete events as one of the default logs - debuggerd do not collect events. - squish multiple spaces - switch from strcpy to memmove for overlapping buffers BUG: 14626551 Change-Id: I89b30273ce931ed2b25a53ea9be48e77f4c1bbf4
* logd: logcat: debuggerd: auditd logs to eventsMark Salyzyn2014-05-151-7/+8
| | | | | | | | | | | - auditd switch to recording logs to events log id - logcat add events as one of the default logs - debuggerd collect events log as well. ToDo: debuggerd & bugreport collect intermixed logs. BUG: 14626551 Change-Id: I958f0e729b7596748be57488a38824db5645be7b
* Remove unused LOCAL_LDLIBS.Ying Wang2014-05-071-1/+0
| | | | Change-Id: I42aeb7668183e7a06207ee063f6eee4d37d66c6e
* logd: logcat: Add persist.logd.size group of propertiesMark Salyzyn2014-05-061-2/+27
| | | | | | | | | - logd Add persist.logd.size (global), persist.logd.size.<logid> - logcat report a more flexible multiplier in -g command. Bug: 14563261 Bug: 14469172 Change-Id: Ie389caa14ad3ae3d4a3a3cc463425bb9dbc5e483
* liblog: logcat: Move library print test into gTestMark Salyzyn2014-05-021-7/+0
| | | | Change-Id: Icd33808d4c974625f4fd0a126a90a2b4c90c8315
* logcat: turn on -WerrorMark Salyzyn2014-05-023-7/+6
| | | | | | - Deal with some -Wunused issues Change-Id: Ic4ab9a49f13e156a73d40266e413dee3e6396178
* logd: liblog: logcat: debuggerd: Add LOG_ID_CRASHMark Salyzyn2014-04-161-2/+18
| | | | Change-Id: Iea453764a1a4fc1661f461f10c641c30150e4d20
* logcat: Better help message for white and black listMark Salyzyn2014-04-111-6/+10
| | | | Change-Id: Ia739260b4e0fcf8062ad9166fd65b1d6e7bb446c
* logd: liblog: logcat: enable prune features for userMark Salyzyn2014-04-024-53/+4
| | | | | | - Enable whitelist, blacklist and logsize tuneables for user Change-Id: Id0c283844c71c5263a8cfbebf2e550f7ac415858
* logcat: test arbitrary time to tailMark Salyzyn2014-03-261-33/+108
| | | | | | | | | - Add tail_time - Use EXPECT instead of ASSERT to provide more coverage - Use EXPECT_TRUE/ASSERT_TRUE when comparing NULL - Itemize order complaints in sorted_order test Change-Id: I55a7543fa3300c0a9524fac70111e680c2877eea
* logcat: timed tests fail under loadMark Salyzyn2014-03-241-3/+0
| | | | Change-Id: Ic1cdf0509617720eef7a3ad0b17a3b6f88c9d87e