Commit Graph

277 Commits

Author SHA1 Message Date
Mark Salyzyn b149e245c8 logcat: turn on -Werror
- Deal with some -Wunused issues

Change-Id: Ic4ab9a49f13e156a73d40266e413dee3e6396178
2014-05-02 14:15:59 -07:00
Mark Salyzyn 99f47a9e7c logd: liblog: logcat: debuggerd: Add LOG_ID_CRASH
Change-Id: Iea453764a1a4fc1661f461f10c641c30150e4d20
2014-04-16 15:38:50 -07:00
Mark Salyzyn bbbe14f758 logcat: Better help message for white and black list
Change-Id: Ia739260b4e0fcf8062ad9166fd65b1d6e7bb446c
2014-04-11 13:49:43 -07:00
Mark Salyzyn 1c95047939 logd: liblog: logcat: enable prune features for user
- Enable whitelist, blacklist and logsize tuneables for user

Change-Id: Id0c283844c71c5263a8cfbebf2e550f7ac415858
2014-04-02 13:12:04 -07:00
Mark Salyzyn ef7c411ac3 logcat: test arbitrary time to tail
- 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
2014-03-26 10:52:21 -07:00
Mark Salyzyn 5fef7b6e31 logcat: timed tests fail under load
Change-Id: Ic1cdf0509617720eef7a3ad0b17a3b6f88c9d87e
2014-03-24 13:19:17 -07:00
Mark Salyzyn 22e287df0d logcat: white and blacklist failure
- logcat improperly squashes out count
- logcat test enhanced to catch failure
- logd places entries in ascending sorted order

Change-Id: If39d8e2c40852b520c98e7840034ab63c2538e5d
2014-03-21 15:43:31 -07:00
Mark Salyzyn fff04e3014 logcat: improve error messages
Bug: 13464830
Change-Id: Ia8783fa2422e444bcdfca8d0153cf6e7634612bb
2014-03-18 09:43:03 -07:00
Mark Salyzyn 95cfc7b8e2 logcat: test White Black list
Change-Id: Ia9509ad09dd86e4d9169ed7d0b33911f1ca9eec6
2014-03-14 10:24:42 -07:00
Mark Salyzyn fa3716b250 logd: liblog: logcat: Arbitrary time to tail
Change-Id: I10e8d92c933e31ee11e78d2d1114261a30c4be0e
2014-03-14 10:23:51 -07:00
Mark Salyzyn dfa7a07f5b logd: liblog: logcat: Add LogWhiteBlackList
- liblog android_logger_get_log_size and android_logger_get_readable_size
  adjusted to return long instead of int because of -G flag extending range

NB: ifdef'd only for userdebug and eng builds

- liblog Add android_logger_[sg]et_prune_list and android_logger_set_log_size
- logcat Add -P, -p and -G flags
- logd Add LogWhiteBlackList and configurable log size

(cherry picked from commit 18a5432158)

Change-Id: I1572338c1b34bd968ad7867857ef708156ec3b6a
2014-03-13 14:48:07 -07:00
Mark Salyzyn 34facab86b logd: liblog: logcat: Add Statistics
- logd add statistical collection and formatting
- liblog add android_logger_get_statistics call
- logcat add -S flag
- logcat add -b all

(cherry picked from commit 51a29c8dc4)

Change-Id: I521753b1969ecd4590c956aeeb1557d101059d67
2014-03-13 14:47:58 -07:00
Mark Salyzyn 9b986497e7 logcat: test: add clear and blocking check
(cherry picked from commit 1beb2ab6f6)

Change-Id: I243b1338c4a5935a297a0519c03697fd828e47e6
2014-02-26 09:52:02 -08:00
Mark Salyzyn 5d3d1f17db logcat: Add -T flag (-t w/o assumption of -d)
(cherry picked from commit de02546e3d)

Change-Id: I49763e2db83755e0b7b12dfa3f83a3957c54d389
2014-01-27 15:19:17 -08:00
Mark Salyzyn 65772ca7d7 logcat: Add logcat test suite
(cherry picked from commit 2807db9a26)

Change-Id: Ic4c84b88b8d899965c9765bdc3ee223ef73ba7d1
2014-01-27 15:18:49 -08:00
Mark Salyzyn 95132e97e5 logcat: Incorporate liblog reading API
(cherry picked from commit a1062c728a)

