diff options
author | Alex Ray <aray@google.com> | 2012-11-20 01:39:09 -0800 |
---|---|---|
committer | Alex Ray <aray@google.com> | 2012-11-28 13:56:49 -0800 |
commit | e7bb7bca4f4036c213763673627e1eb6c2c2fdd6 (patch) | |
tree | 742342c4c357732db81ac8a061658c265975f97a /include | |
parent | 0a34643160890eb50f7d8e016b4ec93d9db2aa27 (diff) | |
download | system_core-e7bb7bca4f4036c213763673627e1eb6c2c2fdd6.zip system_core-e7bb7bca4f4036c213763673627e1eb6c2c2fdd6.tar.gz system_core-e7bb7bca4f4036c213763673627e1eb6c2c2fdd6.tar.bz2 |
cutils: trace: add atrace_update_tags()
Adds a function to read the current trace system property value, and
sets the trace tags to it, do be used as a sysprop change callback.
Change-Id: Ia6336652173aa5b07188898736c2c795a69fe79a
Diffstat (limited to 'include')
-rw-r--r-- | include/cutils/trace.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/cutils/trace.h b/include/cutils/trace.h index 7fdb321..3869662 100644 --- a/include/cutils/trace.h +++ b/include/cutils/trace.h @@ -86,6 +86,12 @@ __BEGIN_DECLS void atrace_setup(); /** + * If tracing is ready, set atrace_enabled_tags to the system property + * debug.atrace.tags.enableflags. Can be used as a sysprop change callback. + */ +void atrace_update_tags(); + +/** * 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. |