Received: by 10.223.176.5 with SMTP id f5csp2601330wra; Mon, 29 Jan 2018 00:34:17 -0800 (PST) X-Google-Smtp-Source: AH8x224f+w15ld9TkuWqQR1g03pDSRj6gJfz/OsQ/9MX+7lspsXuZ9ac+ZTNFXIH1XcQPT1ruj9+ X-Received: by 2002:a17:902:9a84:: with SMTP id w4-v6mr8336594plp.136.1517214857164; Mon, 29 Jan 2018 00:34:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517214857; cv=none; d=google.com; s=arc-20160816; b=Ki+JM5//OEhG9C5M4fx1jALl12sYHjkFeoN98UtsbJiAEgUmoP4u3PMDuVZ7CBIu/t ffnzxILA615StjOAnzu0FrnMqe27bPQ9vVGuoW4fbsvwCMTPJilzool7xN2Vvxmi5h8e 72RY/oIHIP7vsc+te5I5fTSiQkHpNgXY+T6/XU/938nF+1R3UR7E3aQcD0lxHWL8FAfS PF2AuxMUdtg/AC0gkDDd/CDNu91A6DpOOnPQnnOPL5ppJAJ4TqiuDZxO78JL7x5+sYCO wcJJ8hNZSZ08WHfOww3/gt9EQcspr93//GuB8tKSiXp40B0yfZ10F7ABQWDgq+U3We2X Fb1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=O6bPzWmuLkd4SZ1eGDA+uoPcUhFcg5B2qY4gb6CJ/9E=; b=Xhll/8K2ZyHsw1qzgys3zvZYS2sOeziBhBCQN4uGlPrGoEW6aLxWlW6zyw+jtkUPw8 KswS3vfIQcB/WVojQ0mK8kU+HPJmNcLSS8RGQNY3c8RrlQ7kYxRzkNfuS6ItP9xWD4/2 R5o2kA4PYe2ZS6Q/VD3/iTj+sYqgebczNSqUT/HxFOxnOnDCrmkiZ0bj+wN/PRQ/N/L9 iHCtplfsqseOLTdsH6x3mo1i729osgs/AXoawI5dYiAUpHXKnSKZ5PeimWSZjtzAeygH LOn8cfDoSLdeEnfB/QmQkbY6n1l40vM31hhLyJiuPjmBR5kY7an1zykoKmFTpR7k3TSr kftw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q1si6976527pge.136.2018.01.29.00.34.02; Mon, 29 Jan 2018 00:34:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751508AbeA2Icz (ORCPT + 99 others); Mon, 29 Jan 2018 03:32:55 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:41698 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751256AbeA2Icy (ORCPT ); Mon, 29 Jan 2018 03:32:54 -0500 Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w0T8VlG9040027 for ; Mon, 29 Jan 2018 03:32:53 -0500 Received: from e06smtp10.uk.ibm.com (e06smtp10.uk.ibm.com [195.75.94.106]) by mx0b-001b2d01.pphosted.com with ESMTP id 2ft06bg1dd-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Mon, 29 Jan 2018 03:32:53 -0500 Received: from localhost by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 29 Jan 2018 08:32:51 -0000 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) by e06smtp10.uk.ibm.com (192.168.101.140) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 29 Jan 2018 08:32:47 -0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w0T8Wl1021627124; Mon, 29 Jan 2018 08:32:47 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 29C3711C04A; Mon, 29 Jan 2018 08:26:19 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 775EF11C058; Mon, 29 Jan 2018 08:26:17 +0000 (GMT) Received: from bangoria.in.ibm.com (unknown [9.124.31.133]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 29 Jan 2018 08:26:17 +0000 (GMT) From: Ravi Bangoria To: acme@kernel.org Cc: alexander.shishkin@linux.intel.com, jolsa@redhat.com, namhyung@kernel.org, linux-kernel@vger.kernel.org, brueckner@linux.vnet.ibm.com, tmricht@linux.vnet.ibm.com, linuxppc-dev@lists.ozlabs.org, mpe@ellerman.id.au, Ravi Bangoria Subject: [PATCH 0/3] perf trace powerpc: Remove libaudit dependency for syscalls Date: Mon, 29 Jan 2018 14:04:14 +0530 X-Mailer: git-send-email 2.14.3 X-TM-AS-GCONF: 00 x-cbid: 18012908-0040-0000-0000-00000409D6D3 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18012908-0041-0000-0000-0000260D69A7 Message-Id: <20180129083417.31240-1-ravi.bangoria@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-01-29_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1801290114 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 1.8.3.1