]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/DynamicCommand/DpDynamicCommand/DpTrace.c
ShellPkg/dp: Update dp tool to parse new Perf record
[mirror_edk2.git] / ShellPkg / DynamicCommand / DpDynamicCommand / DpTrace.c
index 7f7d296946fe7ca01fd26846671ae182d15011c1..675cbc3fd14ae19f1f650d5ffe6f9fbf6bcc16e4 100644 (file)
@@ -604,7 +604,7 @@ ProcessHandles(
       ElapsedTime = DurationInMicroSeconds ( Duration );\r
       if ((ElapsedTime < mInterestThreshold)                 ||\r
           (Measurement.EndTimeStamp == 0)                    ||\r
-          (Measurement.Handle == NULL)                       ||\r
+          (!IsCorePerf (&Measurement))                       ||\r
           ((ExcludeFlag) && (GetCumulativeItem(&Measurement) >= 0))\r
          ) { // Ignore "uninteresting" or excluded records\r
         continue;\r
@@ -794,7 +794,7 @@ ProcessGlobal(
     mGaugeString[25] = 0;\r
     mUnicodeToken[31] = 0;\r
     if ( ! ( IsPhase( &Measurement)  ||\r
-        (Measurement.Handle != NULL)      ||\r
+        IsCorePerf (&Measurement)      ||\r
         (Measurement.EndTimeStamp == 0)\r
         ))\r
     {\r