Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Peter Zijlstra
Subject:
Date: Tuesday, April 6, 2010 - 8:27 am

On Mon, 2010-04-05 at 16:08 +0200, Frederic Weisbecker wrote:

So we have a hash-table per-cpu, each event takes a ref on the hash
table, when the thing is empty we free it.

When the event->cpu == -1 (all cpus) we take a ref on all possible cpu's
hash-table (should be online I figure, but that requires adding a
hotplug handler).

Then on event enable/disable we actually add the event to the hash-table
belonging to the cpu the event/task gets scheduled on, since each event
can only ever be active on one cpu.

Right?

So looks good, altough I think we want to do that online/hotplug thing.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] perf: Store active software events in a hashlist, Frederic Weisbecker, (Mon Apr 5, 7:08 am)
[No subject], Peter Zijlstra, (Tue Apr 6, 8:27 am)
Re: [PATCH] perf: Store active software events in a hashlist, Frederic Weisbecker, (Wed Apr 7, 4:52 am)
Re: [PATCH] perf: Store active software events in a hashlist, Frederic Weisbecker, (Wed Apr 7, 4:56 am)
Re: [PATCH] perf: Store active software events in a hashlist, Frederic Weisbecker, (Wed Apr 7, 4:58 am)
Re: [PATCH] perf: Store active software events in a hashlist, Frederic Weisbecker, (Wed Apr 7, 5:06 am)
Re: [PATCH] perf: Store active software events in a hashlist, Frederic Weisbecker, (Wed Apr 7, 5:09 am)
[PATCH v2] perf: Store active software events in a hashlist, Frederic Weisbecker, (Thu Apr 8, 12:39 pm)
Re: [PATCH v2] perf: Store active software events in a has ..., Frederic Weisbecker, (Thu Apr 8, 1:11 pm)