Akilesh Kailash
6d45f1404e
Merge "Revert "libsnapshot: set thread priority"" into main am: 35bd4d8f30
am: 283b2037ce
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3128361
Change-Id: Ibae24a7574c0d77194596128ab053c5000c4ad11
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-12 20:33:58 +00:00
Akilesh Kailash
283b2037ce
Merge "Revert "libsnapshot: set thread priority"" into main am: 35bd4d8f30
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3128361
Change-Id: I4109dc8c87570fdd7bbdb189fa4368ac67c632af
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-12 20:18:14 +00:00
Akilesh Kailash
35bd4d8f30
Merge "Revert "libsnapshot: set thread priority"" into main
2024-06-12 20:06:10 +00:00
Daniel Zheng
0cc44e2a83
Merge changes Iba59fdc3,I812fccf2 into main am: 8d63f0080a
am: f2500732b9
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3114109
Change-Id: Ia941458c7f0ebdfd5ec69a92e2b293b86f6500b5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-12 19:08:41 +00:00
Daniel Zheng
6b0d51fa18
Merge "libsnapshot: pass build config o_direct" into main am: 54d6c0cf45
am: 53d6dc7609
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3101423
Change-Id: I1acee58335ea580f131c481d60e23919c5f060ce
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-12 19:07:48 +00:00
Daniel Zheng
f2500732b9
Merge changes Iba59fdc3,I812fccf2 into main am: 8d63f0080a
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3114109
Change-Id: Icf8a1278e1957f140f48fb88d4d50c4dca9ccfc0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-12 18:53:26 +00:00
Daniel Zheng
53d6dc7609
Merge "libsnapshot: pass build config o_direct" into main am: 54d6c0cf45
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3101423
Change-Id: I53ca11d624cd503aff12b376672736639960a2ea
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-12 18:53:11 +00:00
Daniel Zheng
0168ec74d0
Revert "libsnapshot: set thread priority"
...
This reverts commit db560090e4
.
Reason for revert: breakage on aosp-main
Change-Id: Ib3384dce1e08dd19bce305eee4249d7167d74e10
2024-06-12 18:32:57 +00:00
Daniel Zheng
8d63f0080a
Merge changes Iba59fdc3,I812fccf2 into main
...
* changes:
libsnapshot: configure threshold size
libsnapshot: set thread priority
2024-06-12 18:22:44 +00:00
Daniel Zheng
db560090e4
libsnapshot: set thread priority
...
Read merge thread + worker thread priority from build configurations. In
the case of low memory devices, a lower priority will reduce CPU
utilization post OTA reboot.
Test: th
Change-Id: I812fccf2ca805d9686a837774e1770a2eebf979a
2024-06-12 11:21:38 -07:00
Daniel Zheng
28801377a5
libsnapshot: configure threshold size
...
Test: th
Change-Id: Iba59fdc3e1188dd343314d129806d2c4c94aa8c5
2024-06-12 11:21:38 -07:00
Daniel Zheng
54d6c0cf45
Merge "libsnapshot: pass build config o_direct" into main
2024-06-12 18:14:27 +00:00
Treehugger Robot
bf85dfabff
Merge "toolbox/modprobe: Load modules from /lib/modules based on page size" into main am: 441f39230e
am: e3a1b98495
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3124933
Change-Id: I17b6d4d4259d960a37c5f55b16a7ba6f6cd9d013
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-12 15:32:01 +00:00
Treehugger Robot
e3a1b98495
Merge "toolbox/modprobe: Load modules from /lib/modules based on page size" into main am: 441f39230e
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3124933
Change-Id: I6a19514aa824ef775f03576a63b39790bca74451
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-12 15:13:02 +00:00
Treehugger Robot
441f39230e
Merge "toolbox/modprobe: Load modules from /lib/modules based on page size" into main
2024-06-12 14:56:06 +00:00
Juan Yescas
64776335c0
toolbox/modprobe: Load modules from /lib/modules based on page size
...
Load modules from /lib/modules for 4kb page size kernels when
the -d option is not present. Do not do this for 16kb page size kernels
due it will load the 4kb modules when PRODUCT_16K_DEVELOPER_OPTION
is true.
Depending on the value of PRODUCT_16K_DEVELOPER_OPTION, the
kernel modules can be located in several directories:
- true: There are 2 directories that contain the 4kb and 16kb
modules.
- 4kb modules are in /lib/modules
- 16kb modules are in /lib/modules/<uname -r>_16k
- false: There is only one directory that contains only one type
of the kernel modules, either 4kb or 16kb.
- /lib/modules
This is a temporary fix for the 16kb developer option. This
b/346659501 will track the proper fix.
Test: Boot target husky-trunk_staging-userdebug with developer
option.
Test: Boot target husky_pgagnostic-next-userdebug without developer
option.
Bug: 345609905
Bug: 343971855
Change-Id: I9bab33d9f06743bd10ee804b20db8f39467fcc52
2024-06-11 18:41:49 -07:00
Bart Van Assche
34c50ae37e
Merge "Revert "Make foreground and background I/O priority different"" into main am: 0b2f24ceb1
am: 59e4997280
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3126515
Change-Id: I1d7c58793b47bcac18352e1d2ececaedbe4c6ea1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-11 23:32:46 +00:00
Bart Van Assche
59e4997280
Merge "Revert "Make foreground and background I/O priority different"" into main am: 0b2f24ceb1
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3126515
Change-Id: I1dd7a5eb5c8d3d31267f82b98eefda8ab32eac48
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-11 23:27:54 +00:00
Spandan Das
cb87b7d6d2
Merge "Add libz to static libs of libutils_test" into main am: 8bc0ee30bf
am: afe62313db
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2919586
Change-Id: Ie241efaa8b49439d11caaf63cbb04a12ffbab871
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-11 23:19:07 +00:00
Treehugger Robot
773220e50b
Merge changes I68fa51f8,Ia16aa041,Iba57f5cf into main am: 4c5b2303b9
am: 296446e368
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3114672
Change-Id: Icd6644c5eb6890250209cd3066291c8b42b40455
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-11 23:17:56 +00:00
Bart Van Assche
0b2f24ceb1
Merge "Revert "Make foreground and background I/O priority different"" into main
2024-06-11 23:14:34 +00:00
Spandan Das
afe62313db
Merge "Add libz to static libs of libutils_test" into main am: 8bc0ee30bf
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2919586
Change-Id: I6fc236f5d4a94b9ff08890fc39ba2dee4e63b6d5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-11 23:13:12 +00:00
Spandan Das
8bc0ee30bf
Merge "Add libz to static libs of libutils_test" into main
2024-06-11 23:08:56 +00:00
Treehugger Robot
296446e368
Merge changes I68fa51f8,Ia16aa041,Iba57f5cf into main am: 4c5b2303b9
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3114672
Change-Id: Ibcf0ea9e83d2f8e7936f52dc6d9f6002a36b8bb8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-11 23:02:54 +00:00
Treehugger Robot
4c5b2303b9
Merge changes I68fa51f8,Ia16aa041,Iba57f5cf into main
...
* changes:
libprocessgroup: Remove unused includes; add missing ones
libprocessgroup: Don't delegate to default constructor
libprocessgroup: Use default member initializers
2024-06-11 22:45:24 +00:00
Sijie Chen
010fed6467
Merge "[CrashReporting] Correct guest arch init" into main am: c438dab75e
am: 4269705b0c
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3126753
Change-Id: I67c06d110ae0772499184baa049cb497a00bd8ef
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-11 20:57:39 +00:00
Sijie Chen
4269705b0c
Merge "[CrashReporting] Correct guest arch init" into main am: c438dab75e
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3126753
Change-Id: Ic64e9b98306f855ed23b42242f069abd4ce145b6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-11 20:42:55 +00:00
Sijie Chen
c438dab75e
Merge "[CrashReporting] Correct guest arch init" into main
2024-06-11 20:27:36 +00:00
Daniel Zheng
9a3a1a14b4
libsnapshot: pass build config o_direct
...
If o_direct is enabled in build configuration, forward this argument to
snapuserd when the daemon is started.
Bug: 332255580
Test: th
Change-Id: I8e4be5503665031735dba2ebc748e209c45df942
2024-06-11 13:20:23 -07:00
Bart Van Assche
4cb11951e2
Revert "Make foreground and background I/O priority different"
...
It has been reported that CL "Make foreground and background I/O
priority different" causes Android devices equipped with eMMC storage
to reboot if there is sufficient I/O activity. Hence revert commit
7f3fe0aaf2
.
Bug: 186902601
Bug: 342034992
Change-Id: I4fa9c782eb0e801b410cb358e20fe41acebe1094
Signed-off-by: Bart Van Assche <bvanassche@google.com>
2024-06-11 20:17:44 +00:00
T.J. Mercier
54bfde03e1
libprocessgroup: Remove unused includes; add missing ones
...
No functional changes.
Bug: 346584259
Test: m
Change-Id: I68fa51f86b6baaa34fb2cdfdc16a4d1ff61e1e5f
2024-06-11 18:24:34 +00:00
T.J. Mercier
10826481ba
libprocessgroup: Don't delegate to default constructor
...
Manually calling a defaulted default constructor from a another
constructor is superfluous, and can increase code size if the default
constructor is not otherwise used. There's nothing to delegate, so
remove the call.
Bug: 346584259
Test: m
Change-Id: Ia16aa041fdee7434587cf90645d7f95cba4e0d10
2024-06-11 18:24:23 +00:00
T.J. Mercier
df67107ac4
libprocessgroup: Use default member initializers
...
... instead of direct initialization in the default constructor
implementation. This allows us to just explicitly default the
constructor and provide no implementation.
Initialize class variables in the header and remove no-op constructor
to simplify code.
Bug: 346584259
Test: m
Change-Id: Iba57f5cfbf8e4d5d18ce178d39f8bcd2d76c8aaa
2024-06-11 18:23:58 +00:00
Sijie Chen
06603fe143
[CrashReporting] Correct guest arch init
...
Init guest arch to NONE, otherwise Arm32 will be used.
Bug: 288392666
Test: NA
Change-Id: Ib92b0351401b700a18d03e21a68569c2811d163c
2024-06-11 17:51:48 +00:00
Kiyoung Kim
864a14af31
Merge "Make public.libraries.android.txt available to filesystem" into main am: fb30388ac1
am: 9cb1921b42
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3107757
Change-Id: I221c4a7c21c797f197ff9fb77d50ebdc2c5c2b8e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-10 04:40:34 +00:00
Kiyoung Kim
9cb1921b42
Merge "Make public.libraries.android.txt available to filesystem" into main am: fb30388ac1
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3107757
Change-Id: Ie9657c616d5e5008035aa50dff5b432a4b065d98
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-10 04:18:38 +00:00
Kiyoung Kim
fb30388ac1
Merge "Make public.libraries.android.txt available to filesystem" into main
2024-06-10 04:02:16 +00:00
Treehugger Robot
274952982b
Merge "Add reserved to CrashDetail proto" into main am: c623193110
am: 4942b5db85
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3108167
Change-Id: Icd5a3c4a7c59cc35dca436f79175427ca1287d9c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-07 21:21:23 +00:00
Treehugger Robot
4942b5db85
Merge "Add reserved to CrashDetail proto" into main am: c623193110
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3108167
Change-Id: Ia5acccce99f3a4a64de7cfaea89d5987f3c67860
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-07 21:06:57 +00:00
Treehugger Robot
c623193110
Merge "Add reserved to CrashDetail proto" into main
2024-06-07 20:53:06 +00:00
Greg Kaiser
ebc71cd929
Merge "Update zygote32 rc file to match others" into main am: 94ba56b68d
am: e302d99348
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3118538
Change-Id: Ib6c5823a0638d26f071b213c2784b6547f71c805
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-06 21:45:38 +00:00
Greg Kaiser
e302d99348
Merge "Update zygote32 rc file to match others" into main am: 94ba56b68d
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3118538
Change-Id: Ic5188e35ea216833c83cd959ef359fd9834120dd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-06 21:16:03 +00:00
Greg Kaiser
94ba56b68d
Merge "Update zygote32 rc file to match others" into main
2024-06-06 20:57:51 +00:00
Greg Kaiser
f2064c3a0d
Update zygote32 rc file to match others
...
In I3aad4b4b1d2f54db9e7ba86db8a655d8552bad0a we set MaxPerformance
for zygote64_32, and in I7fcceeb22b722c2164b9acf0b517a32ce34731fd
we synced up zygote64 to match this.
However, this change never made it into the zygote32 rc file,
which we fix here.
Bug: 324014808
Test: Basic testing on 32-bit device
Change-Id: I6f0c4490330d05551952fd5d844e02a6b638ca68
2024-06-06 19:11:27 +00:00
Will Deacon
9963d9fd0e
Merge changes from topic "modprobe-pgsize-fix" into main am: 0cb931b1ce
am: e8d6ed0547
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3110063
Change-Id: I1d2e30a5d6fd96f26fda48a8a0502a499ea0d3a1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-06 15:40:50 +00:00
Will Deacon
e8d6ed0547
Merge changes from topic "modprobe-pgsize-fix" into main am: 0cb931b1ce
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3110063
Change-Id: Ib63b913ebfc40413cb7fbe9b54e3b7cef2c0df7d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-06 15:24:54 +00:00
Will Deacon
0cb931b1ce
Merge changes from topic "modprobe-pgsize-fix" into main
...
* changes:
toolbox/modprobe: Filter module directories based on kernel page size
Revert "Load modules from _16K dir when running on 16K kernel"
2024-06-06 15:09:26 +00:00
Will Deacon
c991c3dbed
toolbox/modprobe: Filter module directories based on kernel page size
...
When modules for multiple kernels with the same major/minor versions
are installed on a device, modprobe will search the module directories
based on whatever order scandir() returned them. In this case, it is
possible that we will try to load modules with the wrong page size for
the running kernel, which can lead to obscure symbol CRC mismatches and
ultimately a system crash.
Adjust the scandir() filtering function so that the kernel page size is
taken into account in addition to the major/minor versions returned by
utsname(). The general rule is that module directories ending in "_Nk"
contain modules for a page-size of N KiB, whilst the absence of such
a suffix implies the default of 4 KiB.
Bug: 343971855
Test: Verified that _16k module directory is excluded by modprobe when running in userspace fastboot with 4k pages.
Change-Id: I78a0a249028bbb0bcdd78eb14de36e631e233be0
2024-06-06 11:22:07 +00:00
Yihan Dong
93bc0eb115
Merge "Add proposed trendy teams for CTS modules" into main am: 30d0608988
am: b99af91eba
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3115379
Change-Id: I85c78e22b100c3df647ba47f8ec1cf8c907871d5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-06 02:26:00 +00:00
Yihan Dong
b99af91eba
Merge "Add proposed trendy teams for CTS modules" into main am: 30d0608988
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3115379
Change-Id: I50adaffbff3b605200132777a9c9f623415384dd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-06 02:06:54 +00:00