Skip to content

Commit

Permalink
Use older skb/kfree_skb tracepoint for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pchaigno committed May 2, 2018
1 parent b66a9c9 commit a8b4cee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/python/test_clang.py
Original file line number Diff line number Diff line change
Expand Up @@ -704,10 +704,10 @@ def test_padding_types(self):
@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)
Expand Down

0 comments on commit a8b4cee

Please sign in to comment.