History log of /bionic/libc/bionic/logd_write.c
Revision Date Author Comments
8b11c4cec21dc8eedd153866ce738614cfae57e6 08-Jun-2012 Geremy Condra <gcondra@google.com> Adding event logging to libc.

I've basically just copied the relevant bits out of liblog and
EventLog.cpp. While this will let us do the uid logging we want
to address the concerns in 245c07027f78565858dd489eb0d94c3d48743e9d
it doesn't give us much else.

Change-Id: Icac6ff20bc0a3ade5927f6f76fedffe1ae6f8522
c99376836021e6623516cf38d42259d38e1a480f 06-Jul-2011 Jean-Baptiste Queru <jbq@google.com> Revert "Revert "libc: Add logcat error message for memory corruption""

This reverts commit 368ee1e4d65c555fdb0fa4b3a91d75a397936908.
368ee1e4d65c555fdb0fa4b3a91d75a397936908 06-Jul-2011 Mathew Inwood <mathewi@google.com> Revert "libc: Add logcat error message for memory corruption"

This fixes the build.

This reverts commit 7708a89c60e7b024d31c48c8034932c5e9f0aceb.
7708a89c60e7b024d31c48c8034932c5e9f0aceb 30-Jun-2011 David 'Digit' Turner <digit@android.com> libc: Add logcat error message for memory corruption

Our dlmalloc implementation currently calls abort() when it detects
that the heap is corrupted, or that an invalid pointer is passed to
one of its functions.

The only way to detect this is because abort() will force-fully
crash the current program with a magic fault address of '0xdeadbaad'.

However, this is not really well documented, and a frequent topic
on the android-ndk forum (among others).

This change makes our dlmalloc code dump a simple message to the
log just before the abort() call (and hence before the stack trace)
to better help identify the problem.

Change-Id: Iebf7eb7fe26463ecadfaca8f247d237edb441e3c
6c8a2f2a5bc8d612ee953f528f2b5eb35983656a 11-Jun-2010 David 'Digit' Turner <digit@google.com> libc: remove cutils dependencies

We simply copy the stuff we need from cutils headers.

A future patch will change cutils to include the private <bionic_atomic_inline.h>

Change-Id: Ib6fd9a03bc9e337ce867bd606dc94c2b4438480a
c22da7ed32f8b537b8e4653fd777056e8315ebdf 03-Dec-2009 Alexey Tarasov <tarasov@dodologics.com> Fix log channel initialization at bionic/logd_write.c.

log_channel_t contains fd member, which is file descriptor for
exact logging channel. change cc05d1271680d6a7804bc89d3b1fe14c40b32396
lacks initialization of this member in __write_to_log_init(), thus
logging code is not working, although not crashable.

Additional details may be found in comments here:
http://review.source.android.com/5617
5cdb2b73d269580b66297c84d9395f5f9b62d963 01-Dec-2009 Andy McFadden <fadden@android.com> Fix libc logging implementation.

The file descriptor wasn't getting set, so the writev() call was
silently failing.

There's a parallel implementation over in system/core/liblog, but it's
still using the old approach and didn't have this problem.
cc05d1271680d6a7804bc89d3b1fe14c40b32396 12-Dec-2008 Alexey Tarasov <tarasov@dodologics.com> Changed logging functions in bionic/logd_write.c.

Main differences from original code:
1. now log channel for LOG_ID_MAIN may exist even if LOG_ID_RADIO
facility failed.
2. __write_to_log_null() now acts as always successful function.
3. it's more simplier to add new logging channels now

ammended commit fixes my typo on line 130
c4eee3765bf9dd81ff055e70ff7daa83a3926d2a 08-Jul-2009 David 'Digit' Turner <digit@google.com> Prevent a crash in the memory leak checker (which happened in chk_free())

Simplify the code a little, removing un-necessary mutex locks/unlocks.
Provide slightly better diagnostic message in case of corruption.
Use snprintf/strlcat instead of sprintf/strcat
1dc9e472e19acfe6dc7f41e429236e7eef7ceda1 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
1767f908af327fa388b1c66883760ad851267013 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
2489551343aa89fc539f369f7689c941b78c08d1 13-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@131421
a27d2baa0c1a2ec70f47ea9199b1dd6762c8a349 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution