Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys Rearrange the sysctl export structure for better alignment.



details:   https://anonhg.NetBSD.org/src/rev/7618383a883e
branches:  trunk
changeset: 820225:7618383a883e
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Wed Jan 04 01:05:58 2017 +0000

description:
Rearrange the sysctl export structure for better alignment.

diffstat:

 sys/kern/kern_history.c |  7 ++++---
 sys/sys/kernhist.h      |  7 ++++---
 2 files changed, 8 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 32c040080cb7 -r 7618383a883e sys/kern/kern_history.c
--- a/sys/kern/kern_history.c   Tue Jan 03 20:59:32 2017 +0000
+++ b/sys/kern/kern_history.c   Wed Jan 04 01:05:58 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_history.c,v 1.9 2017/01/01 23:58:47 pgoyette Exp $         */
+/*     $NetBSD: kern_history.c,v 1.10 2017/01/04 01:05:58 pgoyette Exp $        */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_history.c,v 1.9 2017/01/01 23:58:47 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_history.c,v 1.10 2017/01/04 01:05:58 pgoyette Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kernhist.h"
@@ -466,7 +466,8 @@
                        out_evt->she_fmtoffset = 0;
                        continue;
                }
-               TIMEVAL_TO_TIMESPEC(&in_evt->tv, &out_evt->she_tspec);
+               out_evt->she_time_sec = in_evt->tv.tv_sec;
+               out_evt->she_time_usec = in_evt->tv.tv_usec;
                out_evt->she_callnumber = in_evt->call;
                out_evt->she_cpunum = in_evt->cpunum;
                out_evt->she_values[0] = in_evt->v[0];
diff -r 32c040080cb7 -r 7618383a883e sys/sys/kernhist.h
--- a/sys/sys/kernhist.h        Tue Jan 03 20:59:32 2017 +0000
+++ b/sys/sys/kernhist.h        Wed Jan 04 01:05:58 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kernhist.h,v 1.14 2017/01/01 23:58:47 pgoyette Exp $   */
+/*     $NetBSD: kernhist.h,v 1.15 2017/01/04 01:05:58 pgoyette Exp $   */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -80,13 +80,14 @@
 
 /* info for a single history event */
 struct sysctl_history_event {
-       struct timespec she_tspec;
+       time_t          she_time_sec;
+       uint32_t        she_time_usec;
+       uint32_t        she_filler;
        uint64_t        she_callnumber;
        uint64_t        she_values[4];
        uint32_t        she_cpunum;
        uint32_t        she_fmtoffset;
        uint32_t        she_funcoffset;
-       uint32_t        she_filler;
 };
 
 /* list of all events for a single history */



Home | Main Index | Thread Index | Old Index