summaryrefslogtreecommitdiffstats
path: root/cmds/atrace/atrace.cpp
Commit message (Collapse)AuthorAgeFilesLines
* DO NOT MERGE: add support for new sched tracepointTim Murray2015-11-301-0/+1
| | | | | | | | | This tracepoint gives systrace the means to display the reason for uninterruptible sleep. bug 23350688 Change-Id: I9ee5b6904c27bcb5bd67c86fda66d45d0a3c0999
* Map realtime to clock_monotonic.Martijn Coenen2015-08-311-3/+21
| | | | | | | | | | | | | | This maps a monotonic timestamp to the corresponding real-time timestamp, which can be used to match up the traces with other logs that use real-time. Also write clock_sync records first instead of at the end, to avoid not being to write it due to the buffer being full. Bug: 23668823 Change-Id: I644aeea496197e194ec30f808f754e3e043d905f
* Fix async_stopJohn Reck2015-05-151-1/+1
| | | | Change-Id: I68a258cf71cfcd999bbd568ab3c96255c11bec41
* Added Voltage and Current regulator ftrace events to atraceAaron Schulman2015-05-071-0/+3
| | | | | | | | | | | | | | | | | | | | Cherry-pick of c2c6ecd1195481f5813a721a7d20a73c0795c135 from AOSP Tracing the state of the voltage and current regulators enables a developer to attribute power consumption measurements to specific perhipherals and cores. Unlike other indirect methods of tracing when peripherals and cores are toggled, the regulator ftrace event indicates the exact point in time when the kernel switches on or off the device. For example, in the following trace, a developer can see exactly when the krait2 core starts receiving power, and and when the voltage is set for voltage scaling. mpdecision-2172 [000] ...1 1566.665481: regulator_enable: name=krait2 mpdecision-2172 [000] ...1 1566.665493: regulator_enable_delay: name=krait2 mpdecision-2172 [000] ...1 1566.665495: regulator_enable_complete: name=krait2 <...>-4133 [002] ...1 1566.666891: regulator_set_voltage: name=krait2 (1075000-1100000) Change-Id: Ia322206ef74496daf1d9baa03545d8e89e398487 Signed-off-by: Aaron Schulman <aschulman@google.com>
* Add trace_event_clock_sync to atraceJohn Reck2015-03-261-0/+13
| | | | Change-Id: I8adce15210d82df09ff3a39ddd8df617aeb16a42
* am 346329b7: Merge "Move atrace from the obsolete bzero to memset."Elliott Hughes2015-01-251-1/+2
|\ | | | | | | | | * commit '346329b7a70b594895be0aec5dc00f9f4108b533': Move atrace from the obsolete bzero to memset.
| * Move atrace from the obsolete bzero to memset.Elliott Hughes2015-01-251-1/+2
| | | | | | | | | | | | (This file wasn't including <strings.h> for bzero or <string.h> for memset.) Change-Id: Icef0e0dbfd36ebd21058cfd8c747e0a17aee8308
* | 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-071-0/+711
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