This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Arguments of inlines


I am probing the following inline defined in include/rdma/ib_verbs.h:

static inline int ib_post_send(struct ib_qp *qp,
                               struct ib_send_wr *send_wr,
                               struct ib_send_wr **bad_send_wr)
{
        return qp->device->post_send(qp, send_wr, bad_send_wr);
}

And accessing the qp argument, however stap complains it can not
reference $qp.  It this a limitation? Any ideas?

My probe:

probe module("ib_ipoib").function("ib_post_send").inline
{
        printf("ib_post_send: ib_qpv = %p  \n",$qp);
}


Pass 1: parsed user script and 45 library script(s) in
390usr/0sys/405real ms.
probe ib_post_send@include/rdma/ib_verbs.h:1345 module=ib_ipoib
reloc=.text section=.text pc=0x2591b48
probe ib_post_send@include/rdma/ib_verbs.h:1345 module=ib_ipoib
reloc=.text section=.text pc=0x2593400
probe ib_post_send@include/rdma/ib_verbs.h:1345 module=ib_ipoib
reloc=.text section=.text pc=0x2593844
probe ib_post_send@include/rdma/ib_verbs.h:1345 module=ib_ipoib
reloc=.text section=.text pc=0x2597264
probe ib_post_send@include/rdma/ib_verbs.h:1345 module=ib_ipoib
reloc=.text section=.text pc=0x2598b08
semantic error: not accessible at this address: identifier '$qp' at
rdma.stp:6:4

$ rpm -qa | grep systemtap
systemtap-0.7.2-2.el5
systemtap-runtime-0.7.2-2.el5

$ stap -V
SystemTap translator/driver (version 0.7.2/0.137 non-git sources)
Copyright (C) 2005-2008 Red Hat, Inc. and others
This is free software; see the source for copying conditions.


Thanks
   Dave


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]