initrc file for Perfetto
This CL turns the perfetto daemons into two standalone
executable. Given the amount of shared code between the
two (traced and traced_probes) the code is shared in a
.so library.
Also adds the corresponding initrc files.
Corresponding /sepolicy/ changes:
https://android-review.googlesource.com/c/platform/system/sepolicy/+/574422
Change-Id: I3566d31757dd7fbf2478ca6512a6b655753a7fd6
diff --git a/tools/gen_android_bp b/tools/gen_android_bp
index 79416d4..0f7a05c 100755
--- a/tools/gen_android_bp
+++ b/tools/gen_android_bp
@@ -37,7 +37,6 @@
# Default targets to translate to the blueprint file.
default_targets = [
'//:libtraced_shared',
- '//:perfetto',
'//:perfetto_tests',
'//:perfetto',
'//:traced',
@@ -47,7 +46,9 @@
# Defines a custom init_rc argument to be applied to the corresponding output
# blueprint target.
-target_initrc = {} # TODO(primiano): populate in upcoming CLs.
+target_initrc = {
+ '//:traced': 'perfetto.rc',
+}
# Arguments for the GN output directory.
gn_args = 'target_os="android" target_cpu="arm" is_debug=false build_with_android=true'