Lines Matching refs:tag
35 * following ATRACE_TAG_* macros. The trace tag is used to filter tracing in
50 #define ATRACE_TAG_NEVER 0 // This tag is never enabled.
51 #define ATRACE_TAG_ALWAYS (1<<0) // This tag is always enabled.
143 * Test if a given tag is currently enabled.
144 * Returns nonzero if the tag is enabled, otherwise zero.
148 static inline uint64_t atrace_is_tag_enabled(uint64_t tag)
150 return atrace_get_enabled_tags() & tag;
158 static inline void atrace_begin(uint64_t tag, const char* name)
160 if (CC_UNLIKELY(atrace_is_tag_enabled(tag))) {
171 static inline void atrace_end(uint64_t tag)
173 if (CC_UNLIKELY(atrace_is_tag_enabled(tag))) {
188 static inline void atrace_async_begin(uint64_t tag, const char* name,
191 if (CC_UNLIKELY(atrace_is_tag_enabled(tag))) {
202 static inline void atrace_async_end(uint64_t tag, const char* name, int32_t cookie)
204 if (CC_UNLIKELY(atrace_is_tag_enabled(tag))) {
215 static inline void atrace_int(uint64_t tag, const char* name, int32_t value)
217 if (CC_UNLIKELY(atrace_is_tag_enabled(tag))) {
228 static inline void atrace_int64(uint64_t tag, const char* name, int64_t value)
230 if (CC_UNLIKELY(atrace_is_tag_enabled(tag))) {