All of lore.kernel.org
 help / color / mirror / Atom feed
* About using PEBS from the user space
@ 2015-05-03 22:05 Harald Servat
  2015-05-03 22:19 ` Vince Weaver
  0 siblings, 1 reply; 7+ messages in thread
From: Harald Servat @ 2015-05-03 22:05 UTC (permalink / raw)
  To: linux-perf-users

Dear list,

   I'd like to use the perf library to access PEBS so as to collect 
referenced memory addresses from the user space. I think I've 
successfully setup the perf structures (struct perf_event_attr) to 
configure the performance counters, but I don't see what should I do to 
access to the captured memory addresses. I've seen that within 
arch/x86/kernel/cpu/perf_event_intel_ds.c there are the routines 
alloc_pebs_buffer, alloc_ds_buffer which seems to allocate and setup the 
necessary buffers using kmalloc_node calls. Question is, how can 
replicate this from the user space? And how we should connect these 
buffers to the PEBS infrastructure using perf calls?

Thank you very much in advance.

WARNING / LEGAL TEXT: This message is intended only for the use of the
individual or entity to which it is addressed and may contain
information which is privileged, confidential, proprietary, or exempt
from disclosure under applicable law. If you are not the intended
recipient or the person responsible for delivering the message to the
intended recipient, you are strictly prohibited from disclosing,
distributing, copying, or in any way using this message. If you have
received this communication in error, please notify the sender and
destroy and delete any copies you may have received.

http://www.bsc.es/disclaimer

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

end of thread, other threads:[~2015-06-26  8:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-03 22:05 About using PEBS from the user space Harald Servat
2015-05-03 22:19 ` Vince Weaver
2015-05-04  8:13   ` Harald Servat
2015-05-04 10:17   ` Harald Servat
2015-06-25 16:00   ` Harald Servat
2015-06-25 19:06     ` Manuel Selva
2015-06-26  8:13       ` Harald Servat

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.