Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net/npf enable the sampling function for _NPF_RUMP
details: https://anonhg.NetBSD.org/src/rev/159703eeebe4
branches: trunk
changeset: 445391:159703eeebe4
user: christos <christos%NetBSD.org@localhost>
date: Fri Oct 26 23:35:06 2018 +0000
description:
enable the sampling function for _NPF_RUMP
diffstat:
sys/net/npf/npf_state.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r 0e9053d88869 -r 159703eeebe4 sys/net/npf/npf_state.c
--- a/sys/net/npf/npf_state.c Fri Oct 26 23:34:32 2018 +0000
+++ b/sys/net/npf/npf_state.c Fri Oct 26 23:35:06 2018 +0000
@@ -33,7 +33,7 @@
#ifdef _KERNEL
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: npf_state.c,v 1.19 2018/09/29 14:41:36 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: npf_state.c,v 1.20 2018/10/26 23:35:06 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -76,7 +76,7 @@
/*
* State sampler for debugging.
*/
-#if defined(_NPF_TESTING)
+#if defined(_NPF_TESTING) || defined(_NPF_RUMP)
static void (*npf_state_sample)(npf_state_t *, bool) = NULL;
#define NPF_STATE_SAMPLE(n, r) if (npf_state_sample) (*npf_state_sample)(n, r);
#else
@@ -199,7 +199,7 @@
#endif
}
-#if defined(_NPF_TESTING)
+#if defined(_NPF_TESTING) || defined(_NPF_RUMP)
void
npf_state_setsampler(void (*func)(npf_state_t *, bool))
{
Home |
Main Index |
Thread Index |
Old Index