diff options
| author | Kenneth D. Merry <ken@FreeBSD.org> | 2001-08-18 05:46:59 +0000 |
|---|---|---|
| committer | Kenneth D. Merry <ken@FreeBSD.org> | 2001-08-18 05:46:59 +0000 |
| commit | 884539f70154b0fefdf6905be893c0ceabca755f (patch) | |
| tree | 048b1c2152f5670e9ca51f561c6bddb4e8181511 /lib/libdevstat/devstat.h | |
| parent | 29b7fbd17f641e56ce54f186c49599d89cbf6ea3 (diff) | |
Implement compute_stats() in terms of devstat_compute_statistics(). This
gets rid of the duplicated code in compute_stats().
Add a new DSM_SKIP statistic type for devstat_compute_statistics() that
causes the subsequent variable argument to be skipped.
Thanks to Sergey Osokin for coding up my idea/code fragment.
Submitted by: "Sergey A. Osokin" <osa@freebsd.org.ru>
Notes
svn path=/head/; revision=81883
Diffstat (limited to 'lib/libdevstat/devstat.h')
| -rw-r--r-- | lib/libdevstat/devstat.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libdevstat/devstat.h b/lib/libdevstat/devstat.h index ec638c15fed6..49d8f2dddca0 100644 --- a/lib/libdevstat/devstat.h +++ b/lib/libdevstat/devstat.h @@ -74,6 +74,7 @@ typedef enum { DSM_MS_PER_TRANSACTION, DSM_MS_PER_TRANSACTION_READ, DSM_MS_PER_TRANSACTION_WRITE, + DSM_SKIP, DSM_MAX } devstat_metric; |
