summaryrefslogtreecommitdiffstats
path: root/cmds/atrace
Commit message (Collapse)AuthorAgeFilesLines
* atrace: make fs-specific sysfs entries optionalGreg Hackmann2014-11-201-8/+8
| | | | | | | | | | The availability of these sysfs entries will vary based on the kernel's supported filesystems, so don't block the disk category if some of them are missing. Bug: 18467498 Change-Id: I96200f1b5cf3f1a8fa8186602552adc96ddffc04 Signed-off-by: Greg Hackmann <ghackmann@google.com>
* atrace: fix Sync Manager tracing preventing enabling of kernel sync tracingPatrick Auchter2014-10-271-1/+1
| | | | | | | | | | | Both Sync Manager tracing and kernel sync tracing were using "sync" to enable tracing and since Sync Manager was found first, this prevented enabling kernel sync tracing. To fix this, use "syncman" to enable Sync Manager tracing. Change-Id: Id3b799e01e5041c582cd752c8c40d3e36954f821 Signed-off-by: Iliyan Malchev <malchev@google.com>
* atrace: avoid unnecessary writes to trace_clockColin Cross2014-08-201-1/+46
| | | | | | | | | | | | | Writing to trace_clock erases the trace buffer, even if the value hasn't changed. This prevents use of --async_start and --async_dump to leave background tracing running and dump after an even that needs debugging, because --async_dump writes to trace_clock and resets the buffer before it can read it. Read and parse the current value from trace_clock before writing, and skip the write if the value isn't changing. Change-Id: Ia2ec5bb654fb0bd179771b511ff261731ba47dca
* atrace: add memory reclaim tracingColin Cross2014-08-181-0/+6
| | | | | | | Add "memreclaim" to trace direct reclaim, shrink slab cycles, and kswapd waking up and sleeping. Change-Id: I4cfb313820a3a9aa5a9d07a39c42db41c24304a6
* atrace: Add IRQ eventsDan Willemsen2014-08-181-0/+3
| | | | | | Add "irq" to trace irq and softirq events. Change-Id: I45356c2912a1fa130667ada7b21e9fb54ddcfba5
* Add trace tag for power management.Jeff Brown2014-08-141-0/+3
| | | | | | | Also added a couple of other existing missing tags in atrace. Bug: 17004602 Change-Id: I6f697a2a15922bd4695acfa203d45eaae40cd00e
* am e77cb931: am 259c2508: am 03e2f8fa: Merge "Modified atrace.cpp to ↵Elliott Hughes2014-05-291-0/+1
|\ | | | | | | | | | | | | recognize ATRACE_TAG_BIONIC." * commit 'e77cb9317de54ea0041eeef7966b818257158f64': Modified atrace.cpp to recognize ATRACE_TAG_BIONIC.
| * Modified atrace.cpp to recognize ATRACE_TAG_BIONIC.Brigid Smith2014-05-281-0/+1
| | | | | | | | | | Bug: 15116468 Change-Id: I621532fb53b8317f5a513edfbeb0c50c265342fc
* | atrace: Add f2fs sync and ext4 write tracepoints.Mohamad Ayyash2014-04-111-1/+7
|/ | | | Change-Id: I76fa32f7d80aaeafc26494d9018b7a004e7dc3d2
* native frameworks: 64-bit compile issuesMark Salyzyn2014-03-121-2/+3
| | | | | | | - Fix format (print/scanf) - Suppress unused argument warning messages (bonus) Change-Id: I05c7724d2aba6da1e82a86000e11f3a8fef4e728
* Add support for mmc trace eventsKen Sumrall2013-07-031-0/+3
| | | | Change-Id: I1d9f2a85e50f8e30d418fb97c01ce7b0fbb680bd
* Add RenderScript category for atrace.Tim Murray2013-05-231-0/+1
| | | | Change-Id: I069a301329f4a579c7b2716fa52c3f4a0ae0062b
* atrace: add the 'dalvik' trace categoryJamie Gennis2013-05-071-0/+1
| | | | | Bug: 8856374 Change-Id: Ie7759328333d21d8123ce9d4f1a177cae5ede51e
* Add new resources trace.Dianne Hackborn2013-04-121-0/+1
| | | | Change-Id: Iab8c1ef51f491e818fb4bab0ba7a042f0d9bec9a
* atrace: add support for app tracingJamie Gennis2013-03-281-3/+26
| | | | | | | | This change adds support for the -a command line argument to atrace. This argument sets the comma separated list of application names (i.e. /proc/self/cmdline values) for which to enable application-level tracing. Change-Id: I812d57c4cdc581943247229413f09b7e1adc10d0
* atrace: fix tracing on user buildsJamie Gennis2013-03-271-5/+7
| | | | Change-Id: Idef15d514f0bd1e117362c6a06a2ea24314feb7f
* atrace: use creat instead of truncateJamie Gennis2013-03-211-3/+8
| | | | Change-Id: Ie25c704f33c419c0c542249ae2841393862df0ab
* Merge "atrace: add support for tracing kernel functions" into jb-mr2-devJamie Gennis2013-03-181-28/+174
|\
| * atrace: add support for tracing kernel functionsJamie Gennis2013-03-181-28/+174
| | | | | | | | | | | | | | | | This change adds support for tracing specific kernel function calls using the function_graph tracer. It adds a '-k' option to atrace that accepts a comma separated list of kernel function names for which tracing will be enabled. Change-Id: I872b2f1d474b8ebb904053853fc8cf8c0a98089c
* | atrace: add the webview categoryJamie Gennis2013-03-111-30/+31
|/ | | | Change-Id: Iefb552cd275bb5784903e8bf328890ecd233e45b
* atrace: add HAL tagAlex Ray2013-02-131-0/+1
| | | | Change-Id: Idfd4f2075e8cd82833ef06d4487423c62b59fe11
* atrace: fix the help stringJamie Gennis2012-12-071-0/+2
| | | | Change-Id: I19f0093d65d64e669ad71c600c103f4080bfa2c2
* atrace: clean up tracing option enablingJamie Gennis2012-12-072-232/+303
| | | | | | | | | This change switches atrace to use a table-driven approach to enabling and disabling options. It unifies how framework and kernel tracing are enabled, and causes userland tracing options to be picked up by currently running processes. Change-Id: Iba2a3012ca0a67c4defdd076bce597db26e9f539
* Fix buildGlenn Kasten2012-11-141-4/+4
| | | | Change-Id: Ibb398f36a7569af3480e24145da4317bf5b86998
* add asynchronous tracingErik Gilling2012-11-141-8/+44
| | | | Change-Id: I5b8660cd4d2af2ad7c6b2548c9572d3527882d6d
* atrace: add sync trace supportErik Gilling2012-10-171-1/+26
| | | | Change-Id: I2cd2f1a1e51f6e3d1ebbde4d5442be68a218b33d
* Add -n and -S options for 'nohup', offline tracesGlenn Kasten2012-10-081-2/+18
| | | | Change-Id: Ieef12b36b8519ff689ab5a81447b1b9bf4806171
* atrace: make clock & bus bw tracing optionalJamie Gennis2012-10-051-18/+23
| | | | | | | | This change makes enabling clock tracing and bus bandwidth tracing depend on whether the device's kernel supports these features. If it's not supported it will be skipped. Change-Id: I51d57299693635b0ecebb75de5dccd5b62d47be3
* atrace: add clock rate and bus utilizationErik Gilling2012-10-041-8/+39
| | | | Change-Id: I4e1764b51225436fc2b3d61454ee822f511a1a7d
* atrace: enable running on user buildsJamie Gennis2012-06-072-16/+37
| | | | | | | | | This change allows atrace to be run on a user build, where it is not run as root. Some command line options still require root, and atrace will refuse to run if those options are specified when run as non-root. Bug: 6513400 Change-Id: I29984cb8a7c3ad80ba5fa6b031ed8ff81acabacf
* Add disk I/O tracing.Jeff Brown2012-05-222-1/+34
| | | | | Bug: 6488845 Change-Id: I93acb726f35b114fb1ea7297da4456826f805b7b
* atrace: add support for tracing CPU idle eventsJamie Gennis2012-05-071-1/+16
| | | | | | | This change adds the -i command line flag to atrace to enable tracing CPU idle kernel events. Change-Id: I4a2c8619224c0f50c7fd7c61c7b24fa2211f656c
* atrace: add support for zlib compressionJamie Gennis2012-04-282-7/+95
| | | | | | | This change adds the -z command line flag to atrace to enable support for compressing the trace with zlib as it's printed to stdout. Change-Id: I45301c63a4d1d388152244fec3c9e05e554598e8
* atrace: make cpu freq governor tracing optionalJamie Gennis2012-04-091-3/+11
| | | | | | | This change allows atrace to run on kernels that do not have CPU frequency interactive governor tracing enabled in the kernel. Change-Id: Ibfde751da7b6cc9a55794355093a37feb28f5e52
* atrace: add some more command line optionsJamie Gennis2012-03-071-1/+67
| | | | | | | | | This change adds two command line optiosn: -b for setting the trace buffer size -f for enabling tracing of the CPU frequency -l for enabling tracing of the CPU load Change-Id: Id99851a4c4eba5cfed218f29081e072bbe492133
* atrace: include the binary in debug buildsJamie Gennis2012-02-261-1/+1
| | | | | | | This change makes the atrace module tag 'debug' so that the binary is included in all debug builds. Change-Id: I1fdb87be0461daf686e52ded04b37b9a122edea3
* Add the atrace utility.Jamie Gennis2012-02-234-0/+506
This change adds a new system binary to help with capturing and dumping kernel traces. Change-Id: If2fc074480f822588a4c171312dc4c04fd305356