On Tue, Sep 19, 2017 at 08:05:45AM -0500, rick weisner wrote:
> look at copyinstr and copyin.

Why?  He's debugging a kernel module.

Cheers,
- jonathan

> 
> On Tue, Sep 19, 2017 at 06:30:46PM +0530, Nayan Gadre wrote:
> > X-CAA-SPAM: N00000
> > X-Authority-Analysis: v=2.2 cv=eK9jtDh1 c=1 sm=1 tr=0
> >       a=Yn8G4MWiPBF0WZanY14M/A==:117 a=Yn8G4MWiPBF0WZanY14M/A==:17
> >       a=IkcTkHD0fZMA:10 a=x7bEGLp0ZPQA:10 a=mCDaMlaF1iUA:10 
> > a=khwyK8DuSVkA:10
> >       a=2JCJgTwv5E4A:10 a=mHUc8iyOAAAA:8 a=VPWQFaXe_e9ToTTTucQA:9
> >       a=QEXdDO2ut3YA:10 a=MjC1zSpKlMvDyCZL-b6m:22
> > X-Xfinity-Message-Heuristics: IPv6:N;TLS=0;SPF=1;DMARC=F
> > Authentication-Results: resimta-ch2-25v.sys.comcast.net;
> >       dkim=pass header.d=listbox.com header.b=erEHO6Sg
> > DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=listbox.com; h=
> >       mime-version:from:date:message-id:subject:to:content-type
> >       :content-transfer-encoding:list-id:list-help:list-unsubscribe
> >       :list-subscribe; s=launch; bh=PAOU0y6EGJauDmIU7Pf1mjBYOtA=; b=er
> >       EHO6SgpgFitI1lhbnYFcgePbW5LrK27zrlMcxdBpk2z9BhcwBfJFIFZ2v5P7Y0ZM
> >       Sd9ty4E6jbU7G0O73uc1RWx8QsCyXI5yl/+tLqzcjXUOhDtBcGZas+ZGYB0fQ5Wk
> >       1O9mIZ+PLaFkfQ3gf5LlxXJLBQtLE0O6fx33puBe8=
> > X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
> >       d=1e100.net; s=20161025;
> >       h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
> >       bh=XOvSqinAWK5dpJmMAOBVXftvgh/4W1k1LN5OBhxtW0Q=;
> >       b=NcW3xjFkdMiNvmfAGTkUtOjSiwZDc4F//2jInOUAxCMnq8CdrM/b2i8PK0D7mLhTY4
> >       h6KiGttfjG8mz2fXAajj7h7E5bJrxslfKKEhf7/vAtssKTDdGmR8FqtWHa6Dc5vYFiWD
> >       YZzQzCJALyYkLAd6nNQMidjWzYbR/zv6KyWvftz41buafjIeQMELaB1jtdgIiCi0hefL
> >       8QhjjJ3nud5CLLFyAb6yUx9DxTQfa/TKUcj+oGo8a/p1pIJnKk7DYt5u2fbArBs4WNwt
> >       Fh9uTStOnSs0XAOqVLcqlygEgBs467SHdt2SqOLBiqYb1RmC4bXhG9mUGNispk+D37Iy
> >       CTWQ==
> > X-Gm-Message-State: AHPjjUi//3zbbsPPJqxUeACxdjtDcKZgmlxYgUlaMiesfdPEypoR373R
> >       u3kYG58AzuAoPyDJXv0RukT41XTCNfXQMBz+bk7uJNKj
> > X-Google-Smtp-Source:
> >       
> > AOwi7QCYyFwiv74kkv1IisLIbnvZ+hI+b0Y4mF2QeBWvQ0CZosf2iVg1v5TPWbRlgu3Add0+
> >       3qYJuUXfGXA8O1dhtqM=
> > X-Received: by 10.107.140.13 with SMTP id o13mr1662826iod.216.1505826047059;
> >       Tue, 19 Sep 2017 06:00:47 -0700 (PDT)
> > From: Nayan Gadre <beejoy.na...@gmail.com>
> > Date: Tue, 19 Sep 2017 18:30:46 +0530
> > Subject: [dtrace-discuss] Printing arguments to a kernel function in dtrace
> > To: dtrace-discuss@lists.dtrace.org
> > X-Original-Sender: Nayan Gadre <beejoy.na...@gmail.com>
> > List-ID: <dtrace-discuss@lists.dtrace.org>
> > X-Listbox-List-ID: 184261 <dtrace-discuss@lists.dtrace.org>
> > List-Software: listbox.com v2.0
> > List-Help: <http://www.listbox.com/subscription-help.html>
> > Precedence: list
> > List-Unsubscribe: <mailto:unsubscribe-dtrace-disc...@lists.dtrace.org>,
> >       <https://www.listbox.com/unsubscribe/?&;
> >       
> > 064-0abb6708&post_id=20170919090103:94A1CE62-9D3A-11E7-87B7-D6D0FDBFD8F1
> >       >
> > List-Subscribe: <mailto:subscribe-dtrace-disc...@lists.dtrace.org>,
> >       <http://www.listbox.com/subscribe/?list_id=184261>
> > X-Listbox-Post-Id: 20170919090103:94A1CE62-9D3A-11E7-87B7-D6D0FDBFD8F1
> > Errors-To:
> >       
> > listbox+trampoline+s_F+uk1i+Ys6hlDqd5xGHt9bQ_b_Y8Q+Ku2cI@jeeves.archives
> >       .listbox.com
> > X-CMAE-Envelope:
> >       
> > MS4wfL0GIdpqys3L1wgU/cVH9hiKonH8zvtKk+lL/Y5Jl6uZxLoAWzwCi0pTsPzBPykjoY2x
> >       hbpy7JtSKx1qiZd3twHKNx1pKAfyBeI1d2g6DXIvvd4X+8eX
> >       
> > NDU/0FasvUOiRon1tidJ7JSQiiA5GqUic3ctCsMEJdQXxkhTJQcA46G8A8ZvlaEspxBsa1Ge
> >       5hhVA63ENT1D/M4Cxx9l/iPS9wjFzZGtXw4ONDzm9PKFMQ+t
> >       mjiOKoQrJnYnbR1n0xiae4fYoEUMB/aMFLzBuUahqME=
> > 
> > Hi,
> > 
> > I am new to solaris dtrace debugging tool, but I have prior experience
> > with Linux SystemTap.
> > 
> > I need to debug my Solaris kernel module particularly extract the data
> > in a structure passed by reference to my kernel function.
> > 
> > msg_recv(struct sk_buff *skbp, uint_t link, uchar_t* src)
> > {
> >     pkt_hdr_t *pkt;
> >     pkt = (pkt_hdr_t *)skbp->data;
> >     port = pkt->port;
> > }
> > 
> > I have written a systemtap script in linux to access the argument and
> > extract data.
> > 
> > How can I do this using DTRACE for solaris modules.
> > 
> > I tried looking into the system and trying few commands, but thats all
> > i know about dtrace:
> > 
> > [root@vcssx247-ldm7 ~]#dtrace -l | grep msg_recv
> >  7090        fbt               mymod                     msg_recv1 entry
> >  7091        fbt               mymod                     msg_recv1 return
> >  7548        fbt               mymod                     msg_recv entry
> >  7549        fbt               mymod                     msg_recv return
> > 
> > Any pointers to correct, to the point documentation would be appreciated.
> > 
> > Thanks
> > Nayan
> > 
> 
> --
> 
> Rickey C. Weisner
> Software Development and Performance Specialist
> Senior Principal Software Engineer
> SuperCluster S-Team
> Oracle Corporation
> cell phone: 615-308-1147
> email: rick.weis...@oracle.com
> 


-------------------------------------------
dtrace-discuss
Archives: https://www.listbox.com/member/archive/184261/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184261/25769126-e243886f
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769126&id_secret=25769126-8d47a7b2
Powered by Listbox: http://www.listbox.com

Reply via email to