1. 24 10月, 2016 1 次提交
  2. 05 10月, 2016 2 次提交
  3. 29 9月, 2016 1 次提交
  4. 13 8月, 2016 1 次提交
  5. 26 4月, 2016 1 次提交
  6. 29 9月, 2015 1 次提交
    • A
      perf intel-pt: Fix potential loop forever · 9992c2d5
      Adrian Hunter 提交于
      TSC packets contain only 7 bytes of TSC.  The 8th byte is assumed to
      change so infrequently that its value can be inferred.  However the
      logic must cater for a 7 byte wraparound, which it does by adding 1 to
      the top byte.
      
      The existing code was doing that with a while loop even though the
      addition should only need to be done once.  That logic won't work (will
      loop forever) if TSC wraps around at the 8th byte.  Theoretically that
      would take at least 10 years, unless something else went wrong.
      
      And what else could go wrong.  Well, if the chunks of trace data are
      processed out of order, it will make it look like the 7-byte TSC has
      gone backwards (i.e. wrapped).  If that happens 256 times then stuck in
      the while loop it will be.
      
      Fix that by getting rid of the unnecessary while loop.
      Signed-off-by: NAdrian Hunter <adrian.hunter@intel.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Link: http://lkml.kernel.org/r/1443186956-18718-4-git-send-email-adrian.hunter@intel.comSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      9992c2d5
  7. 25 8月, 2015 5 次提交
  8. 17 8月, 2015 1 次提交