Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp857771imu; Wed, 23 Jan 2019 06:57:34 -0800 (PST) X-Google-Smtp-Source: ALg8bN7OzNjw4A8WTbX1U/UGS2VODyIz8DDXIRSceYPV2sc/do9YxWo1KAa4v8EF6kVERk/xPtOl X-Received: by 2002:a63:24c2:: with SMTP id k185mr2165724pgk.406.1548255453983; Wed, 23 Jan 2019 06:57:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548255453; cv=none; d=google.com; s=arc-20160816; b=hRgVgqrxagIf/rihyF6QITO1msvs6nvwE+nlM3AvEYGr6ut1eG2NwbzGewMHfifhuK IYcpb4QEl7zPhTR9Mu0mg0k4pe2qVwKKXs61YPiOSc9D4yqKKq3zDps0qXg/sM9mQOdb nI+V0yAkDj6S2SHNZ9O24WrZPH0LRc3w1JiIGISjvE5RBy0wijhEVzs+eVlAPNVusq/c OWDJVieQDRYu09SHdo0ocjPv0GG+zePPIxBLKCxfxbnhso+jREyjcBkLJBgPynU9viIb 1CGUk2/lGmrLSvmWe7K1V5xGKk71aNyr3ioGQ5u7f+Eyzw2bgL3m2y8pYJdkOKgW2Uh3 DPdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=sSpBcnR1qxezOo1ri8qRsSrq7fLG0SxqCxAbgIGwrBs=; b=mKcJbg4hNOFcKX6M50q5KUfgYy1gHcIEqD6iNfcyCRBU1pKxisSAhOw1WzduwhC8Kf AbcaHboAmKts122eWWQK5mpDtV3VOAFFFRYBwfext/MVNvuawi+tufOEYNeeSMTZ/Igs OlhE8ldxOBopl8h7BHWgFldPAtj30Bx2Ps3yBlS1qP+C+S2VoAAdk+IGdexkRFd1DTGY CTwtPKGBUUwdkwi0XdOe5yenmgcn6jaJKV7Vw+Bwc5dmWrdIwYZvV6lWq6MM7iUxBGKm +dt3tQi2rLSqR/kv9vEsfwYlrUy9V70oUzOZwBVrCPPqACDcMhUUM2eraWCBRHQfW8fP Vk6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=F3qPcDBg; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x12si19420684pgf.454.2019.01.23.06.57.17; Wed, 23 Jan 2019 06:57:33 -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; dkim=pass header.i=@c-s.fr header.s=mail header.b=F3qPcDBg; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725988AbfAWO4J (ORCPT + 99 others); Wed, 23 Jan 2019 09:56:09 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:36332 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725930AbfAWO4I (ORCPT ); Wed, 23 Jan 2019 09:56:08 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 43l7dd4Mcjz9tyTN; Wed, 23 Jan 2019 15:56:05 +0100 (CET) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=F3qPcDBg; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id KCT9hiWv9axF; Wed, 23 Jan 2019 15:56:05 +0100 (CET) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 43l7dd396Dz9tyTL; Wed, 23 Jan 2019 15:56:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1548255365; bh=sSpBcnR1qxezOo1ri8qRsSrq7fLG0SxqCxAbgIGwrBs=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=F3qPcDBgEgn4kltWSxnGy+D5nem5aJmbvstdrm+IFkantZ2X4qhOh1w+Tjsl9Phnp dqQ3yp4o3Hqd4bYtkq6vBCB1xdlZ9zLtR+VExiQ9dxiZ/A/mYYYCbGUddKr+4aACjC VaaiCO6C9PKG98Gte4OahF0oeZkm1fYvHxq3GTIA= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id E2FC08B820; Wed, 23 Jan 2019 15:56:06 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id vMi-tTw7U0b6; Wed, 23 Jan 2019 15:56:06 +0100 (CET) Received: from PO15451 (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 5BCCB8B81E; Wed, 23 Jan 2019 15:56:06 +0100 (CET) Subject: Re: [PATCH] tools/testing/selftests/powerpc: Add Anton's null_syscall benchmark to the selftests To: Rui Teng , Anton Blanchard Cc: linuxppc-dev@lists.ozlabs.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Neuling , Shuah Khan , Cyril Bur References: <20160927141016.6027-1-rui.teng@linux.vnet.ibm.com> From: Christophe Leroy Message-ID: <2b98b303-d0d4-9f1d-9c47-fde0afb1306c@c-s.fr> Date: Wed, 23 Jan 2019 15:56:06 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20160927141016.6027-1-rui.teng@linux.vnet.ibm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 27/09/2016 à 16:10, Rui Teng a écrit : > From: Anton Blanchard > > Pull in a version of Anton's null_syscall benchmark: > http://ozlabs.org/~anton/junkcode/null_syscall.c > Into tools/testing/selftests/powerpc/benchmarks. > > Suggested-by: Michael Ellerman > Signed-off-by: Anton Blanchard > Signed-off-by: Rui Teng > --- > .../testing/selftests/powerpc/benchmarks/Makefile | 2 +- > .../selftests/powerpc/benchmarks/null_syscall.c | 157 +++++++++++++++++++++ > 2 files changed, 158 insertions(+), 1 deletion(-) > create mode 100644 tools/testing/selftests/powerpc/benchmarks/null_syscall.c > [...] > + > +static void do_null_syscall(unsigned long nr) > +{ > + unsigned long i; > + > + for (i = 0; i < nr; i++) > + getppid(); > +} > + Looks like getppid() performs a rcu_read_lock(). Is that what we want ? Shouldn't we use getpid() instead for a lighter syscall ? Christophe