All of lore.kernel.org
 help / color / mirror / Atom feed
* Why the need to do a perf_event_open syscall for each cpu on the system?
@ 2015-03-13 18:49 William Cohen
  2015-03-13 21:14 ` Vince Weaver
  2015-03-15  5:15 ` Elazar Leibovich
  0 siblings, 2 replies; 7+ messages in thread
From: William Cohen @ 2015-03-13 18:49 UTC (permalink / raw)
  To: linux-perf-users

Hi All,

I have a design question about the linux kernel perf support. A number of /proc statistics aggregate data across all the cpus in the system.  Why the does perf require the user-space application to enumerate all the processors and do a perf_event_open syscall for each of the processors?  Why not have a perf_event_open with pid=-1 and cpu=-1 mean system-wide event and aggregate it in the kernel when the value is read?  The line below from design.txt specifically say it is invalid.

(Note: the combination of 'pid == -1' and 'cpu == -1' is not valid.)

-Will

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

end of thread, other threads:[~2015-03-17 15:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-13 18:49 Why the need to do a perf_event_open syscall for each cpu on the system? William Cohen
2015-03-13 21:14 ` Vince Weaver
2015-03-15  5:15 ` Elazar Leibovich
2015-03-16 14:47   ` William Cohen
2015-03-17  0:51     ` Stephane Eranian
2015-03-17 14:40     ` Andi Kleen
2015-03-17 15:30       ` William Cohen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.