Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754893AbbGPJEe (ORCPT ); Thu, 16 Jul 2015 05:04:34 -0400 Received: from ozlabs.org ([103.22.144.67]:41534 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754711AbbGPJE3 (ORCPT ); Thu, 16 Jul 2015 05:04:29 -0400 Message-ID: <1437037461.15828.2.camel@ellerman.id.au> Subject: Re: BUG: perf error on syscalls for powerpc64. From: Michael Ellerman To: Zumeng Chen Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, romeo.cane.ext@coriant.com, imunsie@au1.ibm.com, paulus@samba.org, benh@kernel.crashing.org Date: Thu, 16 Jul 2015 19:04:21 +1000 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.10-0ubuntu1~14.10.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1256 Lines: 32 On Thu, 2015-07-16 at 13:57 +0800, Zumeng Chen wrote: > Hi All, > > 1028ccf5 did a change for sys_call_table from a pointer to an array of > unsigned long, I think it's not proper, here is my reason: > > sys_call_table defined as a label in assembler should be pointer array > rather than an array as described in 1028ccf5. If we defined it as an > array, then arch_syscall_addr will return the address of sys_call_table[], > actually the content of sys_call_table[] is demanded by arch_syscall_addr. > so 'perf list' will ignore all syscalls since find_syscall_meta will > return null > in init_ftrace_syscalls because of the wrong arch_syscall_addr. > > Did I miss something, or Gcc compiler has done something newer ? Hi Zumeng, It works for me with the code as it is in mainline. I don't quite follow your explanation, so if you're seeing a bug please send some information about what you're actually seeing. And include the disassembly of arch_syscall_addr() and your compiler version etc. cheers -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/