linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* perf record and intel_cqm/llc_occupancy
@ 2016-06-22 15:42 Omar Awile
  2016-06-23 20:53 ` Andi Kleen
  0 siblings, 1 reply; 4+ messages in thread
From: Omar Awile @ 2016-06-22 15:42 UTC (permalink / raw)
  To: linux-perf-users@vger.kernel.org; +Cc: Aram Santogidis

Dear perf users,

I have a question regarding perf’s support for Intel Cache Monitoring Technology. For the event intel_cqm/llc_occupancy, ‘perf stat’ works fine but ‘perf record’ does not. For example when I execute:

> perf record -e intel_cqm/llc_occupancy/ sleep 1

I get  

Error:
The sys_perf_event_open() syscall returned with 22 (Invalid argument) for event (intel_cqm/llc_occupancy/).
/bin/dmesg may provide additional information.
No CONFIG_PERF_EVENTS=y kernel support configured?

but when I execute:

> perf stat -e intel_cqm/llc_occupancy/ sleep 1

I get

Performance counter stats for 'sleep 1':

   40,960.00 Bytes intel_cqm/llc_occupancy/
   
   1.001455067 seconds time elapsed


* My perf and kernel version is 4.6.2-1.el7.elrepo.x86_64.
* cat /proc/sys/kernel/perf_event_paranoid returns -1
* The CPU is the E5-2630 v4 2.20GHz “Broadwell”.

Is it possible that for intel_cqm/llc_occupancy interrupts are not supported? In that case it wouldn’t be more appropriate to return ENOTSUP instead of EINVAL?

Thanks a lot in advance,

Omar

--
Omar Awile, Ph.D.
Systems Performance Engineer
CERN - 513/R-046



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

end of thread, other threads:[~2016-06-24 16:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-22 15:42 perf record and intel_cqm/llc_occupancy Omar Awile
2016-06-23 20:53 ` Andi Kleen
2016-06-24 12:27   ` Omar Awile
2016-06-24 16:43     ` 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).