--- /dev/null 2017-11-09 09:38:01.297999907 +0100 +++ new/src/hotspot/share/trace/traceEventControl.xsl 2018-04-09 15:32:34.632528876 +0200 @@ -0,0 +1,75 @@ + + + + + + + + + + +#ifndef TRACEFILES_JFR_NATIVE_EVENTSETTING_HPP +#define TRACEFILES_JFR_NATIVE_EVENTSETTING_HPP + +#include "utilities/macros.hpp" +#if INCLUDE_TRACE +#include "tracefiles/traceEventIds.hpp" + +/** + * Event setting. We add some padding so we can use our + * event IDs as indexes into this. + */ + +struct jfrNativeEventSetting { + jlong threshold_ticks; + jlong cutoff_ticks; + u1 stacktrace; + u1 enabled; + u1 pad[6]; // Because GCC on linux ia32 at least tries to pack this. +}; + +union JfrNativeSettings { + // Array version. + jfrNativeEventSetting bits[MaxTraceEventId]; + // Then, to make it easy to debug, + // add named struct members also. + struct { + jfrNativeEventSetting pad[NUM_RESERVED_EVENTS]; + + + + + + + + + } ev; +}; + +#endif // INCLUDE_TRACE +#endif // TRACEFILES_JFR_NATIVE_EVENTSETTING_HPP + + +