lkml.org 
[lkml]   [2005]   [Oct]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch 1/14] s390: statistics infrastructure.
On Fri, Oct 28, 2005 at 04:06:17PM +0200, Martin Schwidefsky wrote:
> From: Martin Peschke <mpeschke@de.ibm.com>
>
> [patch 1/14] s390: statistics infrastructure.
>
> Add the statistics facility. This features offers a simple way to
> gather statistical data and to display them via the debugfs.
> An example how this is used:
>
> struct statistic_interface *stat_if;
> struct statistic *stat;
>
> statistic_interface_create(&stat_if, "whatever");
> statistic_create(&stat, stat_if, "stat-name", "unit");
> statistic_define_value(stat, range_min, range_max, def_mode);
> ...
> statistic_inc(stat, value); /* repeat.. */
> ...
> statistic_interface_remove(&stat_if);

This certainly doesn't belong into arch code. Please move to common
code and send over to lkml for detailed review.

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

\
 
 \ /
  Last update: 2005-10-28 20:10    [W:1.048 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site