| 149 | void dtrace_getnanouptime(struct timespec *tsp); |
| 150 | |
| 151 | static int |
| 152 | sysctl_kern_boottime(SYSCTL_HANDLER_ARGS) |
| 153 | { |
| 154 | struct timeval boottime; |
| 155 | |
| 156 | getboottime(&boottime); |
| 157 | |
| 158 | /* i386 is the only arch which uses a 32bits time_t */ |
| 159 | #ifdef __amd64__ |
| 160 | #ifdef SCTL_MASK32 |
| 161 | int tv[2]; |
| 162 | |
| 163 | if (req->flags & SCTL_MASK32) { |
| 164 | tv[0] = boottime.tv_sec; |
| 165 | tv[1] = boottime.tv_usec; |
| 166 | return (SYSCTL_OUT(req, tv, sizeof(tv))); |
| 167 | } |
| 168 | #endif |
| 169 | #endif |
| 170 | return (SYSCTL_OUT(req, &boottime, sizeof(boottime))); |
| 171 | } |
| 172 | |
| 173 | static int |
| 174 | sysctl_kern_timecounter_get(SYSCTL_HANDLER_ARGS) |
nothing calls this directly
no test coverage detected