Project

General

Profile

Actions

Bug #6558

open

kstat: desire type for timestamps

Added by Garrett D'Amore almost 6 years ago. Updated almost 6 years ago.

Status:
New
Priority:
Normal
Category:
cmd - userland programs
Start date:
2016-01-15
Due date:
% Done:

90%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

occasionally a real time (64-bit hrtime?) is useful, and it would be nice to express this in kstats. We have snaptime and crtime already, so adding a discrete kstat type would be useful. (For example, I want to record the time when a configuration changed, or the time when a device was reset.) I could print this using strings, but using a 64-bit integer would be much more efficient, and avoid trying to do hard time calculations in the kernel.

I'm thinking KSTAT_TYPE_TIMESTAMP

If folks agree, I'll prepare a changeset for this.

Actions

Also available in: Atom PDF