[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <871wmuab01.fsf@wragg.org>
Date: Wed, 20 Dec 2006 14:38:06 +0000
From: David Wragg <david@...gg.org>
To: Arjan van de Ven <arjan@...radead.org>
Cc: Albert Cahalan <acahalan@...il.com>, linux-kernel@...r.kernel.org,
bcrl@...ck.org
Subject: Re: [PATCH] procfs: export context switch counts in /proc/*/stat
Arjan van de Ven <arjan@...radead.org> writes:
> if all you care is the number of context switches, you can use the
> following system tap script as well:
>
> http://www.fenrus.org/cstop.stp
Thanks, something similar to that might well have solved my original
problem.
(When I try the script, stap complains about the lack of the kernel
debuginfo package, which of course doesn't exist for my self-built
kernel. After hunting around on the web for 10 minutes, I'm still no
closer to resolving this. But I look forward to playing with
systemtap once I get past that problem.)
Nonetheless, while systemtap might provide an objection to adding
per-task context switch counters to the kernel, it doesn't answer the
question, since we do have these counters, why not expose them in the
normal way?
David
-
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