From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31370 invoked by alias); 26 Oct 2009 21:15:11 -0000 Received: (qmail 31324 invoked by uid 22791); 26 Oct 2009 21:15:10 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SARE_SUB_OBFU_Q0,SARE_SUB_OBFU_Q1,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 26 Oct 2009 21:15:04 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n9QLF1MO004223; Mon, 26 Oct 2009 17:15:01 -0400 Received: from [10.3.242.20] (vpn-242-20.phx2.redhat.com [10.3.242.20]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n9QLF1Vg023498; Mon, 26 Oct 2009 17:15:01 -0400 Message-ID: <4AE61155.8050702@redhat.com> Date: Mon, 26 Oct 2009 21:15:00 -0000 From: Josh Stone User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20091014 Fedora/3.0-2.8.b4.fc11 Lightning/1.0pre Thunderbird/3.0b4 MIME-Version: 1.0 To: Prerna Saxena CC: systemtap@sourceware.org Subject: Re: Tapset for probing IRQs, workqueues, etc References: <4AE1E981.9050002@linux.vnet.ibm.com> In-Reply-To: <4AE1E981.9050002@linux.vnet.ibm.com> Content-Type: text/plain; charset=ISO-8859-1 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: 2009-q4/txt/msg00293.txt.bz2 Hi Prerna, On 10/23/2009 10:36 AM, Prerna Saxena wrote: > + work = $work > + work_func = @cast(work, "work_struct", "kernel")->func Why do you need @cast in this tapset? It should work just fine to say "work_funk = $work->func". Apart from brevity, this is also better for not requiring the kernel debuginfo packages. Josh