< prev index next >

src/hotspot/share/logging/logTag.hpp

Print this page
rev 51490 : 8207343: Automate vtable/itable stub size calculation
Reviewed-by: kvn


 153   LOG_TAG(survivor) \
 154   LOG_TAG(sweep) \
 155   LOG_TAG(system) \
 156   LOG_TAG(table) \
 157   LOG_TAG(task) \
 158   DEBUG_ONLY(LOG_TAG(test)) \
 159   LOG_TAG(thread) \
 160   LOG_TAG(tlab) \
 161   LOG_TAG(time) \
 162   LOG_TAG(timer) \
 163   LOG_TAG(tracking) \
 164   LOG_TAG(update) \
 165   LOG_TAG(unload) /* Trace unloading of classes */ \
 166   LOG_TAG(unshareable) \
 167   LOG_TAG(mirror) \
 168   LOG_TAG(verification) \
 169   LOG_TAG(verify) \
 170   LOG_TAG(vmoperation) \
 171   LOG_TAG(vmthread) \
 172   LOG_TAG(vtables) \
 173   LOG_TAG(workgang)

 174   LOG_TAG_LIST_EXT
 175 
 176 #define PREFIX_LOG_TAG(T) (LogTag::_##T)
 177 
 178 // Expand a set of log tags to their prefixed names.
 179 // For error detection purposes, the macro passes one more tag than what is supported.
 180 // If too many tags are given, a static assert in the log class will fail.
 181 #define LOG_TAGS_EXPANDED(T0, T1, T2, T3, T4, T5, ...)  PREFIX_LOG_TAG(T0), PREFIX_LOG_TAG(T1), PREFIX_LOG_TAG(T2), \
 182                                                         PREFIX_LOG_TAG(T3), PREFIX_LOG_TAG(T4), PREFIX_LOG_TAG(T5)
 183 // The EXPAND_VARARGS macro is required for MSVC, or it will resolve the LOG_TAGS_EXPANDED macro incorrectly.
 184 #define EXPAND_VARARGS(x) x
 185 #define LOG_TAGS(...) EXPAND_VARARGS(LOG_TAGS_EXPANDED(__VA_ARGS__, _NO_TAG, _NO_TAG, _NO_TAG, _NO_TAG, _NO_TAG, _NO_TAG))
 186 
 187 // Log tags are used to classify log messages.
 188 // Each log message can be assigned between 1 to LogTag::MaxTags number of tags.
 189 // Specifying multiple tags for a log message means that only outputs configured
 190 // for those exact tags, or a subset of the tags with a wildcard, will see the logging.
 191 // Multiple tags should be comma separated, e.g. log_error(tag1, tag2)("msg").
 192 class LogTag : public AllStatic {
 193  public:




 153   LOG_TAG(survivor) \
 154   LOG_TAG(sweep) \
 155   LOG_TAG(system) \
 156   LOG_TAG(table) \
 157   LOG_TAG(task) \
 158   DEBUG_ONLY(LOG_TAG(test)) \
 159   LOG_TAG(thread) \
 160   LOG_TAG(tlab) \
 161   LOG_TAG(time) \
 162   LOG_TAG(timer) \
 163   LOG_TAG(tracking) \
 164   LOG_TAG(update) \
 165   LOG_TAG(unload) /* Trace unloading of classes */ \
 166   LOG_TAG(unshareable) \
 167   LOG_TAG(mirror) \
 168   LOG_TAG(verification) \
 169   LOG_TAG(verify) \
 170   LOG_TAG(vmoperation) \
 171   LOG_TAG(vmthread) \
 172   LOG_TAG(vtables) \
 173   LOG_TAG(vtablestubs) \
 174   LOG_TAG(workgang) \
 175   LOG_TAG_LIST_EXT
 176 
 177 #define PREFIX_LOG_TAG(T) (LogTag::_##T)
 178 
 179 // Expand a set of log tags to their prefixed names.
 180 // For error detection purposes, the macro passes one more tag than what is supported.
 181 // If too many tags are given, a static assert in the log class will fail.
 182 #define LOG_TAGS_EXPANDED(T0, T1, T2, T3, T4, T5, ...)  PREFIX_LOG_TAG(T0), PREFIX_LOG_TAG(T1), PREFIX_LOG_TAG(T2), \
 183                                                         PREFIX_LOG_TAG(T3), PREFIX_LOG_TAG(T4), PREFIX_LOG_TAG(T5)
 184 // The EXPAND_VARARGS macro is required for MSVC, or it will resolve the LOG_TAGS_EXPANDED macro incorrectly.
 185 #define EXPAND_VARARGS(x) x
 186 #define LOG_TAGS(...) EXPAND_VARARGS(LOG_TAGS_EXPANDED(__VA_ARGS__, _NO_TAG, _NO_TAG, _NO_TAG, _NO_TAG, _NO_TAG, _NO_TAG))
 187 
 188 // Log tags are used to classify log messages.
 189 // Each log message can be assigned between 1 to LogTag::MaxTags number of tags.
 190 // Specifying multiple tags for a log message means that only outputs configured
 191 // for those exact tags, or a subset of the tags with a wildcard, will see the logging.
 192 // Multiple tags should be comma separated, e.g. log_error(tag1, tag2)("msg").
 193 class LogTag : public AllStatic {
 194  public:


< prev index next >