diff --git a/analysis/org.eclipse.tracecompass.analysis.os.linux.core/src/org/eclipse/tracecompass/internal/analysis/os/linux/core/segmentstore/IPrioritySegment.java b/analysis/org.eclipse.tracecompass.analysis.os.linux.core/src/org/eclipse/tracecompass/internal/analysis/os/linux/core/segmentstore/IPrioritySegment.java new file mode 100644 index 0000000000..1c7046230b --- /dev/null +++ b/analysis/org.eclipse.tracecompass.analysis.os.linux.core/src/org/eclipse/tracecompass/internal/analysis/os/linux/core/segmentstore/IPrioritySegment.java @@ -0,0 +1,32 @@ +/******************************************************************************* +* Copyright (c) 2023 Ericsson +* +* All rights reserved. This program and the accompanying materials are made +* available under the terms of the Eclipse Public License 2.0 which +* accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-2.0/ +* +* SPDX-License-Identifier: EPL-2.0 +*******************************************************************************/ + +package org.eclipse.tracecompass.internal.analysis.os.linux.core.segmentstore; + +import org.eclipse.tracecompass.segmentstore.core.ISegment; + +/** + * Interface to be implemented by segments that have a priority to provide. This + * priority can be used in analyses and outputs to identify segments. + * + * This interface is a qualifier interface for segments. A concrete segment type + * can implement many such qualifier interfaces. + * + * @author Hoang Thuan Pham + */ +public interface IPrioritySegment extends ISegment { + /** + * Get the priority of this segment + * + * @return The priority of this segment + */ + int getPriority(); +}