Primiano Tucci | 5a30453 | 2018-01-09 14:15:43 +0000 | [diff] [blame] | 1 | # Copyright (C) 2017 The Android Open Source Project |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | service traced /system/bin/traced |
| 16 | class late_start |
| 17 | disabled |
| 18 | socket traced_consumer stream 0666 root root |
| 19 | socket traced_producer stream 0666 root root |
| 20 | user nobody |
| 21 | group nobody |
| 22 | writepid /dev/cpuset/system-background/tasks |
| 23 | |
| 24 | service traced_probes /system/bin/traced_probes |
| 25 | class late_start |
| 26 | disabled |
| 27 | user nobody |
| 28 | group shell |
| 29 | writepid /dev/cpuset/system-background/tasks |
| 30 | |
Primiano Tucci | 7175882 | 2018-01-25 12:51:45 +0000 | [diff] [blame^] | 31 | on property:persist.traced.enable=1 |
Primiano Tucci | 7e2b67a | 2018-01-16 16:38:49 +0000 | [diff] [blame] | 32 | # Trace files need to be: |
| 33 | # - Written by either uid:shell or uid:statsd. |
Primiano Tucci | 7175882 | 2018-01-25 12:51:45 +0000 | [diff] [blame^] | 34 | # - Read by shell and dropbox (dropbox is part of system_server). |
Primiano Tucci | 7e2b67a | 2018-01-16 16:38:49 +0000 | [diff] [blame] | 35 | # When written to dropbox, they are persistet in the perfetto-traces folder |
| 36 | # only for the time it takes to make a dropbox call, and unlinked |
| 37 | # immediately in any case. |
| 38 | mkdir /data/misc/perfetto-traces 0773 root shell |
| 39 | |
Primiano Tucci | 5a30453 | 2018-01-09 14:15:43 +0000 | [diff] [blame] | 40 | start traced |
| 41 | start traced_probes |