summaryrefslogtreecommitdiffstats
path: root/include/cutils
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2013-04-16 22:12:47 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-04-16 22:12:47 +0000
commit2553825797c40b14981b1b24e44475e07b02267f (patch)
tree6d0e22cf58988fcd5e96fa0edeb60b36ce4b4daf /include/cutils
parentebcf93e3bf92bf46c54c8e0f2ec8936bb2db6aea (diff)
parentb13ea45a04a463646a7098b03f9f64d91b29d2b9 (diff)
downloadsystem_core-2553825797c40b14981b1b24e44475e07b02267f.zip
system_core-2553825797c40b14981b1b24e44475e07b02267f.tar.gz
system_core-2553825797c40b14981b1b24e44475e07b02267f.tar.bz2
Merge "cutils: add a way to disable tracing for a process" into jb-mr2-dev
Diffstat (limited to 'include/cutils')
-rw-r--r--include/cutils/trace.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/cutils/trace.h b/include/cutils/trace.h
index 15f8fb9..9b564e2 100644
--- a/include/cutils/trace.h
+++ b/include/cutils/trace.h
@@ -108,11 +108,17 @@ void atrace_update_tags();
void atrace_set_debuggable(bool debuggable);
/**
+ * Set whether tracing is enabled for the current process. This is used to
+ * prevent tracing within the Zygote process.
+ */
+void atrace_set_tracing_enabled(bool enabled);
+
+/**
* Flag indicating whether setup has been completed, initialized to 0.
* Nonzero indicates setup has completed.
* Note: This does NOT indicate whether or not setup was successful.
*/
-extern int32_t atrace_is_ready;
+extern volatile int32_t atrace_is_ready;
/**
* Set of ATRACE_TAG flags to trace for, initialized to ATRACE_TAG_NOT_READY.