History log of /frameworks/native/cmds/atrace/atrace.rc
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
267883d23d0891e7d9a1305c8f0977e0923c215d 18-May-2018 Carmen Jackson <carmenjackson@google.com> Add permissions for sync and fence tracepoints on user builds.

Bug: 79696988
Test: Took traces using 'sync' in user builds and saw the tracepoints
being saved.
Change-Id: Id6b6a1f85452c2a766ce08ad0eecebed58bc2be6
/frameworks/native/cmds/atrace/atrace.rc
7dbedde3d351d4a0e29689960923bea25d0b59ee 05-May-2018 android-build-team Robot <android-build-team-robot@google.com> Merge "atrace: add priority inheritance trace point" into pi-dev
ca49dfccbadab5ac57d4f8bb31b2a6a0a51c0fb2 04-May-2018 Wei Wang <wvw@google.com> atrace: add priority inheritance trace point

Task's prio can be changed in rt_mutex_setprio to avoid priority
inversion.

Test: Take a trace and check the new trace point
Bug: 78480031
Change-Id: I2989bfdeeec658300fb73c020bb447970b23bcf7
/frameworks/native/cmds/atrace/atrace.rc
b5878649620ab682c58a5050f5cbfd761f8c9fee 04-May-2018 Chris Fries <cfries@google.com> atrace.rc: Move tracefs permissions to late-init

init needs to be the first process to touch /sys/kernel/debug/tracing,
so let's enforce that by moving these chmod's earlier.

tracefs is an automounting filesystem, so the first consumer needs to
have permissions to do the mount.

Bug: 78460200
Change-Id: I15ff0be2ca046d44f8b3ad4abf845cf14c1bad23
/frameworks/native/cmds/atrace/atrace.rc
f277a7ea5c62c7b115ce2c11cd25c23a6983dde5 19-Apr-2018 Wei Wang <wvw@google.com> atrace.rc: make gfx tracing point available for non-root

Bug: 73168288
Bug: 78162216
Test: Build and take trace
Change-Id: I3fb9a64534668db1b5829493db6d697d3559cec6
/frameworks/native/cmds/atrace/atrace.rc
6039fb714785dee1c668028656f467559c88dbbf 28-Mar-2018 Florian Mayer <fmayer@google.com> Migrate filesystem ftrace events from userdebug.

This is to complement the change in http://aosp/631805, which changes
their SELinux policy from debugfs_tracing_debug to debugfs_tracing.

Bug: 74584014
Cherry-picked from commit 557343b00c94722edefa1f77e4c20c227390e78a
Change-Id: I99a6177bfb38dd888037016a5f49250959d6c141
Merged-In: I99a6177bfb38dd888037016a5f49250959d6c141
/frameworks/native/cmds/atrace/atrace.rc
14681db0b2938809b8cc37185d4d6b717e3f3906 20-Feb-2018 Wei Wang <wvw@google.com> atrace.rc: enable schedstats by default

Scheduler tracepoints stat_sleep, stat_iowait, stat_blocked and
stat_runtime require the kernel parameter schedstats=enable

Bug: 73652288
Test: build
Change-Id: I9e40742d7e328561aca00fd4989f3513382a747f
/frameworks/native/cmds/atrace/atrace.rc
385f7ee9643bb8e5bc53a3dcbcfa91f5237cc490 11-Jan-2018 Carmen Jackson <carmenjackson@google.com> Update filesystem permissions in atrace.rc to give selinux control.

These were previously restricted to shell user, but now that some apps
that require access, such as Traceur, are no longer running as the shell
user, these permissions must be loosened.

Selinux will now control access rights to these files completely, rather
than using a combination of unix permissions and selinux permissions.

- Removed chown sections because they're not necessary with chmod 666
- Included both debug and non-debug directory structures in
atrace_userdebug.rc

Bug: 68126425
Test: Traceur (outside of shell user) and command-line atrace both function.
Change-Id: Ie1ba4328a5cb3b9647acf9ef6e8aeeba61cb4961
/frameworks/native/cmds/atrace/atrace.rc
4dfca7c9d7decf492b244cd031d98c30c6a592eb 16-Jun-2017 Joel Fernandes <joelaf@google.com> atrace: Enable cgroup tracing

In prep for work involving analyzing cgroup CPU time distribution,
enable this trace category in systrace.

Bug: 37997910
Test: Enabled cgroup category by systrace as root/non-root

Change-Id: Ie16cc347c3399eedcd7604fc3e9af607a45f34dc
Signed-off-by: Joel Fernandes <joelaf@google.com>
/frameworks/native/cmds/atrace/atrace.rc
0094a2d5962ed81c6c624c900450d84f1967ba49 13-Jun-2017 Joel Fernandes <joelaf@google.com> atrace.rc: Correct path to saved_cmdlines_size when setting permission

Bug: 62375794

