Re: [PATCH][RFC] oprofile for 2.5.39

Andi Kleen (ak@suse.de)
Sun, 29 Sep 2002 05:14:14 +0200


> I think you can easily do that by keeping state per cpu in the
> NMI handler.
>
> if (current == __get_cpu_var(oprofile_cpustate)) {
^^
Should be != of course.

-Andi

> /* log current */
> __get_cpu_var(oprofile_cpustate) = current;
> } else {
> /* do nothing */
> }
> /* log EIP */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/