summaryrefslogtreecommitdiff
path: root/profcollectd/libprofcollectd
AgeCommit message (Collapse)Author
2021-02-12[LSC] Add LOCAL_LICENSE_KINDS to system/extrasBob Badour
Added SPDX-license-identifier-Apache-2.0 to: boot_control_copy/Android.bp bootctl/Android.bp boottime_tools/bootanalyze/stressfs/Android.bp boottime_tools/bootio/Android.bp checkpoint_gc/Android.bp cppreopts/Android.bp crypto-perf/Android.bp ext4_utils/Android.bp ext4_utils/Android.mk f2fs_utils/Android.bp ioshark/Android.bp iotop/Android.bp kexec_tools/Android.bp latencytop/Android.bp libfec/Android.bp libfec/test/Android.bp libfscrypt/Android.bp libfscrypt/tests/Android.bp libjsonpb/parse/Android.bp libjsonpb/verify/Android.bp memory_replay/Android.bp memtrack/Android.bp mmap-perf/Android.bp module_ndk_libs/libnativehelper/Android.bp multinetwork/Android.bp pagecache/Android.bp partition_tools/Android.bp perf2cfg/Android.bp postinst/Android.bp preopt2cachename/Android.bp profcollectd/Android.bp profcollectd/libprofcollectd/Android.bp profcollectd/libprofcollectd/bindings/libflags/Android.bp puncture_fs/Android.bp runconuid/Android.bp sane_schedstat/Android.bp showslab/Android.bp simpleperf/Android.bp simpleperf/runtest/Android.bp simpleperf/scripts/inferno/Android.bp simpleperf/simpleperf_app_runner/Android.bp slideshow/Android.mk sound/Android.bp squashfs_utils/Android.bp su/Android.mk taskstats/Android.bp tests/Android.bp tests/audio/alsa/Android.bp tests/binder/benchmarks/Android.bp tests/bootloader/Android.mk tests/cpueater/Android.bp tests/crypto/Android.bp tests/directiotest/Android.bp tests/ext4/Android.mk tests/framebuffer/Android.bp tests/fstest/Android.bp tests/icachetest/Android.bp tests/iptables/qtaguid/Android.bp tests/kernel.config/Android.mk tests/lib/Android.bp tests/lib/testUtil/Android.bp tests/memeater/Android.mk tests/pagingtest/Android.mk tests/pftest/Android.bp tests/schedtest/Android.bp tests/storage/Android.bp tests/suspend_stress/Android.bp tests/tcp_nuke_addr/Android.bp tests/timetest/Android.bp tests/uevents/Android.bp toolchain-extras/Android.bp vbmeta_tools/Android.bp verity/Android.bp verity/fec/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to: cpustats/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_notice to: Android.bp Added SPDX-license-identifier-BSD to: ANRdaemon/Android.bp Added legacy_notice to: alloc-stress/Android.bp app-launcher/Android.bp brillo_config/Android.mk ioblame/Android.bp partition_tools/aidl/Android.bp pssbench/Android.mk zram-perf/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: Ie7c022a4d7f828a89d0cda663684a497af37006e
2021-02-09libprofcollectd: Use libbinder_rs Strong references for Binder objectsStephen Crane
Update libprofcollectd to use libbinder_rs Strong<> references for Binder objects. Bug: 175584883 Test: m libprofcollectd Change-Id: I367e544ad18cdc9d340b6875be79a4980451832c
2021-02-08profcollectd: Rust bindings for libflagsYi Kong
To be used by complete Rust rewrite of profcollect. Test: rustc Bug: 163175424 Change-Id: I14f82030bfc5dc9c7790cbe5f1d5d65130a05a19
2020-11-11profcollectd: Move some binder client side methods to RustYi Kong
Test: run profcollectctl Bug: 163175424 Change-Id: I69dd8329a17d3e54ac283ff65b1fd207b7bea522
2020-11-02profcollectd: Add enabled flagYi Kong
Disable profcollectd by default, unless turned on through device config. This is controlled in the binder service, instead of scheduler, to reduce the amount of code being used when the feature is off. Test: flash device Bug: 79161490 Change-Id: I612c81db6a33cbecc4205854b229235efb665e2b
2020-10-28profcollectd: Use device_config to control behavioursYi Kong
This allows server to push out experiment studies. Also applied clang-format. Test: build Test: adb shell device_config put profcollect_native_boot KEY VALUE Bug: 79161490 Change-Id: I0ad5c1d01d7b832885ce772f9bbc772c895ed03e
2020-09-11profcollectd: remove option for output pathsYi Kong
Since we enabled SELinux policies for profcollectd builds, these paths are no longer flexiable. Also move report file to the data partition since we don't have permission to write to /sdcard. Test: run profcollect Bug: 79161490 Change-Id: I448b3263491b1a69f14a83834b1b299b5b490846
2020-09-08profcollectd: Separate profile processing and reporting into two commandsYi Kong
This allows the system to perform processing during system idle, saving profile disk space that accumulates over time. Test: build Bug: 79161490 Change-Id: I3cdf3ecb2d7d02cd72cd5f85339d92824703eeb6
2020-08-19Move include/libprofcollectd.rsChih-Hung Hsieh
* It shouldn't be C++ export_include_dirs. * Rust library source file is usually lib.rs in its own or src directory. Bug: 163175424 Test: make Change-Id: Ia4a7e7f43ce03b2d9d5fd18a0d3f3f36e633abe5
2020-08-18profcollectd: Rename config env to persist.*Yi Kong
... otherwise the option gets reset after reboot. Test: TreeHugger Bug: 79161490 Change-Id: Id0ce62735fb51faafe933206be6f4b9827f8718f
2020-08-18a libprofcollectd wrapper in RustYi Kong
* Rewrite profcollectd frontends in Rust. * Keep libprofcollect.hpp as a C++ header file; use bindgen to generate Rust FFI declarations. * Use rust module libprofcollect as a safe wrapper to the extern "C" FFI functions. Bug: 163175424 Test: run profcollectd and profcollectctl Change-Id: Iea92dfc87621a50e47e904b7e992643fc1dc8d7a
2020-07-22profcollectd: Add binder call to check the supported providerYi Kong
This allows the forward service to avoid wasting resources if no provider is available on the device. Bug: 79161490 Test: build Change-Id: Ic7cf646e9f8a4390440be824186deb7b2f256c82
2020-07-16profcollectd: Don't exit if no trace provider is foundYi Kong
We need profcollectd to idle and ignore all requests in such case, so that the event forwarding service won't need to constantly trying to connect to it. Bug: 79161490 Test: build Change-Id: Id60baa6c975d1d580f227ef44a3d9b502b844847
2020-07-01profcollectd: Accept a tag argument to trace commandYi Kong
This allows us to differentiate the source of trace request. Bug: 79161490 Test: make Change-Id: I80229e6d325d6bec986f417c9fa1438f19b1191f
2020-07-01profcollectd: Update binder class namespaceYi Kong
Make the binder class live alongside the forwarding service (com.android.server.profcollect). Test: build Bug: 79161490 Change-Id: I49baab71ffbfd7db2b2f4e6b5319f2629e155978
2020-06-23profcollectd: initial importYi Kong
A daemon to collect, process, and upload sampling traces to aid platform AutoFDO optimisation. Bug: 79161490 Change-Id: Icf9927c56c3d4c6ea7562be4706c0d2f309db341