From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25935 invoked by alias); 29 May 2007 15:09:36 -0000 Received: (qmail 25860 invoked by uid 22791); 29 May 2007 15:09:35 -0000 X-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,DK_POLICY_SIGNSOME,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 29 May 2007 15:09:33 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.1/8.13.1) with ESMTP id l4TF9USw022012; Tue, 29 May 2007 11:09:30 -0400 Received: from pobox.hsv.redhat.com (pobox.hsv.redhat.com [172.16.16.12]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l4TF9T90019799; Tue, 29 May 2007 11:09:29 -0400 Received: from [172.16.17.170] (dhcp-170.hsv.redhat.com [172.16.17.170]) by pobox.hsv.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id l4TF9Sh7012869; Tue, 29 May 2007 11:09:29 -0400 Message-ID: <465C4228.9030907@redhat.com> Date: Tue, 29 May 2007 15:09:00 -0000 From: David Smith User-Agent: Thunderbird 1.5.0.10 (X11/20070302) MIME-Version: 1.0 To: John Liang CC: "'Systemtap List'" Subject: Re: Target variable that was defined by our own kernel module References: <46531C6E.3010502@redhat.com> <20070528182305.GD7882@Krystal> <465C298E.5040808@redhat.com> <000b01c7a1fb$bf426050$800101df@ibrixfaf958395> In-Reply-To: <000b01c7a1fb$bf426050$800101df@ibrixfaf958395> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2007-q2/txt/msg00411.txt.bz2 John Liang wrote: > HI There, > > For the following systemtap script, I run into a compiler error: > > probe module("mymodule").("foobar"){ > if($myparm) > dosomething > } That first line should be: probe module("mymodule").function("foobar"){ > It looks if $myparm is a data structure defined in Linux Kernel, > It would compile and run without problem; but if it is a defined > by my own module, then it gave me a "unresolved symbol error for > $myparm". > > Any suggestions to solve this? Make sure the debug information is installed for your kernel module. -- David Smith dsmith@redhat.com Red Hat http://www.redhat.com 256.217.0141 (direct) 256.837.0057 (fax)