Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757836AbcDGVuU (ORCPT ); Thu, 7 Apr 2016 17:50:20 -0400 Received: from mail-ig0-f177.google.com ([209.85.213.177]:36215 "EHLO mail-ig0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752937AbcDGVuE (ORCPT ); Thu, 7 Apr 2016 17:50:04 -0400 Subject: Re: [PATCH 17/19] perf tools: Build syscall table .c header from kernel's syscall_64.tbl To: Arnaldo Carvalho de Melo , Ingo Molnar References: <1460062720-21736-1-git-send-email-acme@kernel.org> <1460062720-21736-18-git-send-email-acme@kernel.org> Cc: linux-kernel@vger.kernel.org, Arnaldo Carvalho de Melo , Adrian Hunter , Jiri Olsa , Namhyung Kim , Wang Nan From: David Ahern Message-ID: <5706D604.1090508@gmail.com> Date: Thu, 7 Apr 2016 15:49:56 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <1460062720-21736-18-git-send-email-acme@kernel.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 818 Lines: 22 Upon further review ... On 4/7/16 2:58 PM, Arnaldo Carvalho de Melo wrote: > From: Arnaldo Carvalho de Melo > > We used libaudit to map ids to syscall names and vice-versa, but that > imposes a delay in supporting new syscalls, having to wait for libaudit > to get those new syscalls on its tables. > > To remove that delay, for x86_64 initially, grab a copy of > arch/x86/entry/syscalls/syscall_64.tbl and use it to generate those > tables. > tools/perf/Makefile.perf | 11 +- > tools/perf/arch/x86/Makefile | 23 ++ > tools/perf/arch/x86/entry/syscalls/syscall_64.tbl | 374 ++++++++++++++++++++++ > tools/perf/arch/x86/entry/syscalls/syscalltbl.sh | 39 +++ Why make a copies of the files? Why can't perf reference the ones 2 levels up?