From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14731 invoked by alias); 6 Jan 2009 08:25:16 -0000 Received: (qmail 14719 invoked by uid 22791); 6 Jan 2009 08:25:16 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,UNPARSEABLE_RELAY X-Spam-Check-By: sourceware.org Received: from acsinet12.oracle.com (HELO acsinet12.oracle.com) (141.146.126.234) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 06 Jan 2009 08:25:10 +0000 Received: from acsinet13.oracle.com (acsinet13.oracle.com [141.146.126.235]) by acsinet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n068Ob7V015378 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 6 Jan 2009 08:24:38 GMT Received: from acsmt704.oracle.com (acsmt704.oracle.com [141.146.40.82]) by acsinet13.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n068Pef9018327 for ; Tue, 6 Jan 2009 08:25:41 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:25:03 +0000 Message-ID: <496314C0.5040209@oracle.com> Date: Tue, 06 Jan 2009 08:25: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: Shared buffer affected by CONFIG_MODVERSIONS 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/msg00030.txt.bz2 Hi, In current stap tree, the shared buffer machinery depends on CONFIG_MODVERSIONS. [wjhuang@EL5U2-64bits testsuite]$ cat /lib/modules/2.6.28/build/.config|grep MODVERSION CONFIG_MODVERSIONS=y [wjhuang@EL5U2-64bits testsuite]$ sudo runtest systemtap.printf/sharedbuf.exp --tool_opts install ... Running ./systemtap.printf/sharedbuf.exp ... FAIL: shared buffer guest Error inserting module '/tmp/stap0Tv0kZ/stap_3ebc02e755c27ff472c3a3ed2d196152_345.ko': Unknown symbol in module Retrying, after attempted removal of module stap_3ebc02e755c27ff472c3a3ed2d196152_345 (rc -1) Error inserting module '/tmp/stap0Tv0kZ/stap_3ebc02e755c27ff472c3a3ed2d196152_345.ko': Unknown symbol in module Pass 5: run failed. Try again with another '--vp 00001' option. FAIL: buffer sharing (0, 0) === Summary === # of expected passes 1 # of unexpected failures 2 [wjhuang@EL5U2-64bits testsuite]$ dmesg stap_4cadcc917d7dfed2e32ec12f99abd964_218: systemtap: 0.8/0.131, base: ffffffffa00d1000, memory: 15833+17847+416+14000 data+text+ctx+net, probes: 1 stap_3ebc02e755c27ff472c3a3ed2d196152_345: no symbol version for stp_print_flush_test1 stap_3ebc02e755c27ff472c3a3ed2d196152_345: Unknown symbol stp_print_flush_test1 stap_3ebc02e755c27ff472c3a3ed2d196152_345: no symbol version for stp_print_flush_test1 stap_3ebc02e755c27ff472c3a3ed2d196152_345: Unknown symbol stp_print_flush_test1 But the test can pass when CONFIG_MODVERSIONS is not set. [wjhuang@EL5U2-64bits testsuite]$ cat /lib/modules/2.6.28/build/.config|grep MODVERSION # CONFIG_MODVERSIONS is not set [wjhuang@EL5U2-64bits testsuite]$ sudo runtest systemtap.printf/sharedbuf.exp --tool_opts install ... Running ./systemtap.printf/sharedbuf.exp ... === Summary === # of expected passes 2 # of expected failures 2 Seems the version information of exported test function don't match will make kernel refuse to load kernel. To keep shared buffer compatible with different config kernel needs a little update, pass modversion when building module or modify runtime/print.c to make exported function switched according to CONFIG_MODVERSIONS. Regards, Wenji