Change-Id: I1e1a55d13ac55350e8d54bfe92b392de07f26a5d
2014-01-27 15:11:46 -08:00
Elliott Hughes ccecf14254 system/core 64-bit cleanup.
This cleans up most of the size-related problems in system/core.
There are still a few changes needed for a clean 64-bit build,
but they look like they might require changes to things like the
fastboot protocol.

Change-Id: I1560425a289fa158e13e2e3173cc3e71976f92c0
2014-01-16 12:54:18 -08:00
William Luh 5336758595 Add new cert_pin_failure tag that can be used in user-consent filtering.
Bug: 10912373
Change-Id: If8a2f9829b3aac4abc33a4623c5f5b4966fd6870
2013-09-25 22:20:23 +00:00
Colin Cross 9227bd3855 Move liblog headers to system/core/include/log
Move the liblog headers to log/ instead of cutils/ to complete
the separation of libcutils and liblog.  cutils/log.h still
exists and includes log/log.h in order to support the many existing
modules that use cutils/log.h.

Change-Id: I2758c9f4aedcb809ca7ba8383d0f55041dd44345
2013-07-24 12:32:39 -07:00
Mathias Agopian 32a9d696c4 remove unused SF event log tags
Change-Id: I1271875c575aac31568017a17622f4dc9ff40032
2013-06-04 18:47:31 -07:00
Geremy Condra d832567908 Add event log tag for cert pin failures.
Change-Id: Ib93f4eeec35b5754498464ada94faeb2bdb0b896
2012-09-11 21:38:31 -07:00
Stephen Hines 2a1067d144 am 753b96cf: am dd56039c: Merge "Fixed an unused param warning in logcat"
* commit '753b96cf67f3eaf716510600516c3c593a1ae5e1':
  Fixed an unused param warning in logcat
2012-08-13 16:03:19 -07:00
Edwin Vane 80b221cb22 Fixed an unused param warning in logcat
Changed a function to actually use its parameter instead of a global
variable. All callers of the function pass the global variable as an
argument anyway so behaviour is unchanged.

Change-Id: Ib84d45c17d2213c4d441bf2f423feca14e7aa2f4
Author: Edwin Vane <edwin.vane@intel.com>
Reviewed-by: Ariel J Bernal <ariel.j.bernal@intel.com>
2012-08-13 12:59:36 -04:00
Geremy Condra e2c01bc7b9 Added logtags for errors in bionic.
Specifically, this adds tags for errors in FORTIFY_SOURCE'd parts
of bionic and for some indications of DNS spoofing.

Change-Id: I186ee36ae42cb6ba4fd5729ede84e2dcd4a56468
2012-06-11 12:22:37 -07:00
Nick Kralevich 274c31ab6b fix "logcat -c ; logcat -d" hang.
Change-Id: I1dc3633fc7228a6ff8ed0da4572f40055a28ceb2
2012-02-23 14:48:51 -08:00
Nick Kralevich 46070505e7 logcat: add sanity check
Sanity check that the length we get back from the kernel matches
how much data we actually received.

Change-Id: I5cfd80321ab41459bb514dfde2da57413a7bd9e6
2011-10-17 11:40:06 -07:00
Kenny Root 4bf3c02e02 Add checking for log entry format
The log tag may be zero length if corrupted, so check for this
condition.

Change-Id: I7616226dabe78a85859b0ab53aca08f734dbdd84
2011-10-03 14:14:41 -07:00
Carl Shapiro dfe3b60258 Remove two unused event log tags.
Change-Id: I4be6e142ecdb3caebde21bef9898fc9e25fe181a
2011-01-19 17:29:54 -08:00
Mathias Agopian 1f7bc6d1a9 am 06b21887: am 2da0032c: add graphics events to the eventlog definitions
Merge commit '06b21887e8f5719e9b421371b4a47ef371c972b5'

* commit '06b21887e8f5719e9b421371b4a47ef371c972b5':
  add graphics events to the eventlog definitions
2010-09-15 12:19:33 -07:00
Brad Fitzpatrick 9a5c61a277 am 2c42e440: am 9915e3fd: Add dvm_lock_sample\'s new fields.
Merge commit '2c42e4404bba0a1b065d223a1e84ef7184e1a987'

