projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update kernel probes to more detailed match to kernel versions
[lttng-modules.git]
/
instrumentation
/
events
/
lttng-module
/
skb.h
diff --git
a/instrumentation/events/lttng-module/skb.h
b/instrumentation/events/lttng-module/skb.h
index 9a794499c667936a7b67377fbebda94e75da122a..c8a616067e63136cb2ba40a7ff927832733fd6c3 100644
(file)
--- a/
instrumentation/events/lttng-module/skb.h
+++ b/
instrumentation/events/lttng-module/skb.h
@@
-7,6
+7,7
@@
#include <linux/skbuff.h>
#include <linux/netdevice.h>
#include <linux/tracepoint.h>
#include <linux/skbuff.h>
#include <linux/netdevice.h>
#include <linux/tracepoint.h>
+#include <linux/version.h>
/*
* Tracepoint for free an sk_buff:
/*
* Tracepoint for free an sk_buff:
@@
-24,15
+25,16
@@
TRACE_EVENT(kfree_skb,
),
TP_fast_assign(
),
TP_fast_assign(
- tp_assign(skbaddr, skb)
;
- tp_assign(location, location)
;
- tp_assign(protocol, ntohs(skb->protocol))
;
+ tp_assign(skbaddr, skb)
+ tp_assign(location, location)
+ tp_assign(protocol, ntohs(skb->protocol))
),
TP_printk("skbaddr=%p protocol=%u location=%p",
__entry->skbaddr, __entry->protocol, __entry->location)
)
),
TP_printk("skbaddr=%p protocol=%u location=%p",
__entry->skbaddr, __entry->protocol, __entry->location)
)
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
TRACE_EVENT(consume_skb,
TP_PROTO(struct sk_buff *skb),
TRACE_EVENT(consume_skb,
TP_PROTO(struct sk_buff *skb),
@@
-44,12
+46,14
@@
TRACE_EVENT(consume_skb,
),
TP_fast_assign(
),
TP_fast_assign(
- tp_assign(skbaddr, skb)
;
+ tp_assign(skbaddr, skb)
),
TP_printk("skbaddr=%p", __entry->skbaddr)
)
),
TP_printk("skbaddr=%p", __entry->skbaddr)
)
+#endif
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32))
TRACE_EVENT(skb_copy_datagram_iovec,
TP_PROTO(const struct sk_buff *skb, int len),
TRACE_EVENT(skb_copy_datagram_iovec,
TP_PROTO(const struct sk_buff *skb, int len),
@@
-62,12
+66,13
@@
TRACE_EVENT(skb_copy_datagram_iovec,
),
TP_fast_assign(
),
TP_fast_assign(
- tp_assign(skbaddr, skb)
;
- tp_assign(len, len)
;
+ tp_assign(skbaddr, skb)
+ tp_assign(len, len)
),
TP_printk("skbaddr=%p len=%d", __entry->skbaddr, __entry->len)
)
),
TP_printk("skbaddr=%p len=%d", __entry->skbaddr, __entry->len)
)
+#endif
#endif /* _TRACE_SKB_H */
#endif /* _TRACE_SKB_H */
This page took
0.024057 seconds
and
4
git commands to generate.