From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10532 invoked by alias); 17 Aug 2009 09:49:02 -0000 Received: (qmail 10523 invoked by uid 22791); 17 Aug 2009 09:49:01 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,UNPARSEABLE_RELAY X-Spam-Check-By: sourceware.org Received: from rcsinet12.oracle.com (HELO rgminet12.oracle.com) (148.87.113.124) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 17 Aug 2009 09:48:54 +0000 Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rgminet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n7H9mi22000935 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 17 Aug 2009 09:48:45 GMT Received: from abhmt005.oracle.com (abhmt005.oracle.com [141.146.116.14]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n7H9mppc009507 for ; Mon, 17 Aug 2009 09:48:51 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 ; Mon, 17 Aug 2009 02:48:47 -0700 Message-ID: <4A8926B5.4040601@oracle.com> Date: Mon, 17 Aug 2009 09:49:00 -0000 From: Wenji Huang Reply-To: Wenji Huang User-Agent: Thunderbird 2.0.0.12 (X11/20080213) MIME-Version: 1.0 To: SystemTAP Subject: memory1.stp failed on x86_64 2.6.31-rc6 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-q3/txt/msg00378.txt.bz2 Hi, I found memory1.stp failed on x86_64 2.6.31-rc6, but works fine on x86_64 2.6.31-rc5 and x86 2.6.31-rc6. $ stap -v systemtap.printf/memory1.stp Pass 1: parsed user script and 59 library script(s) in 310usr/60sys/369real ms. Pass 2: analyzed script: 2 probe(s), 6 function(s), 14 embed(s), 0 global(s) in 780usr/380sys/1165real ms. Pass 3: translated to C into "/tmp/stapp5DGZt/stap_87fc0586871670d76847178631c22a98_21602.c" in 800usr/100sys/895real ms. Pass 4: compiled C into "stap_87fc0586871670d76847178631c22a98_21602.ko" in 8370usr/6570sys/14450real ms. Pass 5: starting run. ERROR: percpu context (size 103912) allocation failed Pass 5: run completed in 10usr/100sys/141real ms. This is a VMware box with two cpus. Dmesg said, [258068.721067] WARNING: at mm/percpu.c:786 pcpu_alloc+0x55/0x3d8() [258068.722067] Hardware name: VMware Virtual Platform [258068.723067] illegal size (103912) or align (8) for percpu allocation [258068.724067] Modules linked in: stap_87fc0586871670d76847178631c22a98_21602 [last unloaded: stap_87fc0586871670d76847178631c22a98_21602] [258068.725067] Pid: 19529, comm: stapio Tainted: G W 2.6.31-rc6 #10 [258068.726067] Call Trace: [258068.727067] [] ? pcpu_alloc+0x55/0x3d8 [258068.727067] [] warn_slowpath_common+0x7c/0x94 [258068.728067] [] warn_slowpath_fmt+0x69/0x6b [258068.729067] [] ? alloc_vmap_area+0x1f2/0x20a [258068.730067] [] ? __get_vm_area_node+0x9a/0x1ba [258068.731067] [] ? pmd_alloc+0x2e/0x39 [258068.731067] [] ? apply_to_page_range+0x1e1/0x25b [258068.732067] [] pcpu_alloc+0x55/0x3d8 [258068.733067] [] ? vmalloc_sync_all+0xe7/0x10f [258068.734067] [] __alloc_percpu+0x10/0x15 [258068.735067] [] _stp_ctl_write_cmd+0x229/0x539 [stap_87fc0586871670d76847178631c22a98_21602] [258068.735067] [] ? __dequeue_entity+0x33/0x38 [258068.735067] [] ? set_next_entity+0x28/0x78 [258068.735067] [] ? __switch_to+0x134/0x1c4 [258068.735067] [] ? trace_hardirqs_on+0x9/0x20 [258068.736067] [] ? finish_task_switch+0x56/0x9f [258068.738067] [] ? security_file_permission+0x16/0x18 [258068.739067] [] vfs_write+0xb0/0x10a [258068.741067] [] sys_write+0x4c/0x72 [258068.742067] [] system_call_fastpath+0x16/0x1b [258068.743067] ---[ end trace ccde141178315c39 ]--- Regards, Wenji