* commit '2c42e4404bba0a1b065d223a1e84ef7184e1a987':
  Add dvm_lock_sample's new fields.
2010-09-15 12:17:19 -07:00
Mathias Agopian 2da0032c94 add graphics events to the eventlog definitions
by default this logging is turned off

Change-Id: Ic7e5fe2b377c4760e1673e7d19a69d34cc9333c9
2010-09-14 15:11:07 -07:00
Brad Fitzpatrick 9915e3fd38 Add dvm_lock_sample's new fields.
Change-Id: I2ec442834c38d3716695ab90bf0db220bd8dae27
2010-09-14 13:12:11 -07:00
Irfan Sheriff efc69582fe Update eventlog tags for WifiStateTracker
Change-Id: I43137ba87df7ec30f068997c86957e6bda14aaeb
2010-07-23 15:58:58 -07:00
Wink Saville ba9608ff63 Update the help text to reflect new capabilities of -b parameter.
The -b parameter now support specifying multiple ring buffers
and the results are interleaved. In addition a new ring buffer
has been created, 'system', and the default is now -b main -b system.

Change-Id: Ibc25a31fb8fe21d75dda4598a83cf3426f759eb1
2010-06-18 10:15:08 -07:00
Carl Shapiro f54e0a4be3 Add a log tag entry for the dalvik lock profiling event. 2010-04-13 02:30:27 -07:00
Carl Shapiro c24b4d8cc8 Add a log tag entry for the dalvik lock profiling event.
Change-Id: I4897da78ee6c6b32c8a588ff689c60a59bc60ed7
2010-04-12 16:33:28 -07:00
Brad Fitzpatrick 7c2be0426e Rename logtag for clarity.
BUG=2581935

Change-Id: Icf1c4fcf123fa4ec74fda80f72a27d3db85aa7a9
2010-04-08 13:24:42 -07:00
Mathias Agopian 50844525a3 fix [2483384] logcat crash when malloc debug is enabled
fix a couple of uninitialized variables

Change-Id: I1f7552ecb20d85dbf0fec5cae9778a70ff9281a2
2010-03-17 16:10:26 -07:00
Dan Egnor d1d3b6dbed Add '-t N' flag to logcat, to print only the last N lines of logcat
(to be used in capturing a merged mini logcat for crash reports)

Change-Id: I68149eb80f2f79812f43b07d80fbea822476859e
2010-03-11 20:32:17 -08:00
Dan Egnor 36cf32f6bd Remove an obsolete event log tag.
Change-Id: Idb718bdc88bca244eb88af5f391055cd40b42fd8
2010-03-10 13:06:28 -08:00
Joe Onorato e2bf2ea4d2 Make logcat print both the main and system buffers by default. Make SLOGx macros work. 2010-03-01 13:03:19 -08:00
Joe Onorato 6fa09a066d Allow logcat to take multiple -b options, and interleave the results. 2010-02-26 11:07:00 -08:00
Dan Egnor 9b0bf52944 Remove some log tags, which have moved to their own
EventLogTags.logtags file in various directories.
2010-02-10 21:19:45 -08:00
Wink Saville d89a501f8f resolved conflicts for merge of 988ad28e to master
Change-Id: I02dda00585d5eb4ea74ca7c77bd46f97bb562440
2010-01-21 12:08:07 -08:00
John Wang 904ac578d5 Add gsm_rat_switched event tag. 2010-01-13 18:28:15 -08:00
Doug Zongker dd75019da8 remove ActivityManager-related event log tags
These have been migrated to the ActivityManagerService package.
2009-12-04 16:47:40 -08:00
Doug Zongker a43d275391 remove system server tags from global event.logtags file
These tags are being moved to a .logtags file in the system server
package.
2009-12-04 10:43:41 -08:00
Doug Zongker da077ee77a construct event-log-tags via the new build mechanism
The build system now unions together all *.logtags files found in
LOCAL_SRC_FILES to construct /system/etc/event-log-tags.
2009-12-03 10:35:41 -08:00
Dan Egnor d3fe19fa14 Update db_operation log tag information to match updated sampling code. 2009-11-23 19:01:28 -08:00
Dianne Hackborn bace010782 Work on issue #2259506: camera ANRed and then device runtime restarted
New event log tag for when a process fails to start.

