From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24846 invoked by alias); 29 Nov 2011 15:00:45 -0000 Received: (qmail 24778 invoked by uid 22791); 29 Nov 2011 15:00:43 -0000 X-SWARE-Spam-Status: No, hits=-0.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-lpp01m010-f47.google.com (HELO mail-lpp01m010-f47.google.com) (209.85.215.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 29 Nov 2011 15:00:27 +0000 Received: by lahe6 with SMTP id e6so1085040lah.20 for ; Tue, 29 Nov 2011 07:00:25 -0800 (PST) Received: by 10.152.144.136 with SMTP id sm8mr31843839lab.33.1322578824515; Tue, 29 Nov 2011 07:00:24 -0800 (PST) Received: from wardy-en0.manor.fubra.net (wardy-en0.manor.fubra.net. [87.124.34.36]) by mx.google.com with ESMTPS id nj4sm2269395lab.12.2011.11.29.07.00.22 (version=SSLv3 cipher=OTHER); Tue, 29 Nov 2011 07:00:23 -0800 (PST) Message-ID: <4ED4F383.5030901@fubra.com> Date: Tue, 29 Nov 2011 15:00:00 -0000 From: Matthew Ward User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 Newsgroups: gmane.linux.systemtap To: "Frank Ch. Eigler" CC: systemtap@sources.redhat.com Subject: Re: usertap kernel read faults - can I ignore them somehow? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 2011-q4/txt/msg00236.txt.bz2 On 29/11/2011 14:38, Frank Ch. Eigler wrote: > > Hi, Matthew - > >> I'm having an issue with our usertap tapset >> (https://github.com/fubralimited/usertap) [...] >> ERROR: kernel read fault at 0x0000000100000264 (addr) near identifier >> '@cast' at /usr/share/systemtap/tapset/ip.stp:45:11 > > You can do several things. > First, you can run "stap --skip-badvars ...", which turns all erroneous > $var accesses into 0. Second, you can (sometimes) wrap expressions with > try { var = $var } catch { } > to absorb the error. But see. > > - FChE > Thanks, that's exactly what I was looking for. When using the --skip-badvars option, if I'm running the tapset as a service using stapio, do I pass this to /usr/bin/stap when I build the original module (.ko) and this will apply whenever the module version is used by stapio etc. from then on? Matt. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25328 invoked by alias); 29 Nov 2011 15:00:56 -0000 Received: (qmail 25320 invoked by uid 22791); 29 Nov 2011 15:00:55 -0000 X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from lo.gmane.org (HELO lo.gmane.org) (80.91.229.12) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 29 Nov 2011 15:00:42 +0000 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RVPAn-00032X-3M for systemtap@sources.redhat.com; Tue, 29 Nov 2011 16:00:41 +0100 Received: from wardy-en0.manor.fubra.net ([87.124.34.36]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Nov 2011 16:00:40 +0100 Received: from matthew.ward by wardy-en0.manor.fubra.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Nov 2011 16:00:40 +0100 To: systemtap@sources.redhat.com From: Matthew Ward Subject: Re: usertap kernel read faults - can I ignore them somehow? Date: Tue, 29 Nov 2011 15:02:00 -0000 Message-ID: <4ED4F383.5030901@fubra.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: systemtap@sources.redhat.com User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0 In-Reply-To: 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: 2011-q4/txt/msg00237.txt.bz2 Message-ID: <20111129150200.EJc3VmAGWpAeEEA_hsEOuP-e9Q6OFCKeMeabxYbOIrM@z> On 29/11/2011 14:38, Frank Ch. Eigler wrote: > > Hi, Matthew - > >> I'm having an issue with our usertap tapset >> (https://github.com/fubralimited/usertap) [...] >> ERROR: kernel read fault at 0x0000000100000264 (addr) near identifier >> '@cast' at /usr/share/systemtap/tapset/ip.stp:45:11 > > You can do several things. > First, you can run "stap --skip-badvars ...", which turns all erroneous > $var accesses into 0. Second, you can (sometimes) wrap expressions with > try { var = $var } catch { } > to absorb the error. But see. > > - FChE > Thanks, that's exactly what I was looking for. When using the --skip-badvars option, if I'm running the tapset as a service using stapio, do I pass this to /usr/bin/stap when I build the original module (.ko) and this will apply whenever the module version is used by stapio etc. from then on? Matt.