Page MenuHomeFreeBSD

D31080.diff
No OneTemporary

D31080.diff

diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c
--- a/sys/kern/uipc_mbuf.c
+++ b/sys/kern/uipc_mbuf.c
@@ -62,11 +62,21 @@
"uint32_t", "uint32_t",
"uint32_t", "uint32_t");
+SDT_PROBE_DEFINE3_XLATE(sdt, , , m__gethdr_raw,
+ "uint32_t", "uint32_t",
+ "uint16_t", "uint16_t",
+ "struct mbuf *", "mbufinfo_t *");
+
SDT_PROBE_DEFINE3_XLATE(sdt, , , m__gethdr,
"uint32_t", "uint32_t",
"uint16_t", "uint16_t",
"struct mbuf *", "mbufinfo_t *");
+SDT_PROBE_DEFINE3_XLATE(sdt, , , m__get_raw,
+ "uint32_t", "uint32_t",
+ "uint16_t", "uint16_t",
+ "struct mbuf *", "mbufinfo_t *");
+
SDT_PROBE_DEFINE3_XLATE(sdt, , , m__get,
"uint32_t", "uint32_t",
"uint16_t", "uint16_t",
diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h
--- a/sys/sys/mbuf.h
+++ b/sys/sys/mbuf.h
@@ -62,7 +62,9 @@
SDT_PROBE5(sdt, , , probe, arg0, arg1, arg2, arg3, arg4)
SDT_PROBE_DECLARE(sdt, , , m__init);
+SDT_PROBE_DECLARE(sdt, , , m__gethdr_raw);
SDT_PROBE_DECLARE(sdt, , , m__gethdr);
+SDT_PROBE_DECLARE(sdt, , , m__get_raw);
SDT_PROBE_DECLARE(sdt, , , m__get);
SDT_PROBE_DECLARE(sdt, , , m__getcl);
SDT_PROBE_DECLARE(sdt, , , m__getjcl);
@@ -956,6 +958,19 @@
return (error);
}
+static __inline struct mbuf *
+m_get_raw(int how, short type)
+{
+ struct mbuf *m;
+ struct mb_args args;
+
+ args.flags = 0;
+ args.type = type | MT_NOINIT;
+ m = uma_zalloc_arg(zone_mbuf, &args, how);
+ MBUF_PROBE3(m__get_raw, how, type, m);
+ return (m);
+}
+
static __inline struct mbuf *
m_get(int how, short type)
{
@@ -969,6 +984,19 @@
return (m);
}
+static __inline struct mbuf *
+m_gethdr_raw(int how, short type)
+{
+ struct mbuf *m;
+ struct mb_args args;
+
+ args.flags = M_PKTHDR;
+ args.type = type | MT_NOINIT;
+ m = uma_zalloc_arg(zone_mbuf, &args, how);
+ MBUF_PROBE3(m__gethdr_raw, how, type, m);
+ return (m);
+}
+
static __inline struct mbuf *
m_gethdr(int how, short type)
{

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 12:19 PM (21 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15530145
Default Alt Text
D31080.diff (1 KB)

Event Timeline