From 53ef73d870b78df97a3f597b30905161c71b8793 Mon Sep 17 00:00:00 2001 From: glebius Date: Tue, 15 Oct 2013 10:05:37 +0000 Subject: - 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. --- sys/sys/counter.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/sys/counter.h') 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 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__ */ -- cgit v1.1