Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeneviève Bastien2018-04-26 11:26:15 -0400
committerGenevieve Bastien2018-06-18 13:56:30 -0400
commitb6a4efba6df076353616bba286682b82af56834f (patch)
treed23c4985716074693888b0db1d16ad379c704bda
parent2fc83b4bbd209169572c1405df82c288e88f1c63 (diff)
downloadorg.eclipse.tracecompass.incubator-b6a4efba6df076353616bba286682b82af56834f.tar.gz
org.eclipse.tracecompass.incubator-b6a4efba6df076353616bba286682b82af56834f.tar.xz
org.eclipse.tracecompass.incubator-b6a4efba6df076353616bba286682b82af56834f.zip
ftrace: Add the cpu frequency event to layout
Change-Id: I191d3229ea0a4410bf3df5c6e66450473c7be7b3 Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net> Reviewed-on: https://git.eclipse.org/r/121807 Tested-by: CI Bot Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
-rw-r--r--tracetypes/org.eclipse.tracecompass.incubator.ftrace.core/src/org/eclipse/tracecompass/incubator/internal/ftrace/core/layout/GenericFtraceEventLayout.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/tracetypes/org.eclipse.tracecompass.incubator.ftrace.core/src/org/eclipse/tracecompass/incubator/internal/ftrace/core/layout/GenericFtraceEventLayout.java b/tracetypes/org.eclipse.tracecompass.incubator.ftrace.core/src/org/eclipse/tracecompass/incubator/internal/ftrace/core/layout/GenericFtraceEventLayout.java
index 02a7ed83..1885001e 100644
--- a/tracetypes/org.eclipse.tracecompass.incubator.ftrace.core/src/org/eclipse/tracecompass/incubator/internal/ftrace/core/layout/GenericFtraceEventLayout.java
+++ b/tracetypes/org.eclipse.tracecompass.incubator.ftrace.core/src/org/eclipse/tracecompass/incubator/internal/ftrace/core/layout/GenericFtraceEventLayout.java
@@ -29,6 +29,7 @@ public class GenericFtraceEventLayout extends DefaultEventLayout {
private static final @NonNull String PREV_PID = "prev_pid"; //$NON-NLS-1$
private static final @NonNull String CHILD_TID = "child_pid"; //$NON-NLS-1$
private static final @NonNull String TID = "pid"; //$NON-NLS-1$
+ private static final @NonNull String CPU_FREQUENCY = "cpu_frequency"; //$NON-NLS-1$
private static @Nullable GenericFtraceEventLayout INSTANCE;
/**
@@ -72,4 +73,9 @@ public class GenericFtraceEventLayout extends DefaultEventLayout {
public String fieldChildTid() {
return CHILD_TID;
}
+
+ @Override
+ public @NonNull String eventCpuFrequency() {
+ return CPU_FREQUENCY;
+ }
}

Back to the top