[DTrace-devel] [PATCH v2 1/2] test: Fix tst.print.skb.r
eugene.loh at oracle.com
eugene.loh at oracle.com
Fri Dec 22 18:50:18 UTC 2023
From: Eugene Loh <eugene.loh at oracle.com>
Signed-off-by: Eugene Loh <eugene.loh at oracle.com>
---
test/unittest/print/tst.print.skb.d | 2 +-
test/unittest/print/tst.print.skb.r | 9 +--------
2 files changed, 2 insertions(+), 9 deletions(-)
diff --git a/test/unittest/print/tst.print.skb.d b/test/unittest/print/tst.print.skb.d
index f09686e8..7213dd3a 100644
--- a/test/unittest/print/tst.print.skb.d
+++ b/test/unittest/print/tst.print.skb.d
@@ -12,8 +12,8 @@ BEGIN
{
skb = (struct sk_buff *)alloca(sizeof (struct sk_buff));
skb->len = 123;
- skb->network_header = 32;
skb->data = (unsigned char *)0xfeedfacefeedface;
+ skb->truesize = 32;
print(skb);
exit(0);
}
diff --git a/test/unittest/print/tst.print.skb.r b/test/unittest/print/tst.print.skb.r
index f389bc4f..73d18a97 100644
--- a/test/unittest/print/tst.print.skb.r
+++ b/test/unittest/print/tst.print.skb.r
@@ -1,14 +1,7 @@
{ptr} = *
(struct sk_buff) {
.len = (unsigned int)123,
- (struct) {
- (struct) {
- .network_header = (__u16)32,
- },
- .headers = (struct) {
- .network_header = (__u16)32,
- },
- },
.data = (unsigned char *){ptr},
+ .truesize = (unsigned int)32,
}
--
2.18.4
More information about the DTrace-devel
mailing list