os.linux: remove unnecessary calls to getQuarkRelative
authorGeneviève Bastien <gbastien+lttng@versatic.net>
Mon, 19 Sep 2016 19:27:06 +0000 (15:27 -0400)
committerGenevieve Bastien <gbastien+lttng@versatic.net>
Tue, 20 Sep 2016 00:44:07 +0000 (20:44 -0400)
When the Status attribute was removed, some calls to
getAttributeQuarkRelative were not removed and that causes exceptions in
some cases.

Change-Id: Ib217c44b51eae713101aafb6d3025475fcf2ed99
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/81381
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
analysis/org.eclipse.tracecompass.analysis.os.linux.core/src/org/eclipse/tracecompass/internal/analysis/os/linux/core/kernel/handlers/IPIEntryHandler.java

index a5fd42131a9b3a6f8e3ee9d3a1aacfce998670cf..45dd22a8ebe538b685c4b158b7260b2ead4bca16 100644 (file)
@@ -54,12 +54,12 @@ public class IPIEntryHandler extends KernelEventHandler {
         ss.modifyAttribute(timestamp, value, quark);
 
         /* Change the status of the running process to interrupted */
-        quark = ss.getQuarkRelativeAndAdd(KernelEventHandlerUtils.getCurrentThreadNode(cpu, ss));
+        quark = KernelEventHandlerUtils.getCurrentThreadNode(cpu, ss);
         value = StateValues.PROCESS_STATUS_INTERRUPTED_VALUE;
         ss.modifyAttribute(timestamp, value, quark);
 
         /* Change the status of the CPU to interrupted */
-        quark = ss.getQuarkRelativeAndAdd(KernelEventHandlerUtils.getCurrentCPUNode(cpu, ss));
+        quark = KernelEventHandlerUtils.getCurrentCPUNode(cpu, ss);
         value = StateValues.CPU_STATUS_IRQ_VALUE;
         ss.modifyAttribute(timestamp, value, quark);
     }
This page took 0.029657 seconds and 5 git commands to generate.