From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21633 invoked by alias); 6 Jan 2009 08:49:29 -0000 Received: (qmail 21625 invoked by uid 22791); 6 Jan 2009 08:49:28 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_93,UNPARSEABLE_RELAY X-Spam-Check-By: sourceware.org Received: from rcsinet13.oracle.com (HELO rgminet13.oracle.com) (148.87.113.125) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 06 Jan 2009 08:49:24 +0000 Received: from acsinet13.oracle.com (acsinet13.oracle.com [141.146.126.235]) by rgminet13.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n068o1Ip001944 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 6 Jan 2009 08:50:03 GMT Received: from acsmt701.oracle.com (acsmt701.oracle.com [141.146.40.71]) by acsinet13.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n068nsH0006916 for ; Tue, 6 Jan 2009 08:49:56 GMT Received: from dhcp-beijing-cdc-10-182-120-164.cn.oracle.com (/10.182.120.164) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 06 Jan 2009 08:49:17 +0000 Message-ID: <49631A6E.20305@oracle.com> Date: Tue, 06 Jan 2009 08:49:00 -0000 From: Wenji Huang Reply-To: wenji.huang@oracle.com User-Agent: Thunderbird 2.0.0.12 (X11/20080213) MIME-Version: 1.0 To: systemTAP Subject: Too larger number in badkprobe test on 32 bits machine. 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: 2009-q1/txt/msg00031.txt.bz2 Hi, The test systemtap.base/badkprobe.exp will fail on 32 bits machine. [wjhuang@EL4U6-32bits testsuite]$ uname -mr 2.6.28 i686 [wjhuang@EL4U6-32bits testsuite]$ sudo runtest systemtap.base/badkprobe.exp --tool_opts install ... Running ./systemtap.base/badkprobe.exp ... FAIL: bad kprobe registration (eof) === Summary === # of unexpected failures 1 In fact, executing the stap script in the test case. [wjhuang@EL4U6-32bits testsuite]$ sudo stap -g -w -vve 'probe kernel.statement(-1).absolute {} probe timer.s(1) { exit() }' SystemTap translator/driver (version 0.8/0.131 git branch master, commit be21f2db + changes) Copyright (C) 2005-2008 Red Hat, Inc. and others This is free software; see the source for copying conditions. Session arch: i686 release: 2.6.28 Created temporary directory "/tmp/staplt6ZIz" Searched '/usr/local/share/systemtap/tapset/i686/*.stp', found 2 Searched '/usr/local/share/systemtap/tapset/*.stp', found 45 Pass 1: parsed user script and 47 library script(s) in 630usr/50sys/680real ms. Pass 2: analyzed script: 2 probe(s), 1 function(s), 0 embed(s), 0 global(s) in 20usr/20sys/37real ms. probe_1384 locks nothing probe_1385 locks nothing dump_unwindsyms kernel index=0 base=0xc0100000 Found build-id in kernel, length 20, end at 0xc0363400 Pass 3: translated to C into "/tmp/staplt6ZIz/stap_84012a21d1a75884e8298817a3e8ad51_390.c" in 880usr/920sys/1793real ms. Running make -C "/lib/modules/2.6.28/build" M="/tmp/staplt6ZIz" modules >/dev/null cc1: warnings being treated as errors /tmp/staplt6ZIz/stap_84012a21d1a75884e8298817a3e8ad51_390.c:235: warning: integer constant is too large for 'unsigned long' type /tmp/staplt6ZIz/stap_84012a21d1a75884e8298817a3e8ad51_390.c:235: warning: large integer implicitly truncated to unsigned type make[1]: *** [/tmp/staplt6ZIz/stap_84012a21d1a75884e8298817a3e8ad51_390.o] Error 1 make: *** [_module_/tmp/staplt6ZIz] Error 2 Pass 4: compiled C into "stap_84012a21d1a75884e8298817a3e8ad51_390.ko" in 3640usr/3040sys/6647real ms. Pass 4: compilation failed. Try again with another '--vp 0001' option. Running rm -rf /tmp/staplt6ZIz Seems "-1" is interpreted as 64-bit number and not appropriate for 32 bits machine. Change to other number or update translate.cxx to perform explicitly truncation ? Regards, Wenji