summaryrefslogtreecommitdiffstats
path: root/net/dccp/probe.c
diff options
context:
space:
mode:
authorIan McDonald <ian.mcdonald@jandi.co.nz>2006-11-20 18:41:37 -0200
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-02 21:24:39 -0800
commite1b7441e803442828780a6d6d792643f79d5665b (patch)
tree7f1bf868f47666d87e929ea570a456211858a969 /net/dccp/probe.c
parent23ea8945f6be2287fec67c85abcf24736c1ded80 (diff)
downloadop-kernel-dev-e1b7441e803442828780a6d6d792643f79d5665b.zip
op-kernel-dev-e1b7441e803442828780a6d6d792643f79d5665b.tar.gz
[DCCP]: Make dccp_probe more portable
This makes the code of the dccp_probe module more portable. Signed-off-by: Ian McDonald <ian.mcdonald@jandi.co.nz> Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Diffstat (limited to 'net/dccp/probe.c')
-rw-r--r--net/dccp/probe.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/dccp/probe.c b/net/dccp/probe.c
index fded149..f81e37d 100644
--- a/net/dccp/probe.c
+++ b/net/dccp/probe.c
@@ -106,8 +106,10 @@ static int jdccp_sendmsg(struct kiocb *iocb, struct sock *sk,
}
static struct jprobe dccp_send_probe = {
- .kp = { .addr = (kprobe_opcode_t *)&dccp_sendmsg, },
- .entry = (kprobe_opcode_t *)&jdccp_sendmsg,
+ .kp = {
+ .symbol_name = "dccp_sendmsg",
+ },
+ .entry = JPROBE_ENTRY(jdccp_sendmsg),
};
static int dccpprobe_open(struct inode *inode, struct file *file)
OpenPOWER on IntegriCloud