From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hendrik Brueckner Subject: [PATCH 0/3] perf: generate s390 syscall table and remove auditlibs dependency Date: Thu, 7 Dec 2017 09:27:58 +0100 Message-ID: <1512635281-20733-1-git-send-email-brueckner@linux.vnet.ibm.com> Return-path: Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:43210 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751014AbdLGI2L (ORCPT ); Thu, 7 Dec 2017 03:28:11 -0500 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id vB78PNlN097031 for ; Thu, 7 Dec 2017 03:28:10 -0500 Received: from e06smtp12.uk.ibm.com (e06smtp12.uk.ibm.com [195.75.94.108]) by mx0a-001b2d01.pphosted.com with ESMTP id 2epyhewyh2-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Thu, 07 Dec 2017 03:28:10 -0500 Received: from localhost by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 7 Dec 2017 08:28:07 -0000 Sender: linux-perf-users-owner@vger.kernel.org List-ID: To: Arnaldo Carvalho de Melo Cc: Thomas-Mich Richter , Michael Petlan , Jiri Olsa , linux-perf-users@vger.kernel.org, linux-s390@vger.kernel.org With the perf trace command you can specify system calls with wildcards. To support this on s390, a system call table must be provided to perf. Provide a script to create the perf system call table based on the defines in arch/s390/include/uapi/asm/unistd.h (copied to tools/arch/s390/...). Note that the first patch can be applied independent of the second and third patch. In case they need further discussion, please consider to integrate the first one. The second and third patches complete the work to remove the audit library dependency for perf trace when an architecture supports system call tables. Inspired by the generation of the system call tables, create a similar approach to generate errno name mappings. Introduce the errno_to_name() function to replace audit_errno_to_name() in perf trace. The third patch changes the build process to build and run perf trace without requiring the audit library anymore (for those architectures that have system call table support). Note: The patch set is based on the linux master branch (968edbd93c0cbb). Hendrik Brueckner (3): perf s390: generate system call table from asm/unistd.h perf: introduce errno_to_name() function perf trace: no longer require auditlibs if syscall tables are present tools/arch/s390/include/uapi/asm/unistd.h | 412 +++++++++++++++++++++++ tools/perf/.gitignore | 1 + tools/perf/Makefile.config | 22 +- tools/perf/Makefile.perf | 12 +- tools/perf/arch/s390/Makefile | 21 ++ tools/perf/arch/s390/entry/syscalls/mksyscalltbl | 36 ++ tools/perf/builtin-help.c | 2 +- tools/perf/builtin-trace.c | 17 +- tools/perf/check-headers.sh | 1 + tools/perf/perf.c | 4 +- tools/perf/util/generate-cmdlist.sh | 2 +- tools/perf/util/generate-errno-names.sh | 32 ++ tools/perf/util/syscalltbl.c | 4 + 13 files changed, 553 insertions(+), 13 deletions(-) create mode 100644 tools/arch/s390/include/uapi/asm/unistd.h create mode 100755 tools/perf/arch/s390/entry/syscalls/mksyscalltbl create mode 100755 tools/perf/util/generate-errno-names.sh -- 1.8.3.1