Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756998AbcDHD1s (ORCPT ); Thu, 7 Apr 2016 23:27:48 -0400 Received: from szxga03-in.huawei.com ([119.145.14.66]:32445 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752274AbcDHD1r (ORCPT ); Thu, 7 Apr 2016 23:27:47 -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: , Arnaldo Carvalho de Melo , Adrian Hunter , David Ahern , Jiri Olsa , Namhyung Kim From: "Wangnan (F)" Message-ID: <5707250E.2030208@huawei.com> Date: Fri, 8 Apr 2016 11:27:10 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <1460062720-21736-18-git-send-email-acme@kernel.org> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.111.66.109] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020201.57072518.008B,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-05-26 15:14:31, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: c510c74c5a63f1a5082bbf5a1cdfb076 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2341 Lines: 57 On 2016/4/8 4:58, 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. > > Syscalls currently not available in audit-libs: > > # trace -e copy_file_range,membarrier,mlock2,pread64,pwrite64,timerfd_create,userfaultfd > Error: Invalid syscall copy_file_range, membarrier, mlock2, pread64, pwrite64, timerfd_create, userfaultfd > Hint: try 'perf list syscalls:sys_enter_*' > Hint: and: 'man syscalls' > # > > With this patch: > > # trace -e copy_file_range,membarrier,mlock2,pread64,pwrite64,timerfd_create,userfaultfd > 8505.733 ( 0.010 ms): gnome-shell/2519 timerfd_create(flags: 524288) = 36 > 8506.688 ( 0.005 ms): gnome-shell/2519 timerfd_create(flags: 524288) = 40 > 30023.097 ( 0.025 ms): qemu-system-x8/24629 pwrite64(fd: 18, buf: 0x7f63ae382000, count: 4096, pos: 529592320) = 4096 > 31268.712 ( 0.028 ms): qemu-system-x8/24629 pwrite64(fd: 18, buf: 0x7f63afd8b000, count: 4096, pos: 2314133504) = 4096 > 31268.854 ( 0.016 ms): qemu-system-x8/24629 pwrite64(fd: 18, buf: 0x7f63afda2000, count: 4096, pos: 2314137600) = 4096 > > Cc: Adrian Hunter > Cc: David Ahern > Cc: Jiri Olsa > Cc: Namhyung Kim > Cc: Wang Nan > Link: http://lkml.kernel.org/n/tip-5n4sx1wp0ig75dwcghf9m6zs@git.kernel.org > Signed-off-by: Arnaldo Carvalho de Melo > --- > There is racing in Makefile. I see following output: ... CC /xx/xx/perf/1.0-r8/perf-1.0/util/callchain.o CC /xx/xx/perf/1.0-r8/perf-1.0/util/values.o CC /xx/xx/perf/1.0-r8/perf-1.0/util/debug.o make[3]: *** No rule to make target `/xx/xx/perf/1.0-r8/perf-1.0/util/syscalltbl.o'. Stop. make[3]: *** Waiting for unfinished jobs.... CC /xx/xx/perf/1.0-r8/perf-1.0/util/machine.o CC /xx/xx/perf/1.0-r8/perf-1.0/util/map.o ... The error disappeareafter doing 'make archheaders' before 'make all'. Thank you.