1. 26 Oct, 2011 5 commits
  2. 25 Oct, 2011 1 commit
  3. 22 Oct, 2011 3 commits
  4. 19 Oct, 2011 5 commits
    • Andy McFadden's avatar
      Enable verbose register memory dumps · 08dedcfd
      Andy McFadden authored
      Dump some memory at addresses for all registers that look like they
      might have valid addresses.  Previously this was only done for PC
      and LR.
      
      (This is expected to be disabled before ship.)
      
      Bug 5484924
      
      Change-Id: I9802eaa396783e1286ae0c53eaf2473892c38a02
      08dedcfd
    • Andy McFadden's avatar
      Merge "Add log summary to tombstones" · c69b6b70
      Andy McFadden authored
      c69b6b70
    • Nick Kralevich's avatar
      b62ace91
    • Andy McFadden's avatar
      Add log summary to tombstones · e5cc5396
      Andy McFadden authored
      When the tombstones are uploaded to APR, they're truncated at 64KB.
      This causes the log data, which is at the end, to be lost if the
      process has more than about 12 threads (which many do).
      
      This change adds the last few lines of the log right below the
      report for the crashing thread, where we should be guaranteed to
      keep it.
      
      Also, clean up trailing newlines on log messages (which end up in
      the tombstone), and don't print a "------- log" banner if there
      aren't any messages in that log file (e.g. slog).
      
      Also also, don't try to show_nearby_maps unless this is the crashing
      thread.
      
      Bug 5471955
      
      Change-Id: Iaa4fd2fafbaeda2f20bb95f202177d7744a91f9d
      e5cc5396
    • Andy McFadden's avatar
      Merge "Enhance debuggerd memory dumps" · 05a28e1c
      Andy McFadden authored
      05a28e1c
  5. 18 Oct, 2011 4 commits
    • Andy McFadden's avatar
      Enhance debuggerd memory dumps · f2eae5a8
      Andy McFadden authored
      This makes two changes:
      
      (1) Display ASCII values next to the memory dumps.  For example:
      
      I DEBUG: 00008ac4 706f6f4c 20676e69 74206425 73656d69  Looping %d times
      I DEBUG: 00008ad4 7453000a 6e69726f 6f742067 0a702520  ..Storing to %p.
      I DEBUG: 00008ae4 65642f00 657a2f76 55006f72 6c62616e  ./dev/zero.Unabl
      
      (The hex values are still displayed as little-endian word values, while
      the ASCII part is byte oriented.)
      
      (2) Optionally display memory dumps for all registers, not just LR
      and PC, for the crashing thread.  This is meant for situations where
      we crash dereferencing foo->bar and want to see what the memory near
      "foo" looks like -- could be handy if it got stomped by MUTF-16 text
      or something recognizable.
      
      Change #2 is currently disabled, via a compile-time setting.
      
      Bug 5471955
      
      Change-Id: Iacfd01c314055bad81db2f43b7d239f10086fcfb
      f2eae5a8
    • Nick Kralevich's avatar
      liblog: do better checks of log messages. · e1ede153
      Nick Kralevich authored
      Testing:
      
      The following test cases all passed and generated log entries:
      
       # echo -n '\03foo\0bar\0' > /dev/log/main
       # echo -n '\03\0bar\0' > /dev/log/main
       # echo -n '\03\0a\0' > /dev/log/main
      
      The following entries were successfully processed by
      logcat but produced no log entries:
      
       # echo -n '\03\0\0' > /dev/log/main
       # echo -n '\03a\0\0' > /dev/log/main
       # echo -n '\03b\0\0' > /dev/log/main
      
      Also tested the pathological error condition:
      
       cat /dev/urandom > /dev/log/main
      
      which produced many "+++ LOG: malformed log entry" errors.
      
      Bug: 5478600
      Change-Id: I53bc79507242dcfc14445746c29edf47be0a90b4
      e1ede153
    • Nick Kralevich's avatar
      Merge "logcat: add sanity check" · 4423df76
      Nick Kralevich authored
      4423df76
    • sinikang's avatar
      am aa75df74: [maguro] : add setprop net.tcp.buffersize.hspa · 8cdd4c33
      sinikang authored
      * commit 'aa75df74':
        [maguro] : add setprop net.tcp.buffersize.hspa
      8cdd4c33
  6. 17 Oct, 2011 6 commits
  7. 14 Oct, 2011 1 commit
  8. 13 Oct, 2011 9 commits
    • Andy McFadden's avatar
      Append log data to tombstones · 41e0cef3
      Andy McFadden authored
      The Android Problem Report site shows tombstones uploaded from
      devices.  We can see the native stack traces for every thread,
      but sometimes there's a very important bit of information sitting
      in the log, and without it we can't analyze the failure.
      
      This change modifies debuggerd so that the log contents for the
      crashing process are appended to the tombstone.  The format matches
      the output of "logcat -v threadtime".  Both "system" and "main" logs
      are included (but not interleaved -- we're not that fancy).
      
      This feature is only enabled when the "ro.debuggable" system property
      is set to 1 (indicating a development device).
      
      Bug 5456676
      
      Change-Id: I3be1df59813ccf1058cec496a906f6d31fbc7b04
      41e0cef3
    • Andy McFadden's avatar
      90e6f931
    • Dima Zavin's avatar
      am 471157a3: charger: key state being the same is not an error · 6606dc95
      Dima Zavin authored
      * commit '471157a3':
        charger: key state being the same is not an error
      6606dc95
    • Dima Zavin's avatar
      charger: key state being the same is not an error · 471157a3
      Dima Zavin authored
      
      Change-Id: I58d53899dbcca8329b65b189c1a6c5eea413c289
      Signed-off-by: default avatarDima Zavin <dima@android.com>
      471157a3
    • Dima Zavin's avatar
      am 47cca063: Merge changes Idcb48155,Iecb8c3db,I4924134b into ics-mr0 · d6da4d4f
      Dima Zavin authored
      * commit '47cca063':
        charger: ignore key event if value didn't change
        charger: sync with the current key state on boot
        charger: print last_kmsg directly using klog_write
      d6da4d4f
    • Dima Zavin's avatar
      Merge changes Idcb48155,Iecb8c3db,I4924134b into ics-mr0 · 47cca063
      Dima Zavin authored
      * changes:
        charger: ignore key event if value didn't change
        charger: sync with the current key state on boot
        charger: print last_kmsg directly using klog_write
      47cca063
    • Andy McFadden's avatar
      Show maps near native fault address · 136dcc5c
      Andy McFadden authored
      This adds some additional output to native crashes.  For example, if
      something tried to access a bit of mmap(/dev/zero) memory that had
      been mprotect()ed, you might see output like this:
      
      I DEBUG   : memory map around addr 4015a00c:
      I DEBUG   : 40159000-4015a000 /system/lib/libstdc++.so
      I DEBUG   : 4015a000-40162000 /dev/zero
      I DEBUG   : b0001000-b0009000 /system/bin/linker
      
      The idea is to see what's in and around the fault address to make it
      easier to identify bus errors due to file truncation and segmentation
      faults caused by buffer over/underruns.
      
      No output is generated for accesses below 0x1000 (which are likely
      NULL pointer dereferences) or for signals that don't set si_addr.
      
      Also, suppress the fault address for signals that don't set si_addr:
      I DEBUG   : signal 6 (SIGABRT), code 0 (?), fault addr --------
      
      We still print "fault addr" followed by 8 characters for anything
      that is parsing the contents.  The "address" shown for signals like
      SIGABRT was meaningless and possibly confusing.
      
      Bug 5358516
      
      Change-Id: Icae8ef309ea2d89b129f68d30f96b2ca8a69cc6c
      136dcc5c
    • Wu-cheng Li's avatar
      am baad2843: Update camera documentation about face detection. · 5babfad4
      Wu-cheng Li authored
      * commit 'baad2843':
        Update camera documentation about face detection.
      5babfad4
    • Wu-cheng Li's avatar
      Update camera documentation about face detection. · baad2843
      Wu-cheng Li authored
      bug:5169599
      Change-Id: I5280137cee5401fadec36cae732ecb78a2d44dc3
      baad2843
  9. 12 Oct, 2011 4 commits
  10. 11 Oct, 2011 1 commit
  11. 10 Oct, 2011 1 commit