mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* perf: rdpmc and PERF_EVENT_IOC_RESET
@ 2016-08-17  4:53 Vince Weaver
  2016-08-17 15:26 ` Peter Zijlstra
  0 siblings, 1 reply; 3+ messages in thread
From: Vince Weaver @ 2016-08-17  4:53 UTC (permalink / raw)
  To: linux-kernel; +Cc: Ingo Molnar, Peter Zijlstra, Arnaldo Carvalho de Melo

Hello

so using rdpmc() and the mmap page to do fast perf_event reads seems to 
interact poorly with the PERF_EVENT_IOC_RESET ioctl.

>From what I can tell, on reset event->count is set to zero, but 
event->hw.prev_count is not, so the userpg->offset field ends up negative 
and weird things happen.

Shout reset just not be called if you are using the rdpmc() interface?

Vince

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

end of thread, other threads:[~2016-08-18  4:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-17  4:53 perf: rdpmc and PERF_EVENT_IOC_RESET Vince Weaver
2016-08-17 15:26 ` Peter Zijlstra
2016-08-18  4:32   ` Vince Weaver

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®