From patchwork Thu Apr 16 13:52:55 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 47244 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CE4A820553 for ; Thu, 16 Apr 2015 13:53:35 +0000 (UTC) Received: by lbdc7 with SMTP id c7sf16971358lbd.2 for ; Thu, 16 Apr 2015 06:53:34 -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:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=29t5LpKrXVlkM9ARrMAahmNdVs7Rq7quWOv50v5KuTc=; b=WLxzKitsmsV0FKW+l+gwHbWFQbAHZP0Qw2L6pQWNAYkIgpn69PLMA4We0TvBPLwOLG jWHR63qNkOxOiMfGwZ+24+5h9CUAaZ4dFCrmMUANMRpz/g3qOmpHmNValwLHA9t8u7j5 4qyujLmtfLg+dOYOudCD8MsQ8oXhWmx3zIW1fyMHN8UBMnF7W2qRByzGSDCrKTK7SSex PXlhR4SeIZycuq6yB/dR4T7i0yQm8ry1Wr477Zc+/LJISvZsMHDH8PMk87n6O3rdLiv3 BWF3V+Majo1+367jUeBlkhUVra2TUPq14lSbKNc0ASQnq74dyvKEYT2hRtKClVy0yBs5 R0og== X-Gm-Message-State: ALoCoQkbcBcxvFs854peib99FiF9S896YXl2cBmM15v6GHCG/o2pyBWHkudjC9UXYL5NfaxL92iY X-Received: by 10.180.11.101 with SMTP id p5mr1826881wib.3.1429192414766; Thu, 16 Apr 2015 06:53:34 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.9.38 with SMTP id w6ls336374laa.13.gmail; Thu, 16 Apr 2015 06:53:34 -0700 (PDT) X-Received: by 10.112.78.105 with SMTP id a9mr28549109lbx.70.1429192414573; Thu, 16 Apr 2015 06:53:34 -0700 (PDT) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com. [209.85.217.177]) by mx.google.com with ESMTPS id ny4si6474005lbb.123.2015.04.16.06.53.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Apr 2015 06:53:34 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) client-ip=209.85.217.177; Received: by lbbzk7 with SMTP id zk7so59242961lbb.0 for ; Thu, 16 Apr 2015 06:53:34 -0700 (PDT) X-Received: by 10.152.28.5 with SMTP id x5mr28218728lag.112.1429192414438; Thu, 16 Apr 2015 06:53:34 -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.67.65 with SMTP id l1csp3145662lbt; Thu, 16 Apr 2015 06:53:33 -0700 (PDT) X-Received: by 10.68.223.226 with SMTP id qx2mr16093648pbc.71.1429192412585; Thu, 16 Apr 2015 06:53:32 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g4si8665270pdi.60.2015.04.16.06.53.31; Thu, 16 Apr 2015 06:53:32 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757221AbbDPNxY (ORCPT + 27 others); Thu, 16 Apr 2015 09:53:24 -0400 Received: from mail-lb0-f174.google.com ([209.85.217.174]:36157 "EHLO mail-lb0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754002AbbDPNxJ (ORCPT ); Thu, 16 Apr 2015 09:53:09 -0400 Received: by lbbqq2 with SMTP id qq2so59065744lbb.3 for ; Thu, 16 Apr 2015 06:53:07 -0700 (PDT) X-Received: by 10.112.172.35 with SMTP id az3mr27563629lbc.99.1429192387406; Thu, 16 Apr 2015 06:53:07 -0700 (PDT) Received: from localhost.localdomain (91-157-196-38.elisa-laajakaista.fi. [91.157.196.38]) by mx.google.com with ESMTPSA id k4sm1703081laf.16.2015.04.16.06.53.06 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 16 Apr 2015 06:53:06 -0700 (PDT) From: riku.voipio@linaro.org To: a.p.zijlstra@chello.nl, paulus@samba.org, mingo@redhat.com, linux-kernel@vger.kernel.org Cc: Riku Voipio Subject: [PATCH 3/3] perf tests: remove getpgrp from mmap-basic Date: Thu, 16 Apr 2015 16:52:55 +0300 Message-Id: <1429192375-13706-4-git-send-email-riku.voipio@linaro.org> X-Mailer: git-send-email 2.1.4 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: riku.voipio@linaro.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.217.177 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 --- 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;