From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 983 invoked by alias); 12 Dec 2007 13:38:12 -0000 Received: (qmail 972 invoked by uid 22791); 12 Dec 2007 13:38:10 -0000 X-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,DK_POLICY_SIGNSOME,DNS_FROM_RFC_ABUSE,SPF_PASS,TW_II,TW_JB,TW_PK,TW_UH X-Spam-Check-By: sourceware.org Received: from e28smtp03.in.ibm.com (HELO e28esmtp03.in.ibm.com) (59.145.155.3) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 12 Dec 2007 13:37:56 +0000 Received: from d28relay02.in.ibm.com (d28relay02.in.ibm.com [9.184.220.59]) by e28esmtp03.in.ibm.com (8.13.1/8.13.1) with ESMTP id lBCDbQ7U000570 for ; Wed, 12 Dec 2007 19:07:26 +0530 Received: from d28av01.in.ibm.com (d28av01.in.ibm.com [9.184.220.63]) by d28relay02.in.ibm.com (8.13.8/8.13.8/NCO v8.7) with ESMTP id lBCDbQh6626888 for ; Wed, 12 Dec 2007 19:07:26 +0530 Received: from d28av01.in.ibm.com (loopback [127.0.0.1]) by d28av01.in.ibm.com (8.13.1/8.13.3) with ESMTP id lBCDbPms017113 for ; Wed, 12 Dec 2007 13:37:25 GMT Received: from [9.124.35.50] (Srinivasa.in.ibm.com [9.124.35.50]) by d28av01.in.ibm.com (8.13.1/8.12.11) with ESMTP id lBCDbPh8017110; Wed, 12 Dec 2007 13:37:25 GMT Message-ID: <475FE423.6030000@in.ibm.com> Date: Wed, 12 Dec 2007 13:38:00 -0000 From: Srinivasa Ds User-Agent: Thunderbird 2.0.0.6 (X11/20071022) MIME-Version: 1.0 To: Masami Hiramatsu CC: ananth@in.ibm.com, Jim Keniston , Roland McGrath , Arjan van de Ven , prasanna@in.ibm.com, anil.s.keshavamurthy@intel.com, davem@davemloft.net, systemtap-ml Subject: Re: [RFC -mm][PATCH 5/6] prepare kprobes code for x86 unification References: <475DC362.9000707@redhat.com> <475E952F.90403@in.ibm.com> <475ECF7C.70503@redhat.com> In-Reply-To: <475ECF7C.70503@redhat.com> 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: 2007-q4/txt/msg00489.txt.bz2 Masami Hiramatsu wrote: > Hi Srinivasa, > > Thank you for reporting. > > Srinivasa Ds wrote: >> Hi Masami >> >> I was testing your patch on x86_64 by executing systemtap tests. I got this oops message. > > I ran systemtap testsuite on x86-64. But I could not reproduce it yet. > Would you apply all of these patches or just first 5 patches? Yes, I applied all patches and then tested it. > > Sure, I also tested it (stap -e 'probe kernel.function("init_sched_debug_procfs"){}') > but it could not cause oops. > > By the way, as far as I can see, the current.stp does not probe "init_sched_debug_procfs". > So it could be caused by incorrect debuginfo... > I verified the debuginfo and then ran the test, but still I could able to reproduce the problem. Unable to handle kernel paging request at ffffffff8086ccb3 RIP: [] arch_prepare_kprobe+0x22/0x217 PGD 203067 PUD 207063 PMD 7e0da163 PTE 86c000 Oops: 0000 [1] SMP last sysfs file: /sys/module/stap_35adaae6e718a71673316d7b16a93286_356228/sections/.bss CPU 1 Modules linked in: stap_35adaae6e718a71673316d7b16a93286_356228 systemtap_test_module1 systemtap_test_module2 ipv6 autofs4 hidp rfcomm l2cap bluetooth sunrpc dm_multipath video output sbs sbshc battery acpi_memhotplug ac power_supply lp sg tg3 ide_cd cdrom floppy serio_raw parport_pc button e752x_edac parport edac_core i2c_i801 shpchp i2c_core pcspkr dm_snapshot dm_zero dm_mirror dm_mod ata_piix libata aic79xx scsi_transport_spi sd_mod scsi_mod ext3 jbd ehci_hcd ohci_hcd uhci_hcd Pid: 28478, comm: stapio Tainted: GF 2.6.24-rc4-mm1 #4 RIP: 0010:[] [] arch_prepare_kprobe+0x22/0x217 RSP: 0018:ffff810067055e48 EFLAGS: 00010286 RAX: ffffffff8086ccb3 RBX: ffffffff88464130 RCX: ffffffff8842af30 RDX: 0000000000000f30 RSI: 6600000000000000 RDI: ffffffff88464130 RBP: ffffffff88464130 R08: ffff81000d4d6000 R09: ffff81007f834000 R10: ffffffff8024bf9c R11: 0000000000000000 R12: 00000000000036b0 R13: 0000000000000000 R14: ffffffff8843b3b2 R15: 0000000000000000 FS: 00002aebec1e2b00(0000) GS:ffff81007fbac840(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b [root@llm42 ~]# cat /proc/kallsyms | grep ffffffff8086ccb3 ffffffff8086ccb3 T migration_init ================== [root@llm42 ~]# cat /root/linux-2.6.24-rc4/System.map | grep ffffffff8086ccb3 ffffffff8086ccb3 T migration_init This time it was probing "__init migration_init" function in kernel/sched.c,I saw systemtap code blacklisting all .init and .exit functions but still it failed. I replaced all __init function in kernel/sched.c to __kprobes then executed the tests successfully. So may be problem is in naming the section of vmlinux properly. Thanks Srinivasa DS