Use older skb/kfree_skb tracepoint for tests
diff --git a/tests/python/test_clang.py b/tests/python/test_clang.py
index e95c5cb..b740256 100755
--- a/tests/python/test_clang.py
+++ b/tests/python/test_clang.py
@@ -704,10 +704,10 @@
@skipUnless(kernel_version_ge(4,7), "requires kernel >= 4.7")
def test_probe_read_tracepoint_context(self):
text = """
-#include <net/inet_sock.h>
-TRACEPOINT_PROBE(tcp, tcp_retransmit_skb) {
- struct sock *sk = (struct sock *)args->skaddr;
- return sk->sk_dport;
+#include <linux/netdevice.h>
+TRACEPOINT_PROBE(skb, kfree_skb) {
+ struct sk_buff *skb = (struct sk_buff *)args->skbaddr;
+ return skb->protocol;
}
"""
b = BPF(text=text)