Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752550AbbGPF5T (ORCPT ); Thu, 16 Jul 2015 01:57:19 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:35246 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751055AbbGPF5S (ORCPT ); Thu, 16 Jul 2015 01:57:18 -0400 MIME-Version: 1.0 Date: Thu, 16 Jul 2015 13:57:17 +0800 Message-ID: Subject: BUG: perf error on syscalls for powerpc64. From: Zumeng Chen To: linuxppc-dev@lists.ozlabs.org Cc: linux-kernel@vger.kernel.org, romeo.cane.ext@coriant.com, imunsie@au1.ibm.com, mpe@ellerman.id.au, paulus@samba.org, benh@kernel.crashing.org Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 903 Lines: 22 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 ? Cheers, Zumeng -- 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/