summaryrefslogtreecommitdiffstats
path: root/lib/libdevstat/devstat.h
diff options
context:
space:
mode:
authorken <ken@FreeBSD.org>2001-08-18 05:46:59 +0000
committerken <ken@FreeBSD.org>2001-08-18 05:46:59 +0000
commitef96d4b7a9b4d75885e7773a2430560c72f9b2aa (patch)
tree048b1c2152f5670e9ca51f561c6bddb4e8181511 /lib/libdevstat/devstat.h
parent95b64737b7f4cb499936bd0af68d59f0de68fbdb (diff)
downloadFreeBSD-src-ef96d4b7a9b4d75885e7773a2430560c72f9b2aa.zip
FreeBSD-src-ef96d4b7a9b4d75885e7773a2430560c72f9b2aa.tar.gz
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>
Diffstat (limited to 'lib/libdevstat/devstat.h')
-rw-r--r--lib/libdevstat/devstat.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libdevstat/devstat.h b/lib/libdevstat/devstat.h
index ec638c1..49d8f2d 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;
OpenPOWER on IntegriCloud