Bug #749

"/usr/bin/kstat" should be rewritten in C

Added by Alexander Eremin almost 8 years ago. Updated almost 6 years ago.

Status:ResolvedStart date:2011-02-22
Priority:NormalDue date:
Assignee:-% Done:


Category:cmd - userland programs
Target version:-
Difficulty:Medium Tags:


"/usr/bin/kstat" should be rewritten in C to remove perl dependency.

Related issues

Duplicated by illumos gate - Feature #2034: Rewrite perl kstat in c Closed 2012-01-25


#1 Updated by Gary Mills over 6 years ago

  • Status changed from New to Feedback
  • Difficulty set to Medium
  • Tags set to needs-triage

My first attempt to compile David Höppner's kstat on a SPARC system had this result:

In file included from kstat.c:62:
kstat.h:41:26: vm/hat_sfmmu.h: No such file or directory
kstat.h:42:26: sys/simmstat.h: No such file or directory
kstat.h:43:25: sys/sysctrl.h: No such file or directory
kstat.h:44:21: sys/fhc.h: No such file or directory

The missing header files are present under usr/src/uts but are not available to the compiler. I don't know why that is.

#2 Updated by Albert Lee almost 6 years ago

  • Subject changed from "/usr/bin/kstat" should be rewritten in C to "/usr/bin/kstat" should be rewritten in C

#3 Updated by Garrett D'Amore almost 6 years ago

  • Tags deleted (needs-triage)
  • % Done changed from 0 to 100
  • Status changed from Feedback to Resolved
  • Category set to cmd - userland programs

commit 66448911ac89c254e89afc52e114402115a497e3
Author: David Höppner <>
Date: Wed Jan 9 12:18:53 2013 +0000

749 "/usr/bin/kstat" should be rewritten in C
Reviewed by: Garrett D'Amore &lt;&gt;
Reviewed by: Brendan Gregg &lt;&gt;
Approved by: Garrett D'Amore &lt;&gt;

Also available in: Atom