[title] Oprofile bug fix
authorwonhyoung2.park <wonhyoung2.park@samsung.com>
Fri, 14 Oct 2011 09:45:34 +0000 (18:45 +0900)
committerwonhyoung2.park <wonhyoung2.park@samsung.com>
Fri, 14 Oct 2011 09:45:34 +0000 (18:45 +0900)
[Type]
[Module]
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

org.eclipse.linuxtools.oprofile.core/src/com/samsung/linuxplatform/oprofile/core/processor/eventinfo/OpInfoProcessor.java
org.eclipse.linuxtools.oprofile.core/src/com/samsung/linuxplatform/oprofile/core/processor/modeldata/ModelDataProcessor.java

index 379e0d4..67d6e05 100644 (file)
@@ -44,6 +44,9 @@ public class OpInfoProcessor{
                
                try {
                        resultStr = session.run(COMMAND_COUNTER_NO, null);
+                       if(resultStr.startsWith("/opt/home/root # ")){
+                               resultStr = resultStr.substring(17, resultStr.length());
+                       }
                } catch (Exception e) {
                        throw new InterruptedException();
                }
index 6616527..74ce5b8 100644 (file)
@@ -73,6 +73,9 @@ public class ModelDataProcessor{
                }
                
                try {
+                       if(resultStr.startsWith("/opt/home/root # ")){
+                               resultStr = resultStr.substring(19,resultStr.length());
+                       }
                        saxParser.parse(new InputSource(new StringReader(resultStr)),handler);
                } catch (Exception e) {
                        e.printStackTrace();