From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757107AbbE2Shk (ORCPT ); Fri, 29 May 2015 14:37:40 -0400 Received: from terminus.zytor.com ([198.137.202.10]:35186 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757071AbbE2Shd (ORCPT ); Fri, 29 May 2015 14:37:33 -0400 Date: Fri, 29 May 2015 11:37:17 -0700 From: tip-bot for Riku Voipio Message-ID: Cc: linux-kernel@vger.kernel.org, acme@redhat.com, mingo@kernel.org, hpa@zytor.com, riku.voipio@linaro.org, a.p.zijlstra@chello.nl, tglx@linutronix.de Reply-To: tglx@linutronix.de, acme@redhat.com, mingo@kernel.org, linux-kernel@vger.kernel.org, hpa@zytor.com, riku.voipio@linaro.org, a.p.zijlstra@chello.nl In-Reply-To: <1429192375-13706-4-git-send-email-riku.voipio@linaro.org> References: <1429192375-13706-4-git-send-email-riku.voipio@linaro.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf tests: Remove getpgrp from mmap-basic Git-Commit-ID: cec83938707a7055c1f9decd81f2741420518e64 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: cec83938707a7055c1f9decd81f2741420518e64 Gitweb: http://git.kernel.org/tip/cec83938707a7055c1f9decd81f2741420518e64 Author: Riku Voipio AuthorDate: Thu, 16 Apr 2015 16:52:55 +0300 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 29 May 2015 12:43:42 -0300 perf tests: Remove getpgrp from mmap-basic 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 9b9622a..5855cf4 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;