Re: [PATCH 2/6] RFC perf_counter: singleshot support

From: Ingo Molnar
Date: Thu Apr 02 2009 - 14:10:54 EST



* Peter Zijlstra <a.p.zijlstra@xxxxxxxxx> wrote:

> OK, so I just remembered the sigio thing mentioned by Paul a while
> back.
>
> and this should do I suppose...

> @@ -1561,6 +1578,7 @@ void perf_counter_wakeup(struct perf_cou
> rcu_read_unlock();
>
> wake_up_all(&counter->waitq);
> + kill_fasync(&counter->fasync, SIGIO, POLL_IN);

ah, yes.

Do we even need the explicit signo method this way? The SIGIO target
is configurable via fcntl(F_SETSIG), right?

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/