mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* perf: behavior of poll() changed in 3.18
@ 2015-01-20 17:03 Vince Weaver
  2015-01-20 18:13 ` Jiri Olsa
  0 siblings, 1 reply; 7+ messages in thread
From: Vince Weaver @ 2015-01-20 17:03 UTC (permalink / raw)
  To: linux-kernel
  Cc: Jiri Olsa, Peter Zijlstra, Arnaldo Carvalho de Melo, Ingo Molnar,
	Paul Mackerras

Hello

Some of my code that used poll() on a perf_event fd broke sometime between 
3.17 and current.  (My perf_event_test validation testsuite caught this
too but I haven't been running it as regularly as I should).

I bisected this to:

	commit 179033b3e064d2cd3f5f9945e76b0a0f0fbf4883
	Author: Jiri Olsa <jolsa@kernel.org>
	Date:   Thu Aug 7 11:48:26 2014 -0400

	perf: Add PERF_EVENT_STATE_EXIT state for events with exited task


Before, when polling, my code would get a
	result=0/WIFEXITED()
return when a child with events being polled exited.

Now instead I get a 
	result=1/POLLHUP
return.

Needless to say this broke my code.  Is there a reason this change was 
made?

Vince


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

end of thread, other threads:[~2015-01-22 18:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-20 17:03 perf: behavior of poll() changed in 3.18 Vince Weaver
2015-01-20 18:13 ` Jiri Olsa
2015-01-21  6:06   ` Vince Weaver
2015-01-21 16:21     ` Jiri Olsa
2015-01-22  6:53       ` Vince Weaver
2015-01-22 13:34         ` Jiri Olsa
2015-01-22 18:09           ` Vince Weaver

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

Powered by JetHome