[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1238697197.5133.49.camel@laptop>
Date: Thu, 02 Apr 2009 20:33:17 +0200
From: Peter Zijlstra <a.p.zijlstra@...llo.nl>
To: Ingo Molnar <mingo@...e.hu>
Cc: Paul Mackerras <paulus@...ba.org>,
Corey Ashford <cjashfor@...ux.vnet.ibm.com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/6] RFC perf_counter: singleshot support
On Thu, 2009-04-02 at 20:10 +0200, Ingo Molnar wrote:
> * Peter Zijlstra <a.p.zijlstra@...llo.nl> 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?
F_SETSIG allows you to change the signal that is delivered, SIGIO by
default, F_SETOWN allows you to specify a target.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists