mbox series

[0/3] perf trace powerpc: Remove libaudit dependency for syscalls

Message ID 20180129083417.31240-1-ravi.bangoria@linux.vnet.ibm.com (mailing list archive)
Headers show
Series perf trace powerpc: Remove libaudit dependency for syscalls | expand

Message

Ravi Bangoria Jan. 29, 2018, 8:34 a.m. UTC
This is almost identical set of patches recently done for s390.

With this, user can run perf trace without libaudit on powerpc
as well. Ex,

  $ make
    ...     libaudit: [ OFF ]

  $ ./perf trace ls
    0.221 ( 0.005 ms): ls/43330 open(filename: 0xac1e2778, flags: CLOEXEC   ) = 3
    0.227 ( 0.003 ms): ls/43330 read(fd: 3, buf: 0x3ffff9c4d678, count: 832 ) = 832
    0.233 ( 0.002 ms): ls/43330 fstat(fd: 3, statbuf: 0x3ffff9c4d4b0        ) = 0
    ...

  $ ./perf trace -e "open*" ls
    0.000 ( 0.014 ms): ls/43342 open(filename: 0x793d8978, flags: CLOEXEC   ) = 3
    0.038 ( 0.006 ms): ls/43342 open(filename: 0x793f2778, flags: CLOEXEC   ) = 3
    ...

Ravi Bangoria (3):
  tools include powerpc: Grab a copy of
    arch/powerpc/include/uapi/asm/unistd.h
  perf powerpc: Generate system call table from asm/unistd.h
  perf trace powerpc: Use generated syscall table

 tools/arch/powerpc/include/uapi/asm/unistd.h       | 399 +++++++++++++++++++++
 tools/perf/Makefile.config                         |   2 +
 tools/perf/arch/powerpc/Makefile                   |  21 ++
 .../perf/arch/powerpc/entry/syscalls/mksyscalltbl  |  35 ++
 tools/perf/check-headers.sh                        |   1 +
 tools/perf/util/syscalltbl.c                       |   4 +
 6 files changed, 462 insertions(+)
 create mode 100644 tools/arch/powerpc/include/uapi/asm/unistd.h
 create mode 100755 tools/perf/arch/powerpc/entry/syscalls/mksyscalltbl

Comments

Arnaldo Carvalho de Melo Feb. 15, 2018, 1:43 p.m. UTC | #1
Em Mon, Jan 29, 2018 at 02:04:14PM +0530, Ravi Bangoria escreveu:
> This is almost identical set of patches recently done for s390.
> 
> With this, user can run perf trace without libaudit on powerpc
> as well. Ex,
> 
>   $ make
>     ...     libaudit: [ OFF ]
> 
>   $ ./perf trace ls

Thanks, applied.

- Arnaldo
Arnaldo Carvalho de Melo Feb. 15, 2018, 1:56 p.m. UTC | #2
Em Thu, Feb 15, 2018 at 10:43:36AM -0300, Arnaldo Carvalho de Melo escreveu:
> Em Mon, Jan 29, 2018 at 02:04:14PM +0530, Ravi Bangoria escreveu:
> > This is almost identical set of patches recently done for s390.
> > 
> > With this, user can run perf trace without libaudit on powerpc
> > as well. Ex,
> > 
> >   $ make
> >     ...     libaudit: [ OFF ]
> > 
> >   $ ./perf trace ls
> 
> Thanks, applied.

Ah, I already had to update the unistd.h copy to catch some new syscalls
for s/390 :-)

https://git.kernel.org/acme/c/b4ec64dc68da

- Arnaldo