private static final String X86_IRQ_VECTORS_DEFERRED_ERROR_APIC_EXIT = "x86_irq_vectors_deferred_error_apic_exit"; //$NON-NLS-1$
private static final String X86_IRQ_VECTORS_THERMAL_APIC_ENTRY = "x86_irq_vectors_thermal_apic_entry"; //$NON-NLS-1$
private static final String X86_IRQ_VECTORS_THERMAL_APIC_EXIT = "x86_irq_vectors_thermal_apic_exit"; //$NON-NLS-1$
+ /* KVM events */
+ private static final String KVM_X86_ENTRY = "kvm_x86_entry"; //$NON-NLS-1$
+ private static final String KVM_X86_EXIT = "kvm_x86_exit"; //$NON-NLS-1$
+ private static final Collection<String> KVM_ENTRY_EVENTS = ImmutableSet.of(KVM_X86_ENTRY);
+ private static final Collection<String> KVM_EXIT_EVENTS = ImmutableSet.of(KVM_X86_EXIT);
private static final Collection<String> IPI_ENTRY_SET = ImmutableSet.of(
X86_IRQ_VECTORS_LOCAL_TIMER_ENTRY,
return X86_IRQ_VECTORS_THERMAL_APIC_EXIT;
}
+ @Override
+ public @NonNull Collection<@NonNull String> eventsKVMEntry() {
+ return KVM_ENTRY_EVENTS;
+ }
+
+ @Override
+ public @NonNull Collection<@NonNull String> eventsKVMExit() {
+ return KVM_EXIT_EVENTS;
+ }
+
@Override
public @NonNull Collection<@NonNull String> getIPIIrqVectorsEntries() {
return IPI_ENTRY_SET;
import org.eclipse.tracecompass.analysis.os.linux.core.trace.IKernelAnalysisEventLayout;
import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableSet;
/**
* This file defines all the known event and field names for LTTng kernel
private static final String[] TCP_ACK_FIELD = { "transport_fields", "thtype_tcp", "ack_seq" };
private static final String[] TCP_FLAGS_FIELD = { "transport_fields", "thtype_tcp", "flags" };
+ /* KVM events */
+ private static final String KVM_ENTRY = "kvm_entry"; //$NON-NLS-1$
+ private static final String KVM_EXIT = "kvm_exit"; //$NON-NLS-1$
+ private static final Collection<String> KVM_ENTRY_EVENTS = ImmutableSet.of(KVM_ENTRY);
+ private static final Collection<String> KVM_EXIT_EVENTS = ImmutableSet.of(KVM_EXIT);
+
/** All instances are the same. Only provide a static instance getter */
protected LttngEventLayout() {
}
return TCP_FLAGS_FIELD;
}
+ // ------------------------------------------------------------------------
+ // VirtualMachine events : kvm entry/exit events
+ // ------------------------------------------------------------------------
+
+ @Override
+ public @NonNull Collection<@NonNull String> eventsKVMEntry() {
+ return KVM_ENTRY_EVENTS;
+ }
+
+ @Override
+ public @NonNull Collection<@NonNull String> eventsKVMExit() {
+ return KVM_EXIT_EVENTS;
+ }
}