• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Test for system_stats syscall which is available on newer Solaris. */
2 
3 #include "scalar.h"
4 #include <sys/system_stats.h>
5 
main(void)6 int main(void)
7 {
8    /* Uninitialised, but we know px[0] is 0x0. */
9    long *px = malloc(sizeof(long));
10    x0 = px[0];
11 
12    /* SYS_system_stats         154 */
13    GO(SYS_system_stats, "1s 0m");
14    SY(SYS_system_stats, x0 + SYSTEM_STATS_START); SUCC;
15 
16    return 0;
17 }
18 
19