summaryrefslogtreecommitdiff
path: root/docs
AgeCommit message (Collapse)Author
2021-04-16Say which API level fdsan/fdtrack appeared at.Elliott Hughes
Test: N/A Change-Id: Id29db9a5ec6a039af95ce3cdd421542ac862f339
2021-04-09Fix the adb command to push the memory trace files.Peter Collingbourne
Change-Id: If49d084486486c7899d7655175860f7528aac6ce
2021-02-16Fix/update notices.Elliott Hughes
Auto-generate NOTICE files for all the directories, and for each one individually rather than mixing libc and libm together. Test: N/A Change-Id: I7e251194a8805c4ca78fcc5675c3321bcd5abf0a
2020-08-31Add fdtrack docs.Josh Gao
Test: none Change-Id: I035be350cfd40cdbff1e95332f96841001922454
2020-07-31More cleanup for #inclusivefixit.Elliott Hughes
Found manually with grep, since the script seems to miss stuff. Test: treehugger Change-Id: I5933cbade9792801d4a0bec1ccb077efa6ad8fbc
2020-05-19Expand a little on the time_t situation.Elliott Hughes
Since we last touched this file, the Linux kernel has added the missing API, but time has also moved on enough to make the cost/benefit unconvincing for Android. Bug: http://b/156317457 Test: treehugger Change-Id: I07fa678458ef10d15540b36ab65e0898d2fdadc6
2020-02-23Add a libc wrapper for statx(2).Elliott Hughes
Bug: http://b/127675384 Bug: http://b/146676114 Test: treehugger Change-Id: I844edc12f62717e579870a040cf03dfe60dc280b
2020-02-13Remove dead code.Elliott Hughes
We haven't built any of this for years. Test: treehugger Change-Id: I3f8a85e9530af68587f47931d850eb60631a9481
2020-02-05docs/status.md: link to github.Elliott Hughes
We've had discussions about <monetary.h> (which wasn't previously mentioned here at all, an oversight) and robust mutexes on github that are worth linking to. Bug: https://github.com/android/ndk/issues/1181 Bug: https://github.com/android/ndk/issues/1182 Test: N/A Change-Id: If0d2c28757a3cbfffc358e8847dc4de1a67d9001
2020-01-22Mention why we don't have pthread_cancel().Elliott Hughes
It's a somewhat frequently asked question. Change-Id: I2ad88e8d79607e49a891eb2304e9be63494ad193
2020-01-16Document the changed fdsan default from Q to R.Elliott Hughes
Change-Id: I98c50232184a8bf929579a7a30460dc33555475e
2019-12-05Add mallopt M_PURGE benchmark.Christopher Ferris
Update the native allocator documentation to include running of this benchmark. Move the malloc_benchmark.cpp to malloc_sql_benchmark.cpp and use malloc_benchmark.cpp for benchmarking functions from malloc.h. Bug: 137795072 Test: Ran new benchmark. Change-Id: I76856de833032da324ad0bc0b6bd85a4ea8c253d
2019-11-13Update the native allocator document.Christopher Ferris
Add extra information I've been using to evaluate scudo. Test: NA Change-Id: Ie7ee65890b1a3804c38ba38de504144d43e410b2
2019-11-12Update docs/status.md function counts for recent releases.Elliott Hughes
Test: N/A Change-Id: I99b7227334d0858f19ec7544a255fe47f265d810
2019-10-25Add section about libmemunreachable tests.Christopher Ferris
Test: NA Change-Id: I0dcb8bbb7a598c44201281c7d493023e7d25c153
2019-10-17Updated memory_replay description.Christopher Ferris
The description of memory_replay talks about unzippping the trace files, but this is no longer necessary. This language has been updated to reflect this. Test: NA Change-Id: Id808f9bd1286284c8de12b19c08eb8677c76dd53
2019-10-15Remove __ANDROID_NDK__ from bionic, and document our #defines.Elliott Hughes
__ANDROID_NDK__ is moving into the NDK's <android/ndk-version.h> instead. Test: treehugger Change-Id: I192016165a929547009d15dbcc30e8f6dad1ac88
2019-08-16Merge "Link our two main developer-facing docs together."Treehugger Robot
2019-08-15Link our two main developer-facing docs together.Elliott Hughes
Bug: http://b/139329827 Test: N/A Change-Id: I38e05f1a7eaa8ff31b503541e34f2e362cd4722e
2019-08-14Update location of trace files.Christopher Ferris
Test: NA Change-Id: I27f98b84b7701b8747d22dbdfbfa074083c36bc1
2019-08-07Change all references to PSS to RSS.Christopher Ferris
RSS is the real measurement by which an allocator should be measured since RSS is the real memory consumed by the process. PSS is a shared value. For memory_replay, PSS and RSS should be the same, so this didn't really matter in practice, but it's better to use the correct name of RSS. Also, add a small section about fragmentation. Bug: 138394907 Test: NA Change-Id: Ic6f982f9c4619f452342e7c105818e33b8b85e44
2019-08-06Merge "Add memfd_create(2) and mlock2(2)."Elliott Hughes
2019-08-05Add memfd_create(2) and mlock2(2).Elliott Hughes
These are old enough now that the latest devices will have kernels that support them. Also add basic doc comments to <sys/mman.h>. Test: treehugger Change-Id: I1b5ff5db0b6270f5c374287cac1d6a751a0259f5
2019-08-05Update docs for clockwait/clocklock functionsTom Cherry
Test: n/a Change-Id: Ie4853912c9ed63d29121e62406682896012962ec
2019-08-02Add renameat2.Elliott Hughes
Bug: http://b/127675384 Test: new tests Change-Id: Ia2e3d5679180391ca98e62fa429fa11cbf167507
2019-06-28Merge "Add doc describing native allocator."Christopher Ferris
2019-06-28Add doc describing native allocator.Christopher Ferris
This includes tests that a native allocator has to pass, and the ways to benchmark a native allocator on Android. Test: NA Change-Id: I5e1f4b3eea46ee2240e63a487ca3dfabecff81c0
2019-06-27Fix usage of () and [].Christopher Ferris
The usage was reversed, [] is used for the name and () is used for the link destination. Test: NA Change-Id: I07bf8645a888d5690d6c3d58edc3899b3e287df4
2019-04-24threads.h: Add C11 thread support.Elliott Hughes
FreeBSD, glibc, and musl have all implemented C11 threads at this point. POSIX is looking at how to align with it. Probably time to jump on the bandwagon ourselves... Implemented in the same style as <termios.h> so we can provide this functionality even on older API levels. This does mean that this is strictly more expensive than calling pthread functions directly. Although this isn't in POSIX yet, assume that it's going to be basically the same as C11 and add the header test anyway. We should revisit this when POSIX actually adds <threads.h>. Test: new tests Change-Id: I8602d67ce71ca7f8ed1529daa0a8ea1feb083dd6
2019-03-26strptime: support everything that strftime supports.Elliott Hughes
Our strptime was missing `%F`, `%G`, `%g`, `%P`, `%u`, `%V`, and `%v`. Most of these are already supported upstream (and I've just pulled their current implementation), but some aren't. We're horribly out of sync anyway, so I'll upstream the missing pieces and then try to get us back in sync later. Test: new tests, but originally found by toybox trying to use %F Change-Id: Ib1a10801a7a3b9c9189440c3b300109bde535fd9
2019-03-20Document various libc behavior changes.Elliott Hughes
Test: N/A Change-Id: I3044c394180058ba500762239b16a4c740caca44
2019-03-01Make aligned_alloc match the standard.Christopher Ferris
Jemalloc does not verify that the size parameter is a multiple of alignment. Fix this since it only went into P. Fix the unit tests, and fix malloc debug/malloc hooks to handle this new restrictive behavior. Bug: 126944692 Test: Ran bionic unit tests. Test: Ran bionic unit tests with malloc hooks enabled (no new tests fail). Test: Ran bionic unit tests with malloc debug enabled (no new tests fail). Test: Ran malloc debug unit tests. Change-Id: I4d50785928815679c781ca729f998454d76b9192
2018-11-09Publish the current draft of my ELF TLS docRyan Prichard
I have a script that converts the internal Google Doc to this markdown file. Bug: http://b/78026329 Test: review document Change-Id: I16cfa60f1e480f859eb79cb0e5f0c519f5622cfd
2018-10-23Add getloadavg(3).Elliott Hughes
Lets us build ninja with bionic. Bug: N/A Test: ran tests Change-Id: I97eef1247d794b58a2b9aee4851551632e5a4e48
2018-09-26Add reallocarray(3).Elliott Hughes
Originally a BSD extension, now in glibc too. We've used it internally for a while. (cherry-pick of e4b13f7e3ca68edfcc5faedc5e7d4e13c4e8edb9.) Bug: http://b/112163459 Test: ran tests Change-Id: I813c3a62b13ddb91ba41e32a5a853d09207ea6bc Merged-In: I813c3a62b13ddb91ba41e32a5a853d09207ea6bc
2018-09-20Merge changes from topics "fdsan_ziparchive_type", "fdsan_java_socket"Josh Gao
* changes: fdsan: improve documentation. fdsan: add type for libziparchive's ZipArchive. fdsan: add types for Java sockets.
2018-09-18fdsan: improve documentation.Josh Gao
Fix a race condition in the example, and add a linearized version to make it more clear what's going on. Test: none Change-Id: Id9158e4fd407b676ef364e7076985de3ad477457
2018-09-14Explicitly say `pthread_cancel` in the docs.Elliott Hughes
Bug: http://b/33943372 Test: N/A Change-Id: If71691f7ff20c9b8c14de15692543bbd858c9aab
2018-09-06Fix mistake in fdsan documentation.Josh Gao
File descriptors are POSIX, not C. Test: none Change-Id: Idc3c32c60f9c61e8e68aabbc4589a6c68e156e4b
2018-09-06fdsan: add documentation.Josh Gao
Test: none Change-Id: I7dabd8f5420c757b6504254a6414da8e877d475e
2018-09-05Document various post-P bionic changes.Elliott Hughes
Historically we haven't documented many behavioral changes, but it's probably useful to record that information before it's lost (even if, long term, it might be more useful in the man pages or the doc comments). Bug: N/A Test: N/A Change-Id: Iaa4f651fd6576298d848894b61285ef95879deb9
2018-08-30Fill out historical "what was added when" information.Elliott Hughes
Bug: N/A Test: N/A Change-Id: Ifa1807c6bb61dea2a4831785492b13118c66490d
2018-08-06Fix libc assembler documentation.Christopher Ferris
Test: NA Change-Id: I71485a3a44a56f2ff7ed590aec171464b57f56f6
2018-08-06Merge "Revert "Move android-changes-for-ndk-developers.md into docs/.""Treehugger Robot
2018-08-06Revert "Move android-changes-for-ndk-developers.md into docs/."Elliott Hughes
This reverts commit 1975196c871f20928c20b4ab23e4f3ee6b33390a. Reason for revert: https://android.googlesource.com/ doesn't follow symlinks :-( Change-Id: I58038a03388ab5257d301debb494ce354013acfe
2018-08-02Merge "Add doc about verifying libc assembler routines."Christopher Ferris
2018-08-01Add doc about verifying libc assembler routines.Christopher Ferris
Test: NA Change-Id: Ic3576f9c063a11d5c3f5fdb093b4d9dd2a1f5dd7
2018-08-01Move android-changes-for-ndk-developers.md into docs/.Elliott Hughes
(But keep a symbolic link so we don't break the web.) Bug: N/A Test: N/A Change-Id: Ib0c8ef80cb4b6836a465d897ffe6d78e11f09f46
2018-07-17Update libc status documentation.Elliott Hughes
Bug: N/A Test: N/A Change-Id: Ied9659f0388a4affa65f0948b3e4a58d0dca5605
2018-05-01Document FORTIFY.Elliott Hughes
Hilariously, our blog post didn't actually say how to turn it on :-) Bug: N/A Test: N/A Change-Id: I6e773e88c32a70b0f8b8b6d105fce74d68ebf5cd