Print this page
codereview and testing fixes.
6558 kstat: desire type for timestamps
*** 21,30 ****
--- 21,31 ----
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
* Copyright 2015 Nexenta Systems, Inc. All rights reserved.
+ * Copyright 2016 Garrett D'Amore
*/
#ifndef _SYS_KSTAT_H
#define _SYS_KSTAT_H
*** 480,489 ****
--- 481,492 ----
uint64_t ui64;
#endif
long l;
ulong_t ul;
+ hrtime_t t;
+
/* These structure members are obsolete */
longlong_t ll;
u_longlong_t ull;
float f;
*** 526,535 ****
--- 529,543 ----
* initialization) to reflect the correct amount of space required for the
* long strings and the kstat_named_t's.
*/
#define KSTAT_DATA_STRING 9
+ /*
+ * Value is an hrtime_t, in seconds since system boot.
+ */
+ #define KSTAT_DATA_TIME 10
+
/* These types are obsolete */
#define KSTAT_DATA_LONGLONG KSTAT_DATA_INT64
#define KSTAT_DATA_ULONGLONG KSTAT_DATA_UINT64
#define KSTAT_DATA_FLOAT 5