commit | 65bb3616074f09ceae005a9440bda3aa713dfbb6 | [log] [tgz] |
---|---|---|
author | Roland Grunberg <rgrunber@redhat.com> | Wed Jul 08 13:00:51 2020 -0400 |
committer | Roland Grunberg <rgrunber@redhat.com> | Wed Jul 08 18:51:35 2020 -0400 |
tree | e33a6f38476d971f3615fa8e249ae5b691317516 | |
parent | 215582f8df46ca6428b31a0460792ad4ca8e5b2d [diff] |
Bug 544411 - Fix perf-list parsing on newer versions - perf-list output includes more events in different format for recent kernels Change-Id: I589660690f0813e211b3ebd47d6ad230912c7163 Signed-off-by: Roland Grunberg <rgrunber@redhat.com> Reviewed-on: https://git.eclipse.org/r/c/linuxtools/org.eclipse.linuxtools/+/166009 Tested-by: Linux Tools Bot <linuxtools-bot@eclipse.org>
diff --git a/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/PerfCore.java b/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/PerfCore.java index 10b36a4..0697d7e 100644 --- a/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/PerfCore.java +++ b/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/PerfCore.java
@@ -182,7 +182,7 @@ try { // Process list of events. Each line is of the form <event>\s+<category>. while (( line = input.readLine()) != null){ - if (line.contains("[")) { //$NON-NLS-1$ + if (line.matches("\\s*\\S+\\s*\\[.*\\]")) { //$NON-NLS-1$ String event; String category; if (line.contains(PerfPlugin.STRINGS_HWBREAKPOINTS)) {