From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30165 invoked by alias); 24 Apr 2009 13:51:09 -0000 Received: (qmail 30156 invoked by uid 22791); 24 Apr 2009 13:51:09 -0000 X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from yw-out-1718.google.com (HELO yw-out-1718.google.com) (74.125.46.157) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 24 Apr 2009 13:51:03 +0000 Received: by yw-out-1718.google.com with SMTP id 5so757246ywr.80 for ; Fri, 24 Apr 2009 06:51:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.225.12 with SMTP id x12mr3268036ang.118.1240581061125; Fri, 24 Apr 2009 06:51:01 -0700 (PDT) In-Reply-To: <1240570182.2359.17.camel@fedora.wildebeest.org> References: <804dabb00904240328g7e404ecbr8205d996523d41d7@mail.gmail.com> <1240570182.2359.17.camel@fedora.wildebeest.org> Date: Fri, 24 Apr 2009 13:51:00 -0000 Message-ID: <804dabb00904240651l1704a841ocd0cb22b318a882e@mail.gmail.com> Subject: Re: error in stap From: Peter Teoh To: Mark Wielaard Cc: SystemTAP Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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-q2/txt/msg00422.txt.bz2 oh yes, my fault. not sure why my automated script did not update /boot/grub/menu.lst and so the kernel image is not in sync with the kernel header files. Thanks!!! On Fri, Apr 24, 2009 at 6:49 AM, Mark Wielaard wrote: > Hi Peter, > > On Fri, 2009-04-24 at 06:28 -0400, Peter Teoh wrote: >> My systemtap has git-pulled and updated as of now. =A0 While doing some >> script processing, I got the following errors: >> staprun:insert_module:47 inserting module >> staprun:insert_module:66 module options: _stp_bufsize=3D0 >> Error inserting module '/tmp/stap2jIKVp/stap_9237.ko': Invalid module fo= rmat >> [...] >> And dmesg shows: >> >> [ 1429.082734] stap_9237: disagrees about version of symbol module_layout >> [ 1429.087594] stap_9237: disagrees about version of symbol module_layout >> >> My script is just a simple netcore analysis: >> >> probe kernel.function("*@net/core/dev.c").call { >> =A0 printf("%s -> %s\n", thread_indent(1), probefunc()); >> =A0 print_backtrace(); >> =A0 printf("\n"); >> } >> >> Any ideas? > > That script should just work (it does for me). Although tracing the call > chain and printing a full backtrace on each function entry is somewhat > double. > > The error you are seeing looks like your running kernel (uname -r) is > different from you kernel-devel sources (rpm -q kernel-devel - or the > equivalent dpkg -s line) stap is finding. > > Cheers, > > Mark > > > > --=20 Regards, Peter Teoh