Change-Id: Ie252be152ba26aced63af55734d3155ad93f2919
Signed-off-by: Joel Fernandes <joelaf@google.com>
/frameworks/native/cmds/atrace/atrace.rc
ce964f2e6088761f3e2b22535010872327eff264 06-Jun-2017 Joel Fernandes <joelaf@google.com> atrace: setup saved_cmdlines_size and write only if available

Older kernels (bullhead etc) don't have saved_cmdlines_size, check and
write only if available. Also make work on non-root by setting
permissions in rc file (thanks John Reck for suggestion).

Bug: 62375794

Change-Id: Iefffc3203afd092ffb6cf420a144b38844aaee39
Signed-off-by: Joel Fernandes <joelaf@google.com>
/frameworks/native/cmds/atrace/atrace.rc
61167ba6f2a7c029de45041705b38dc04d6ec581 23-May-2017 Carmen Jackson <carmenjackson@google.com> Merge "Do not set the trace clock in atrace.rc." into oc-dev am: 27ef38ca4c
am: 755b10ddc3

Change-Id: If7306d6a2bd35a392aee6e2a6951781bead7cb78
69915f973399a8b4e948877ce0cadead1e1a577a 23-May-2017 Carmen Jackson <carmenjackson@google.com> Do not set the trace clock in atrace.rc.

This reverts only the atrace.rc change from commit ea826794184be368f65f099ceac4fc31234700f6.
"Set the atrace clock to the best available value: boot, mono, or global."

This change caused a 100+ms regression in boot time. We also confirm that
the clock is set to the correct value when we call atrace, so we will
still see correct behavior after reverting this change.

Bug: 38504158
Test: Manually tested that the trace clock is updated when atrace is
called.
Change-Id: Ifa302694964a4f9fc54db16e7125d5279067bbfd
/frameworks/native/cmds/atrace/atrace.rc
aeae88f981047a2a8486fc6a0b617ad1a934f037 20-May-2017 Carmen Jackson <carmenjackson@google.com> Merge "Set the atrace clock to the best available value: boot, mono, or global." into oc-dev am: bfe6bf6f31
am: 115d6cd1d7

Change-Id: I11606b0da51b924b2e51b2872cdd652d28e0cc7f
f1f62e3b73fa5b84a552332beeacce874fd9429c 18-May-2017 Marc Hittinger <trojal@google.com> Enable lowmemory trace events in atrace

Enable collection of lowmemory events in atrace as a category. These
events have been available in the kernel, but not exposed via atrace.

Bug: https://github.com/catapult-project/catapult/issues/3557
Test: Run "atrace memreclaim", trigger LMK events.
Change-Id: I92140518796bdda8b302d566d7d78e2129b9839c
/frameworks/native/cmds/atrace/atrace.rc
ea826794184be368f65f099ceac4fc31234700f6 05-May-2017 Carmen Jackson <carmenjackson@google.com> Set the atrace clock to the best available value: boot, mono, or global.

This reverts commit dc34097448a76a4bb09636f25567113d7a6551dc.
"Revert "Set the atrace clock to boot when possible and mono otherwise.""

...and includes a fix for devices that break with that change. Write will
fail with an Invalid Argument exception if we programmatically write a
value to the trace_file that doesn't exist in the file. So, we'll check
for both potential values we might set. If neither of them exist, fall
back to setting to 'global', which should be safe since we were doing it
before without checking.

Bug: 32379831
Test: cts-tradefed run singleCommand cts-dev --module
CtsAtraceHostTestCases passed.
Test: Manually examining trace_clock before and after running atrace shows that the
trace_clock changes as expected (for this test I disabled atrace.rc and added an
additional debug print statement):
$ cat /d/tracing/trace_clock
[local] global counter uptime perf mono boot
$ atrace --async_start freq
capturing trace...marlin:/ $ cat /d/tracing/trace_clock
local global counter uptime perf mono [boot]
$ atrace --async_stop > /dev/null
$ cat /d/tracing/trace_clock
local global counter uptime perf mono [boot]
$ atrace --async_start freq
clock is already correct!
$ atrace --async_stop > /dev/null

Change-Id: I267056d19bcdbea58881ab2b32f093caac5f14c1
/frameworks/native/cmds/atrace/atrace.rc
dc34097448a76a4bb09636f25567113d7a6551dc 05-May-2017 Carmen Jackson <carmenjackson@google.com> Revert "Set the atrace clock to boot when possible and mono otherwise."

This change broke CTS tests.

This reverts commit 56a2ba0b0009b6a8db7c385489e5fef4c0d32d0a.

Bug: 37906221
Test: cts-tradefed run singleCommand cts-dev --module
CtsAtraceHostTestCases passes locally.
Change-Id: Ia82732eac33fbde8bddc1e8de7a68c20befe760e
/frameworks/native/cmds/atrace/atrace.rc
56a2ba0b0009b6a8db7c385489e5fef4c0d32d0a 28-Apr-2017 Carmen Jackson <carmenjackson@google.com> Set the atrace clock to boot when possible and mono otherwise.

