X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=analysis%2Forg.eclipse.tracecompass.analysis.os.linux.core%2Fsrc%2Forg%2Feclipse%2Ftracecompass%2Fanalysis%2Fos%2Flinux%2Fcore%2Fkernel%2FKernelThreadInformationProvider.java;h=6be08f3bc8544982d26c726e79532132ea55c629;hb=6070a6bcc41bea2f6938ef7815f0a37390788a47;hp=a75686f814ca43363e6c6fe5d2a2f19f9cd8182f;hpb=ee8d0c4009f3f18400fa2369ac51158bcefb627c;p=deliverable%2Ftracecompass.git diff --git a/analysis/org.eclipse.tracecompass.analysis.os.linux.core/src/org/eclipse/tracecompass/analysis/os/linux/core/kernel/KernelThreadInformationProvider.java b/analysis/org.eclipse.tracecompass.analysis.os.linux.core/src/org/eclipse/tracecompass/analysis/os/linux/core/kernel/KernelThreadInformationProvider.java index a75686f814..6be08f3bc8 100644 --- a/analysis/org.eclipse.tracecompass.analysis.os.linux.core/src/org/eclipse/tracecompass/analysis/os/linux/core/kernel/KernelThreadInformationProvider.java +++ b/analysis/org.eclipse.tracecompass.analysis.os.linux.core/src/org/eclipse/tracecompass/analysis/os/linux/core/kernel/KernelThreadInformationProvider.java @@ -188,34 +188,6 @@ public final class KernelThreadInformationProvider { return execName; } - /** - * Get the priority of a thread running at a time ts. - * - * @param module - * The kernel analysis instance to run this method on - * @param threadId - * The thread ID of the target thread - * @param ts - * The timestamp at which to get the priority - * @return The priority of this thread, or {@code null} if not found - */ - public static @Nullable Integer getThreadPrio(KernelAnalysisModule module, Integer threadId, long ts) { - Integer execPrio = null; - ITmfStateSystem ss = module.getStateSystem(); - if (ss == null) { - return execPrio; - } - try { - int execPrioQuark = ss.getQuarkAbsolute(Attributes.THREADS, threadId.toString(), Attributes.PRIO); - ITmfStateInterval interval = ss.querySingleState(ts, execPrioQuark); - ITmfStateValue prioValue = interval.getStateValue(); - /* We know the prio must be an Integer */ - execPrio = prioValue.unboxInt(); - } catch (AttributeNotFoundException | StateSystemDisposedException | TimeRangeException e) { - } - return execPrio; - } - /** * Get the status intervals for a given thread with a resolution *