[PATCH] Kprobes: Make kprobe modules more portable
[linux-2.6.git] / net / ipv4 / tcp_probe.c
index dab37d2f65fcf09a820bce52300d7f335ab5066c..4be336f17883ca21e129fd93a146d6e73c338fb1 100644 (file)
@@ -99,8 +99,10 @@ static int jtcp_sendmsg(struct kiocb *iocb, struct sock *sk,
 }
 
 static struct jprobe tcp_send_probe = {
-       .kp = { .addr = (kprobe_opcode_t *) &tcp_sendmsg, },
-       .entry = (kprobe_opcode_t *) &jtcp_sendmsg,
+       .kp = {
+               .symbol_name    = "tcp_sendmsg",
+       },
+       .entry  = JPROBE_ENTRY(jtcp_sendmsg),
 };