Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160711442
D29555.id86834.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D29555.id86834.diff
View Options
diff --git a/sys/netpfil/pf/pf.c b/sys/netpfil/pf/pf.c
--- a/sys/netpfil/pf/pf.c
+++ b/sys/netpfil/pf/pf.c
@@ -59,6 +59,7 @@
#include <sys/md5.h>
#include <sys/random.h>
#include <sys/refcount.h>
+#include <sys/sdt.h>
#include <sys/socket.h>
#include <sys/sysctl.h>
#include <sys/taskqueue.h>
@@ -112,6 +113,15 @@
#define DPFPRINTF(n, x) if (V_pf_status.debug >= (n)) printf x
+SDT_PROVIDER_DEFINE(pf);
+SDT_PROBE_DEFINE4(pf, ip, test, done, "int", "int", "struct pf_krule *",
+ "struct pf_state *");
+SDT_PROBE_DEFINE4(pf, ip, test6, done, "int", "int", "struct pf_krule *",
+ "struct pf_state *");
+SDT_PROBE_DEFINE5(pf, ip, state, lookup, "struct pfi_kkif *",
+ "struct pf_state_key_cmp *", "int", "struct pf_pdesc *",
+ "struct pf_state *");
+
/*
* Global variables
*/
@@ -326,6 +336,7 @@
#define STATE_LOOKUP(i, k, d, s, pd) \
do { \
(s) = pf_find_state((i), (k), (d)); \
+ SDT_PROBE5(pf, ip, state, lookup, i, k, d, pd, (s)); \
if ((s) == NULL) \
return (PF_DROP); \
if (PACKET_LOOPED(pd)) \
@@ -6318,6 +6329,8 @@
if (s)
PF_STATE_UNLOCK(s);
+ SDT_PROBE4(pf, ip, test, done, action, reason, r, s);
+
return (action);
}
#endif /* INET */
@@ -6726,6 +6739,8 @@
(mtag = m_tag_find(m, PF_REASSEMBLED, NULL)) != NULL)
action = pf_refragment6(ifp, m0, mtag);
+ SDT_PROBE4(pf, ip, test6, done, action, reason, r, s);
+
return (action);
}
#endif /* INET6 */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jun 28, 1:48 AM (6 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34421794
Default Alt Text
D29555.id86834.diff (1 KB)
Attached To
Mode
D29555: pf: Add static DTrace probe points
Attached
Detach File
Event Timeline
Log In to Comment