Commit graph

38184 commits

Author SHA1 Message Date
Treehugger Robot
806d2e71d7 Merge "Link to the best relative relocations docs I know of." 2023-01-19 01:22:03 +00:00
Christopher Ferris
8b42ba6bf2 Merge "Only run mallopt_smoke test on bionic." 2023-01-19 01:21:55 +00:00
Elliott Hughes
bb1cb03ad1 Link to the best relative relocations docs I know of.
Bug: https://github.com/android/ndk/discussions/1831
Test: N/A
Change-Id: Ida6d16a51f133ce3251db6ef8a25f4e1a8f2496e
2023-01-18 23:26:58 +00:00
Christopher Ferris
2ef59371ff Only run mallopt_smoke test on bionic.
Even though glibc has mallopt, there is no way to guarantee that
we use an invalid argument. Since this test is only really useful
for bionic, only run it on bionic.

Test: Ran glibc and verified the test is skipped.
Change-Id: If991e8804b21c83f3d7e3b15a0b60e48da331567
2023-01-18 15:08:37 -08:00
Christopher Ferris
58b19614cb Merge "Add aliases for backtrace related options." am: cc66ba30e5
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2382334

Change-Id: I555bcd4a504985f3b97c0765f332a579ad9ea39b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-18 19:27:16 +00:00
Christopher Ferris
cc66ba30e5 Merge "Add aliases for backtrace related options." 2023-01-18 18:57:11 +00:00
Treehugger Robot
7e29479bc5 Merge "Nullability check for termios module" am: 3f44f6b472
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2389832

Change-Id: Ie4fcaf32e4a31a57c1a9da1c068e146f376b68d3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-17 19:44:44 +00:00
Treehugger Robot
3f44f6b472 Merge "Nullability check for termios module" 2023-01-17 18:58:24 +00:00
zijunzhao
4730fb6cc8 Nullability check for termios module
Bugs: b/245972273
Test: None
Change-Id: Ic91fa6ebc87bff513740c1b757a726505e4dae0e
2023-01-14 01:01:51 +00:00
Treehugger Robot
ead933d373 Merge "Nullability check for execinfo module" am: e87938c435
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2386455

Change-Id: If149a33bc4fe4b13b83f63c865f0d91da54a81ff
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-13 17:19:24 +00:00
Treehugger Robot
e87938c435 Merge "Nullability check for execinfo module" 2023-01-13 16:37:41 +00:00
zijunzhao
e951acd2ca Nullability check for execinfo module
Bugs: b/245972273
Test: None
Change-Id: I136926d5b82f62e11df716a26d0847a6bd83a419
2023-01-13 02:14:10 +00:00
TreeHugger Robot
2f77493f5c Merge "Merge tm-qpr-dev-plus-aosp-without-vendor@9467136" into stage-aosp-master 2023-01-12 19:24:54 +00:00
Xin Li
a77b5a6d89 Merge tm-qpr-dev-plus-aosp-without-vendor@9467136
Bug: 264720040
Merged-In: Iab4145a18c9d216689d68b83adf747ec4f229ade
Change-Id: Ic44b43422c69813cb6c1aea52056b30bd108edfb
2023-01-12 09:36:17 -08:00
Treehugger Robot
e4eafe8db5 Merge "librust_baremetal: Add memcpy_chk" am: 716ed9b931
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2337445

Change-Id: Ib1b59d81e0fadb0959250b499918de13c1b44821
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-12 16:56:40 +00:00
Treehugger Robot
716ed9b931 Merge "librust_baremetal: Add memcpy_chk" 2023-01-12 16:26:17 +00:00
Junjie Hu
8655d1741f Add aliases for backtrace related options.
Using the long option names might not fit in the malloc debug option
property since properties have a 92 character limit.

This patch creates new aliases for the original options.

Bug: 264504531
Test: set new options pass
Test: Config unit tests pass.
Change-Id: Id985720f36a2bf0da7b35ff444c2c80eb1fb4363
2023-01-11 15:16:00 -08:00
Chih-hung Hsieh
da61e52bb2 Merge "Disable clang-tidy for some malloc tests." am: 42f97f5288
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2380659

