1. 19 6月, 2013 5 次提交
  2. 01 4月, 2013 3 次提交
  3. 27 3月, 2013 2 次提交
  4. 07 2月, 2013 2 次提交
  5. 24 10月, 2012 4 次提交
  6. 04 10月, 2012 1 次提交
  7. 19 9月, 2012 1 次提交
  8. 31 7月, 2012 1 次提交
    • P
      perf/x86: Fix USER/KERNEL tagging of samples properly · d07bdfd3
      Peter Zijlstra 提交于
      Some PMUs don't provide a full register set for their sample,
      specifically 'advanced' PMUs like AMD IBS and Intel PEBS which provide
      'better' than regular interrupt accuracy.
      
      In this case we use the interrupt regs as basis and over-write some
      fields (typically IP) with different information.
      
      The perf core however uses user_mode() to distinguish user/kernel
      samples, user_mode() relies on regs->cs. If the interrupt skid pushed
      us over a boundary the new IP might not be in the same domain as the
      interrupt.
      
      Commit ce5c1fe9 ("perf/x86: Fix USER/KERNEL tagging of samples")
      tried to fix this by making the perf core use kernel_ip(). This
      however is wrong (TM), as pointed out by Linus, since it doesn't allow
      for VM86 and non-zero based segments in IA32 mode.
      
      Therefore, provide a new helper to set the regs->ip field,
      set_linear_ip(), which massages the regs into a suitable state
      assuming the provided IP is in fact a linear address.
      
      Also modify perf_instruction_pointer() and perf_callchain_user() to
      deal with segments base offsets.
      Signed-off-by: NPeter Zijlstra <a.p.zijlstra@chello.nl>
      Link: http://lkml.kernel.org/r/1341910954.3462.102.camel@twinsSigned-off-by: NIngo Molnar <mingo@kernel.org>
      d07bdfd3
  9. 26 7月, 2012 1 次提交
  10. 06 7月, 2012 2 次提交
  11. 18 6月, 2012 1 次提交
  12. 06 6月, 2012 6 次提交
  13. 17 3月, 2012 1 次提交
  14. 13 3月, 2012 1 次提交
  15. 05 3月, 2012 5 次提交
  16. 02 3月, 2012 1 次提交
  17. 21 12月, 2011 1 次提交
  18. 07 12月, 2011 2 次提交