Re: [RFC PATCH] perf_core: provide a kernel-internal interface to get to performance counters

From: Frank Ch. Eigler
Date: Sat Sep 26 2009 - 12:21:00 EST


Hi -

On Sat, Sep 26, 2009 at 06:11:49PM +0200, Arjan van de Ven wrote:
> [...]
> your appearance is not correct. A perf counter is either attached to a
> task, or to a cpu. I use the later.

OK, that explains the "MUST be called from kernel thread" comment --
so that the ->owner and get/put_task_struct in the new create/free
functions all refer to that kernel thread. Thanks.

- FChE
--
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/