Change-Id: I7e2f21b9dab76fcf6d410304a0b5a3f2b81b4d4f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-11 05:33:29 +00:00
Chih-hung Hsieh
42f97f5288 Merge "Disable clang-tidy for some malloc tests." 2023-01-11 04:38:25 +00:00
Treehugger Robot
cf5888e5ec Merge "Nullability check for inttypes module" am: 5742addf96
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2381717

Change-Id: Ic4d8b0132f7464fcfdf9a8fbbf7a4e16b92cd825
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-11 03:22:51 +00:00
Treehugger Robot
5742addf96 Merge "Nullability check for inttypes module" 2023-01-11 02:38:35 +00:00
Chih-Hung Hsieh
7ab1c81f6b Disable clang-tidy for some malloc tests.
The clang-analyzer-unix.Malloc and other warnings in these
unit tests are either false positive or in
negative tests that can be ignored.

Bug: 259995529
Test: presubmits; make tidy-bionic-libc_subset
Change-Id: Iddabe613d21d3717ba34f9e4d5bb97436279649f
2023-01-10 16:57:44 -08:00
zijunzhao
6daedb7c41 Nullability check for inttypes module
Bugs: b/245972273
Test: None
Change-Id: Ibc6edd389a9f7cb4d2d5f625ba67163eeda98979
2023-01-11 00:32:16 +00:00
Florian Mayer
e8e5151d57 Merge "Plumb scudo_ring_buffer_size to debuggerd_process_info" am: eae797db66
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2366539

Change-Id: I4182fe16b3a845c6f9f4305461e3d18639adb544
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-10 22:02:45 +00:00
Florian Mayer
eae797db66 Merge "Plumb scudo_ring_buffer_size to debuggerd_process_info" 2023-01-10 21:23:33 +00:00
Greg Kaiser
d07017f882 Merge "Match argument order in cpp file" am: a3d0bf05c3
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2380128

Change-Id: I1f56e7cc5dff6a73016bd7eef048b997ae3e5aad
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-09 23:46:35 +00:00
Greg Kaiser
a3d0bf05c3 Merge "Match argument order in cpp file" 2023-01-09 23:13:21 +00:00
Treehugger Robot
794917fc49 Merge "Add chiahungduan@ to OWNERS" am: e03c720561
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2380454

Change-Id: I18964346487a25e7781de92078de0f5aeb9c5907
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-09 22:01:29 +00:00
Treehugger Robot
e03c720561 Merge "Add chiahungduan@ to OWNERS" 2023-01-09 21:21:26 +00:00
Greg Kaiser
2335213e04 Match argument order in cpp file
We swap the 2nd and 3rd arguments to the CallocEntry constructor
to match the order in the cpp file, and match the C calloc convention.

We also fix an invocation of this constructor.

Change-Id: Iebe16d82a74459e5e957c1d9e2cc1aebb15150d0
Test: TreeHugger
2023-01-09 21:14:18 +00:00
Chia-hung Duan
cce220f0b3 Add chiahungduan@ to OWNERS
Test: n/a

Change-Id: Idb8e10fa0bd0352eed0419d6f380db4f66bc606f
2023-01-09 18:55:48 +00:00
Chia-hung Duan
97679a7bf2 Merge "Add the timestamps for each alloc data" am: 08af69ab7f am: bb3242aa02
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2292945

Change-Id: Iab4145a18c9d216689d68b83adf747ec4f229ade
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-08 02:28:27 +00:00
Chia-hung Duan
bb3242aa02 Merge "Add the timestamps for each alloc data" am: 08af69ab7f
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2292945

Change-Id: Ia524fb82c657c29e984b42ea217d1be1aab7421a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-08 01:56:33 +00:00
Chia-hung Duan
08af69ab7f Merge "Add the timestamps for each alloc data" 2023-01-08 01:23:56 +00:00
Treehugger Robot
92952a21e3 Merge "Nullability check for malloc module." am: 57c8646f59 am: 91ee7039ed
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2351603

