Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1373802

Re: [PATCH 17/19] perf tools: Build syscall table .c header from kernel's syscall_64.tbl

From Arnaldo Carvalho de Melo <arnaldo.melo@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH 17/19] perf tools: Build syscall table .c header from kernel's syscall_64.tbl
Date 2016-04-08 00:00 +0200
Message-ID <rlq82-1KE-1@gated-at.bofh.it> (permalink)
References <rlpbX-16R-3@gated-at.bofh.it> <rlpbX-16R-1@gated-at.bofh.it> <rlq82-1KE-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Em Thu, Apr 07, 2016 at 03:49:56PM -0600, David Ahern escreveu:
> Upon further review ...
> 
> On 4/7/16 2:58 PM, Arnaldo Carvalho de Melo wrote:
> >From: Arnaldo Carvalho de Melo <acme@redhat.com>
> >
> >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?

We did that in the past, but then, after the build broke in tools/ due
to changes in the referenced files, we decided to use this "coherency
protocol" where we benefit from using the kernel files but don't use it
directly, being warned when changes happen so that we can do some
analysis before updating our copy.

- Arnaldo

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 17/19] perf tools: Build syscall table .c header from kernel's syscall_64.tbl Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-04-07 23:00 +0200
  Re: [PATCH 17/19] perf tools: Build syscall table .c header from  kernel's syscall_64.tbl David Ahern <dsahern@gmail.com> - 2016-04-07 23:40 +0200
    Re: [PATCH 17/19] perf tools: Build syscall table .c header from  kernel's syscall_64.tbl Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-04-08 00:00 +0200
  Re: [PATCH 17/19] perf tools: Build syscall table .c header from  kernel's syscall_64.tbl Arnaldo Carvalho de Melo <arnaldo.melo@gmail.com> - 2016-04-08 00:00 +0200
  Re: [PATCH 17/19] perf tools: Build syscall table .c header from  kernel's syscall_64.tbl David Ahern <dsahern@gmail.com> - 2016-04-08 00:00 +0200
  Re: [PATCH 17/19] perf tools: Build syscall table .c header from  kernel's syscall_64.tbl "Wangnan (F)" <wangnan0@huawei.com> - 2016-04-08 05:30 +0200

csiph-web