diff options
author | glebius <glebius@FreeBSD.org> | 2013-10-15 10:05:37 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2013-10-15 10:05:37 +0000 |
commit | 53ef73d870b78df97a3f597b30905161c71b8793 (patch) | |
tree | 8eb06fc56bcf395c1a2e7a6f085ca680ed27a303 /sys/sys/counter.h | |
parent | 4abf8ebc710cee8231b65b3b909809fd612465bb (diff) | |
download | FreeBSD-src-53ef73d870b78df97a3f597b30905161c71b8793.zip FreeBSD-src-53ef73d870b78df97a3f597b30905161c71b8793.tar.gz |
- While we are spreading the counter(9) across network stack, more userland
tools would need to know about the counter_u64_t type. Allow to include
sys/counter.h from userspace.
- Utilize now defined type in kvm_counter_u64_fetch().
Sponsored by: Netflix
Sponsored by: Nginx, Inc.
Diffstat (limited to 'sys/sys/counter.h')
-rw-r--r-- | sys/sys/counter.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/counter.h b/sys/sys/counter.h index ec5cbfe..2ce7134 100644 --- a/sys/sys/counter.h +++ b/sys/sys/counter.h @@ -31,6 +31,7 @@ typedef uint64_t *counter_u64_t; +#ifdef _KERNEL #include <machine/counter.h> counter_u64_t counter_u64_alloc(int); @@ -58,4 +59,5 @@ uint64_t counter_u64_fetch(counter_u64_t); for (int i = 0; i < (n); i++) \ counter_u64_zero((a)[i]); \ } while (0) +#endif /* _KERNEL */ #endif /* ! __SYS_COUNTER_H__ */ |