platform_bionic/libc/system_properties
Bowgo Tsai d0ecf0b30d Adding system property tracing
Introducing a new systrace tag, TRACE_TAG_SYSPROP, for use with
system property.

For property set, the tracing is added in __system_property_set() instead of
__system_property_update() / __system_property_add() so we can record
control properties like ctl.*, sys.powerctl.*, etc.., which won't be
updated via the latter two functions.

Bug: 147275573
Test: atest CtsBionicTestCases
Test: adb shell perfetto -o /data/misc/perfetto-traces/test_trace -t 10s bionic
Test: adb shell perfetto -o /data/misc/perfetto-traces/test_trace -t 10s sysprop
Test: adb shell /data/benchmarktest64/bionic-benchmarks/bionic-benchmarks \
      --benchmark_filter=BM_property --bionic_cpu=4, then compares the results
      of property benchmarks before and after the change, didn't see
      significant difference.

Change-Id: Id2b93acb2ce02b308c0e4889f836159151af3b46
Merged-In: Id2b93acb2ce02b308c0e4889f836159151af3b46
(cherry picked from commit 26970c3493)
2020-08-19 12:47:01 +08:00
..
include/system_properties Adding system property tracing 2020-08-19 12:47:01 +08:00
Android.bp Adding system property tracing 2020-08-19 12:47:01 +08:00
context_node.cpp Fix PROP_FILENAME_MAX overflow handling 2018-05-01 18:19:21 -07:00
contexts_serialized.cpp Add PR_SET_VMA and PR_SET_VMA_ANON_NAME to <sys/prctl.h>. 2018-08-22 10:36:23 -07:00
contexts_split.cpp Cleanup for #inclusivefixit. 2020-07-28 10:56:12 -07:00
prop_area.cpp Split properties into their own class to make testing better 2017-12-18 15:17:55 -08:00
prop_info.cpp Split properties into their own class to make testing better 2017-12-18 15:17:55 -08:00
prop_trace.cpp Adding system property tracing 2020-08-19 12:47:01 +08:00
system_properties.cpp Adding system property tracing 2020-08-19 12:47:01 +08:00