Change-Id: Iae4cd36d9a041c24450fa35b6a1ae72d0623c8ce
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-07 02:33:27 +00:00
Treehugger Robot
91ee7039ed Merge "Nullability check for malloc module." am: 57c8646f59
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2351603

Change-Id: I167a51c3bdadadade82d55437c80ba64f574a517
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-07 02:00:21 +00:00
Treehugger Robot
57c8646f59 Merge "Nullability check for malloc module." 2023-01-07 01:28:42 +00:00
Treehugger Robot
cff8ebc812 Merge "Nullability check for syslog module." am: 7bede42cac am: 64c3026ac4
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2377650

Change-Id: I577374bcc4f9e1223d93351df7c3ba7ec6fc7f1c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-06 23:43:40 +00:00
Treehugger Robot
64c3026ac4 Merge "Nullability check for syslog module." am: 7bede42cac
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2377650

Change-Id: I823fe835784264543b0fa029317d2ff293bc9c4d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-06 23:08:36 +00:00
Treehugger Robot
7bede42cac Merge "Nullability check for syslog module." 2023-01-06 22:44:40 +00:00
zijunzhao
979d39cb82 Nullability check for syslog module.
Bugs: b/245972273
Test: None
Change-Id: I630597ac2101e16f5566208019a9a54e78fe5667
2023-01-06 20:22:58 +00:00
Florian Mayer
347dc623ec Plumb scudo_ring_buffer_size to debuggerd_process_info
This is a no-op but will be used in upcoming scudo changes that allow to
change the buffer size at process startup time, and as such we will no
longer be able to call __scudo_get_ring_buffer_size in debuggerd.

Bug: 263287052
Change-Id: I18f166fc136ac8314d748eb80a806defcc25c9fd
2023-01-05 14:07:22 -08:00
Ryan Prichard
c7dc6c3fe1 Merge "linker: Fix memory leak for reserved memory" am: f81ceb939e am: a64695952d
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2370012

Change-Id: I61d37cd4dfb66ba75506b05b974bef1267538236
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-05 22:07:19 +00:00
Treehugger Robot
4c57b75142 Merge "Nullability check for time module." am: 47fc44c73c am: 21b9b1c73e
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2374948

Change-Id: I0bbf045d42f935cdd09de92f987e29f1feb20097
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-05 22:07:09 +00:00
Chia-hung Duan
f7e8b17dc5 Add the timestamps for each alloc data
With timestamps, we are able to tell the details of allocator
performance such as the average time for malloc() in different size
class, the potential contention time by examing the overlap between
operations, .etc.

Not all malloc et al. operations are recorded with timestamp. Only
operations relates to memory usage change will have them.

Test: All unit tests pass.

Change-Id: I5c2016246a6f10b221387001bb44778969bb26ae
2023-01-05 22:05:42 +00:00
Ryan Prichard
a64695952d Merge "linker: Fix memory leak for reserved memory" am: f81ceb939e
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2370012

Change-Id: I676b929e8e6ba9ed9b6d4802559af3f85a16aa32
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-05 21:30:06 +00:00
Treehugger Robot
21b9b1c73e Merge "Nullability check for time module." am: 47fc44c73c
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2374948

Change-Id: Iaf82f4676cff022f577ae661d427cc255cdbcf22
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-05 21:29:29 +00:00
Ryan Prichard
f81ceb939e Merge "linker: Fix memory leak for reserved memory" 2023-01-05 21:19:52 +00:00
Treehugger Robot
8cd0e1a68a Merge "Merge librust_baremetal_defaults into its library" am: c22ef226a3 am: f0c02bf0c4
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2373931

Change-Id: If4ac595862ebeb1c68c5b9db160db83ad3172c73
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-05 21:11:07 +00:00
Treehugger Robot
47fc44c73c Merge "Nullability check for time module." 2023-01-05 21:01:55 +00:00