From patchwork Fri May 29 16:30:18 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaldo Carvalho de Melo X-Patchwork-Id: 49235 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f69.google.com (mail-wg0-f69.google.com [74.125.82.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9BC05218EC for ; Fri, 29 May 2015 16:32:52 +0000 (UTC) Received: by wgme6 with SMTP id e6sf19516754wgm.3 for ; Fri, 29 May 2015 09:32:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=ZGmULdjb/QDNaQ3LW3gDBH5BOat+X5X18ZfCusNTPnw=; b=jSEuI4qMyOJKEI9dvtcqduZdAfE9ActHHiznHa1A8QfLFqjbPQqyTYFdCKLrtc9thZ r6jMB81nKWj4hoREL5aeOBBjn7sqRIoIPDN8pUn6JRATVih4OLRcb0IN33U3hBcNqBAi rgYoFZiZ4Sqbg9W1KNLyIlhoivPMiQRd7BEWP0s0P/hVrf44Ure6hFDF8mDJjhfNUqhW lPJHv54EgPS+Ju8I4YnOozQugju4U21yJdHm86rwn+4Ln2pXTLjUmZek2O9unMDm8FT8 GfZt98siItFAcjF1d1oUFeK4PGOoDow75BbDNMvBxEWurjAgUxqhoqD4HOWA6PW/I+5m WQow== X-Gm-Message-State: ALoCoQmWdzXMPwWa4zFTjDeogh9K7l8wM0BCaolI20SaeLwZ8EikpTgU7TL2PZR1XhXF8B+BDSOz X-Received: by 10.152.8.17 with SMTP id n17mr8029673laa.0.1432917171878; Fri, 29 May 2015 09:32:51 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.44.195 with SMTP id g3ls388820lam.0.gmail; Fri, 29 May 2015 09:32:51 -0700 (PDT) X-Received: by 10.152.3.199 with SMTP id e7mr1949824lae.78.1432917171705; Fri, 29 May 2015 09:32:51 -0700 (PDT) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com. [209.85.215.42]) by mx.google.com with ESMTPS id s8si5067459lbr.137.2015.05.29.09.32.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 May 2015 09:32:51 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by labpy14 with SMTP id py14so48168272lab.0 for ; Fri, 29 May 2015 09:32:51 -0700 (PDT) X-Received: by 10.152.37.228 with SMTP id b4mr8736098lak.117.1432917171430; Fri, 29 May 2015 09:32:51 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp471973lbb; Fri, 29 May 2015 09:32:50 -0700 (PDT) X-Received: by 10.68.191.101 with SMTP id gx5mr16558576pbc.148.1432917169604; Fri, 29 May 2015 09:32:49 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id sw10si9144315pab.71.2015.05.29.09.32.48; Fri, 29 May 2015 09:32:49 -0700 (PDT) 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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756634AbbE2Qc3 (ORCPT + 28 others); Fri, 29 May 2015 12:32:29 -0400 Received: from casper.infradead.org ([85.118.1.10]:37869 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756346AbbE2Qai (ORCPT ); Fri, 29 May 2015 12:30:38 -0400 Received: from [177.35.16.174] (helo=zoo.ghostprotocols.net) by casper.infradead.org with esmtpsa (Exim 4.80.1 #2 (Red Hat Linux)) id 1YyNB5-0004Jp-IA; Fri, 29 May 2015 16:30:35 +0000 Received: by zoo.ghostprotocols.net (Postfix, from userid 1000) id EEFA7221311; Fri, 29 May 2015 13:30:27 -0300 (BRT) From: Arnaldo Carvalho de Melo To: Ingo Molnar Cc: linux-kernel@vger.kernel.org, Riku Voipio , Peter Zijlstra , Arnaldo Carvalho de Melo Subject: [PATCH 08/14] perf tests: Remove getpgrp from mmap-basic Date: Fri, 29 May 2015 13:30:18 -0300 Message-Id: <1432917024-3899-9-git-send-email-acme@kernel.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1432917024-3899-1-git-send-email-acme@kernel.org> References: <1432917024-3899-1-git-send-email-acme@kernel.org> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: acme@kernel.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Riku Voipio mmap-basic fails on arm64. 4: read samples using the mmap interface: read samples using the mmap interface: FAILED! This is because arm64 doesn't come with getpgrp() syscall. The syscall is a BSD compatibility wrapper, Archs that don't define __ARCH_WANT_SYS_GETPGRP do not have this. Remove it, since getpgid is already used in the testcase. Signed-off-by: Riku Voipio Reviewed-by: Ingo Molnar Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1429192375-13706-4-git-send-email-riku.voipio@linaro.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/tests/mmap-basic.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/perf/tests/mmap-basic.c b/tools/perf/tests/mmap-basic.c index 9b9622a33932..5855cf471210 100644 --- a/tools/perf/tests/mmap-basic.c +++ b/tools/perf/tests/mmap-basic.c @@ -23,10 +23,8 @@ int test__basic_mmap(void) struct cpu_map *cpus; struct perf_evlist *evlist; cpu_set_t cpu_set; - const char *syscall_names[] = { "getsid", "getppid", "getpgrp", - "getpgid", }; - pid_t (*syscalls[])(void) = { (void *)getsid, getppid, getpgrp, - (void*)getpgid }; + const char *syscall_names[] = { "getsid", "getppid", "getpgid", }; + pid_t (*syscalls[])(void) = { (void *)getsid, getppid, (void*)getpgid }; #define nsyscalls ARRAY_SIZE(syscall_names) unsigned int nr_events[nsyscalls], expected_nr_events[nsyscalls], i, j;