[PATCH 1/6] perf/core: Provide a kernel-internal interface to get to performance counters

From: Paul Mackerras
Date: Sun Nov 01 2009 - 23:47:30 EST


Frederic Weisbecker writes:

> /*
> + * perf_event_create_kernel_counter
> + * MUST be called from a kernel thread.

Why? The reason for this requirement isn't obvious to me. It would
be good to have the reason documented in the comment for the sake of
people modifying the code in future.

Paul.
--
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/