Bug: 32379831
Test: Inspected the trace_clock while running atrace, without including the .rc file change:
$ adb shell
marlin:/ # cat /d/tracing/trace_clock
[local] global counter uptime perf mono boot
marlin:/ # atrace --async_start freq
capturing trace...
marlin:/ # cat /d/tracing/trace_clock
local global counter uptime perf mono [boot]
marlin:/ # atrace --async_stop > /dev/null
marlin:/ # cat /d/tracing/trace_clock
local global counter uptime perf mono [boot]
marlin:/ # exit

Test: Inspected the trace_clock while running atrace, after the .rc file change:
$ adb shell
marlin:/ # cat /d/tracing/trace_clock
local global counter uptime perf mono [boot]
marlin:/ # atrace --async_start freq
capturing trace...
marlin:/ # cat /d/tracing/trace_clock
local global counter uptime perf mono [boot]

Change-Id: I9ec88df109b311b90c9d88fe3a70f9ce090b4d15
/frameworks/native/cmds/atrace/atrace.rc
2cd93cc4ce68da81815351db75cbda4b357e6753 17-Jan-2017 Paul Lawrence <paullawrence@google.com> Update atrace to work with tracefs, not debugfs

When tracefs is mounted, tracing is under /sys/kernel/tracing not
/sys/kernel/debug/tracing. Modify atrace to detect this situation and
get the right files.

Bug: 31856701
Test: Run atrace, check output is same where ever tracefs is mounted
Change-Id: I78df0da91d9f56c56077d1b8b9dba7b0126b2d8d
/frameworks/native/cmds/atrace/atrace.rc
ab54f68b7c16a2278f7eaf05ab4ebea1e0401096 18-Aug-2016 Michael Wright <michaelwr@google.com> Add i2c tracing support to atrace

Cherry-picking from internal master

Test: None
Change-Id: Iaf0daa0982bd8d2355d3590d43ad78711e764ee0
/frameworks/native/cmds/atrace/atrace.rc
835180a675147ef7dd2a325016efd3b45523acc7 20-Nov-2016 Wei Wang <wvw@google.com> atrace.rc: move to post-fs trigger

Test: manually
Bug: 32025203
Change-Id: I787984fc8ab7151ecce9e62a25fa03b0ecf263cd
/frameworks/native/cmds/atrace/atrace.rc
23d030256136620102f9da216d2f3758ac1c13f3 12-Oct-2016 Wei Wang <wvw@google.com> Move atrace init into on fs trigger

sysfs should be ready on ealier stage than boot

Bug: 32025203
Test: take systrace
Change-Id: Id73b6959f3075dc793d93551963193a211060da8
/frameworks/native/cmds/atrace/atrace.rc
e28d4180ebefdac9c4c5cae0e94ad29bdc5a51de 17-Dec-2015 Nick Kralevich <nnk@google.com> Merge "atrace.rc: tracing should be disabled by default." am: cbd4cc737c
am: 982e451512

* commit '982e4515128f69638249427715ad9bb321361aa8':
atrace.rc: tracing should be disabled by default.
cc7f8ad7d5837e764fdc6242839213c20e7f84fc 16-Dec-2015 Nick Kralevich <nnk@google.com> atrace.rc: tracing should be disabled by default.

Bug: 26217098
Change-Id: I6066c433d19c2d1c220669a9a78f5085af8c1d4b
/frameworks/native/cmds/atrace/atrace.rc
cfe500d01f0bf47f23d175b7998c43261951ec68 23-Nov-2015 Ruchi Kandoi <kandoiruchi@google.com> sched: Adds the optional tracing for CPU hotplug.

Change-Id: Ibff70a2176f8b8e2ba18a9246c350b990d545962
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
/frameworks/native/cmds/atrace/atrace.rc
bb5a53e19d98f4a9f9b617b47be64025859dc80b 30-Nov-2015 Ruchi Kandoi <kandoiruchi@google.com> Merge "atrace: Add trace points for cpu frequency limits."
ffcc71175aa6c6ed9e3a3deb446f8ba561d63df5 20-Nov-2015 Ruchi Kandoi <kandoiruchi@google.com> atrace: Add trace points for cpu frequency limits.

Change-Id: I6a20eaedb2943c3cde137ec091d898fc250ea763
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
/frameworks/native/cmds/atrace/atrace.rc
5672bb755e306d9c315c47190df4a79f7f52889c 19-Nov-2015 Riley Andrews <riandrews@google.com> Add support for new sched kernel tracepoint

This tracepoint gives systrace the means to display the reason
for uninterruptible sleep.
/frameworks/native/cmds/atrace/atrace.rc
f4cb3cea6671c114930bbff12a91e65144697d9a 03-Sep-2015 Tom Cherry <tomcherry@google.com> move init.trace.rc to frameworks/native

init.trace.rc will be renamed to atrace.rc and use the LOCAL_INIT_RC
mechanism to be included on /system appropriately.

Bug 23186545

Change-Id: Ic5833b4bb6e6364e4fef6ab4882ae75f8f3856e9
/frameworks/native/cmds/atrace/atrace.rc