922e418f4575c38556b4c217a18b7a79c5a8a8c8 |
|
13-Jun-2017 |
Joel Fernandes <joelaf@google.com> |
atrace.rc: Correct path to saved_cmdlines_size when setting permission Bug: 62375794 Test: CTS test Change-Id: Ie252be152ba26aced63af55734d3155ad93f2919 Signed-off-by: Joel Fernandes <joelaf@google.com> (cherry picked from commit 0094a2d5962ed81c6c624c900450d84f1967ba49)
/frameworks/native/cmds/atrace/atrace.rc
|
9351f72049a2bc65170afcf131008c8bd1710959 |
|
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
|
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
|
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
|