linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Getting PEBS to work
@ 2016-05-19 22:29 Brendan Gregg
       [not found] ` <CAPAnC4PsdkN=9NQ6D_n2p6NX64yB0ASXhTqQRsGw5N3Jvr3d2A@mail.gmail.com>
       [not found] ` <CAPAnC4NObR7Fe-fZr9z5tdD0cyyVhd6WojN-aWst2Z2rtxQ6SQ@mail.gmail.com>
  0 siblings, 2 replies; 10+ messages in thread
From: Brendan Gregg @ 2016-05-19 22:29 UTC (permalink / raw)
  To: linux-perf-use.

G'Day perf-users,

Different Q than my previous email... This is a physical system (Linux
3.13, Sandy Bridge) that's I think is supposed to have PEBS, but it
doesn't work. Eg:

# perf record -e r412e:p -c 10000 -a -- sleep 1
Error:
'precise' request may not be supported. Try removing 'p' modifier.
sleep: Terminated

Maybe I'm doing it wrong? Here's -vv:

# perf record -vv -e r412e:p -c 10000 -a -- sleep 1
------------------------------------------------------------
perf_event_attr:
  type                4
  size                96
  config              0x412e
  sample_period       10000
  sample_freq         10000
  sample_type         0x87
  read_format         0
  disabled            1    inherit             1
  pinned              0    exclusive           0
  exclude_user        0    exclude_kernel      0
  exclude_hv          0    exclude_idle        0
  mmap                1    comm                1
  freq                0    inherit_stat        0
  enable_on_exec      0    task                0
  watermark           0    precise_ip          1
  mmap_data           0    sample_id_all       1
  exclude_host        0    exclude_guest       1
  excl.callchain_kern 0    excl.callchain_user 0
  mmap2               0
  wakeup_events       0
  wakeup_watermark    0
  bp_type             0
  bp_addr             0
  config1             0
  bp_len              0
  config2             0
  branch_sample_type  0
  sample_regs_user    0
  sample_stack_user   0
------------------------------------------------------------
perf_event_open: pid -1  cpu 0  group_fd -1  flags 0
perf_event_open failed, error -95
Error:
'precise' request may not be supported. Try removing 'p' modifier.
sleep: Terminated

This CPU does have DS:

# cpuid -1 | gerp 'debug store'
      debug store                            = true
      64-bit debug store                      = true
      CPL-qualified debug store               = true

And bit 12 of IA32_MISC_ENABLE is 0, which should mean PEBS is supported:

# rdmsr 0x1a0 -f 12:12
0

Any other way to debug?

I see x86_pmu_hw_config() has been updated since 3.13, so maybe I
should upgrade the kernel... Thanks,

Brendan

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-05-24 14:03 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-19 22:29 Getting PEBS to work Brendan Gregg
     [not found] ` <CAPAnC4PsdkN=9NQ6D_n2p6NX64yB0ASXhTqQRsGw5N3Jvr3d2A@mail.gmail.com>
2016-05-19 23:13   ` Brendan Gregg
     [not found]     ` <CAPAnC4PGktN_QYu9T6f5=p0cJ1wV59TWNcPYpskYDck=O=7faw@mail.gmail.com>
2016-05-20  0:09       ` Brendan Gregg
     [not found] ` <CAPAnC4NObR7Fe-fZr9z5tdD0cyyVhd6WojN-aWst2Z2rtxQ6SQ@mail.gmail.com>
2016-05-20  0:19   ` Brendan Gregg
2016-05-20  0:47     ` Vince Weaver
2016-05-20  1:06       ` Brendan Gregg
2016-05-23 14:05         ` Arnaldo Carvalho de Melo
2016-05-24 10:17           ` Peter Zijlstra
2016-05-24 12:19             ` Arnaldo Carvalho de Melo
2016-05-24 14:02             ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).