* [RFC] [Patch 0/4] timer_stats slimmed down
@ 2007-04-14 10:09 Martin Peschke
2007-04-14 13:07 ` Thomas Gleixner
0 siblings, 1 reply; 2+ messages in thread
From: Martin Peschke @ 2007-04-14 10:09 UTC (permalink / raw)
To: linux-kernel; +Cc: Andrew Morton, linux-s390, tglx, d.pensator, mingo
2.6.21-rc* kernels come with a feature that adds timer statistics
to /proc/timer_stats (CONFIG_TIMER_STATS). This patch set makes it use
the proposed statistics infrastructure (-mm tree), and adds prequisite
functions to the statistics code.
The result are noticeable lines of code savings.
kernel/time/timer_stats.c which comes with several functions which can
be made redundant by using corresponding functions of lib/statistic.c,
that is:
- accounting
- printing output in sequential files
- user interface for switching accounting on/off, reset etc.
- measuring the accounting time
- per-cpu optimisations
Function that were missing in lib/statistics, and which are added by
this patch set, are:
- allow arbitrary keys for statistics entries (e.g. structures)
- allow client to label output of statistics entries (e.g. using keys)
A secondary effect of the patch set is that we won't add another entry
to good old /proc. The statistics infrastructure uses debugfs.
This patch set is a prototype that works for me, but which might allow
for optimisations. Suggestions are welcome.
[Patch 1/4] timer_stats slimmed down: statistics prereq, cleanup
[Patch 2/4] timer_stats slimmed down: statistics prereq, labels
[Patch 3/4] timer_stats slimmed down: statistics prereq, keys
[Patch 4/4] timer_stats slimmed down: using statistics infrastucture
Patch set is against 2.6.21-rc6-mm1 and additionaly requires
"[Patch] statistics: fix sorted list" posted this morning.
Signed-off-by: Martin Peschke <mp3@de.ibm.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [RFC] [Patch 0/4] timer_stats slimmed down
2007-04-14 10:09 [RFC] [Patch 0/4] timer_stats slimmed down Martin Peschke
@ 2007-04-14 13:07 ` Thomas Gleixner
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Gleixner @ 2007-04-14 13:07 UTC (permalink / raw)
To: Martin Peschke; +Cc: linux-kernel, Andrew Morton, linux-s390, d.pensator, mingo
Martin,
On Sat, 2007-04-14 at 12:09 +0200, Martin Peschke wrote:
> 2.6.21-rc* kernels come with a feature that adds timer statistics
> to /proc/timer_stats (CONFIG_TIMER_STATS). This patch set makes it use
> the proposed statistics infrastructure (-mm tree), and adds prequisite
> functions to the statistics code.
>
> The result are noticeable lines of code savings.
> kernel/time/timer_stats.c which comes with several functions which can
> be made redundant by using corresponding functions of lib/statistic.c,
> that is:
>
> - accounting
> - printing output in sequential files
> - user interface for switching accounting on/off, reset etc.
> - measuring the accounting time
> - per-cpu optimisations
>
> Function that were missing in lib/statistics, and which are added by
> this patch set, are:
>
> - allow arbitrary keys for statistics entries (e.g. structures)
> - allow client to label output of statistics entries (e.g. using keys)
>
> A secondary effect of the patch set is that we won't add another entry
> to good old /proc. The statistics infrastructure uses debugfs.
>
> This patch set is a prototype that works for me, but which might allow
> for optimisations. Suggestions are welcome.
I'm a bit short of time to take a closer look, but on the first glance
it looks good to me. I give it a whirl, when I'm back from travelling.
tglx
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-04-14 13:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-14 10:09 [RFC] [Patch 0/4] timer_stats slimmed down Martin Peschke
2007-04-14 13:07 ` Thomas Gleixner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox