Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F105707621
D31080.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
D31080.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D31080: mbuf: add m_get_raw and m_gethdr_raw
Attached
Detach File
Event Timeline
Log In to Comment