Change-Id: Icb08757e1514a1d6f5462d22b931114c10b964b2
2009-11-16 16:34:08 -08:00
Doug Zongker bbf4093e7a am 46ef2b87: add free space on system and cache to free_storage_left log event
Merge commit '46ef2b87d01a2df67074351d0078bf900550f343' into eclair

* commit '46ef2b87d01a2df67074351d0078bf900550f343':
  add free space on system and cache to free_storage_left log event
2009-10-07 18:16:50 -07:00
Doug Zongker 46ef2b87d0 add free space on system and cache to free_storage_left log event 2009-10-07 15:06:02 -07:00
Dan Egnor 04ea5b974d Add backup_initialize event to track initializeDevice() requests 2009-09-29 19:11:03 -07:00
Jeff Hamilton 9e42da45cf Add a new event log tag for corrupted database files.
Change-Id: I6b920de4e7c86257cb56a75e570c01a42fb2d082
2009-09-29 11:46:46 -07:00
Dan Egnor b92174db6d Add event parameter for the restore set (device id) data is being restored from 2009-09-22 10:42:52 -07:00
Christopher Tate 061b6de7b3 Add event log tag for server-prompted reset of backup data 2009-09-21 13:12:09 -07:00
Doug Zongker 6f9d1c2174 add account field to the sync log event 2009-09-20 15:48:22 -07:00
Ken Shirriff f602030b35 Add contacts aggregation event to the log. 2009-09-03 16:13:08 -07:00
Doug Zongker 6753c2bc23 am c5ceeeed: Merge change 20354 into donut
Merge commit 'c5ceeeedeeb1cc3ba3d8b54b04f983ae666755a2'

* commit 'c5ceeeedeeb1cc3ba3d8b54b04f983ae666755a2':
  strip comments from event-log-tags on device
2009-08-07 05:12:40 -07:00
Doug Zongker 0e5e7ef1fe strip comments from event-log-tags on device
This saves about 8k from the system image.

Bug: 2036961
2009-08-06 16:43:47 -07:00
Dan Egnor 894c5cd214 add log tags for backup/restore events 2009-07-27 15:13:00 -07:00
Jim Miller 04ac5881fa Add aggregator test tag to list 2009-07-01 18:29:33 -07:00
Wei Huang 9d0d888179 add kernel event logging tags for more gtalk/mcs logging (heartbeat resets and connection closed events) 2009-06-19 11:28:03 -07:00
The Android Open Source Project 38e264915c merged 2cf6cff71f w/minor conflict 2009-06-12 11:14:35 -07:00
Dan Egnor 2cf6cff71f Add a note to event-log-tags listing the log tag range
reserved for partner use, etc..
2009-06-11 15:28:59 -07:00
Jim Miller cae5f6aa21 Add tag for AggregationService. 2009-06-08 19:00:27 -07:00
Tammo Spalink 473b9b21ad new cdma event log tags 2009-05-19 15:26:18 +08:00
The Android Open Source Project e4749f30e5 auto import from //branches/cupcake/...@137197 2009-03-09 11:52:15 -07:00
The Android Open Source Project dd7bc3319d auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
The Android Open Source Project e54eebbf1a auto import from //depot/cupcake/@135843 2009-03-03 18:29:04 -08:00
The Android Open Source Project a1e1c1b106 auto import from //depot/cupcake/@132589 2009-03-03 14:04:41 -08:00
The Android Open Source Project c2d26a164f auto import from //depot/cupcake/@137055 2009-03-02 22:54:47 -08:00
The Android Open Source Project 3e292b9716 auto import from //branches/cupcake/...@132569 2009-02-20 07:38:35 -08:00
The Android Open Source Project 1b8e5a6b14 auto import from //branches/cupcake/...@131421 2009-02-13 12:57:54 -08:00
The Android Open Source Project 13f797da7f auto import from //branches/cupcake/...@130745 2009-02-10 15:44:07 -08:00
The Android Open Source Project 35237d1358 Code drop from //branches/cupcake/...@124589 2008-12-17 18:08:08 -08:00
The Android Open Source Project 4f6e8d7a00 Initial Contribution 2008-10-21 07:00:00 -07:00