Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp373146ybg; Sun, 26 Jul 2020 07:18:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRA+v+LiXnRUGUSqv7we2Q4jteDKtBRQZA1Ofx4aKmJrkgDiDmMolksG8OKLMj26ZcIYYy X-Received: by 2002:a05:6402:19a5:: with SMTP id o5mr674808edz.283.1595773096724; Sun, 26 Jul 2020 07:18:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595773096; cv=none; d=google.com; s=arc-20160816; b=IDK1sJcb5Pl8Ouk6bJRsbKNmVBzHj05HMHkVOsPkHDH5t4+rDofwnK8w4KUPLyHOAC OuJV2z8KeW09OhrB2075wAnV3eR4V1dgO9CbtXjMZl+SLumH16a791JicObAao/xRpLE AqIr3ETHzAG7didLefAlmvvo0Y5/9Ril7xop27fsV2ZXXrURFvMrfS5kGdh/wfHVSDjf QhzMCP3IY8iY61n6f3yAPknIEK99B47t1hrhg0bRgBmvS8k38KqXw7YgUdSEMEnzdg+X JnXfO5lspSRRmXPXtqZudVoiIui/19H7Y8UtE7FxpZTJAr24cXisCNiB+QRq8PoF+b58 dw8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=ToYGq6oRr5j0onV7C10hkcVNrxXrTmhDSUum/Wino84=; b=vgrVVA/T3KH07pn5+6mtYzjC8HYgWyWgiToiXyb6frZgKVBxMI1lMB1X2v7GJacGPR n6FVCCU+YmZKgarFGw5b6PhxRhyTQhAq3Sju+3GcmXIGicDkV+LGyJDwRGMwiGjNT2gC hqs3NEAZ8a67zQSGvI8jqDv9KJCBskMmFxlDaoRZi1z8boXrP4v8n0+cePTWUGX7ALbf WqBEGApRBTKlN/ToaBKMPfwf9u3kVWYwrJ+3Jrf2L25mLicH8UWmIKxlV74pbUCS7HjX uS/bRh17DTy+e7DvjHlYXExfWr9Z+BMq8Gpw8p7AxYZs4xEOooG0FUxHriIxGkyNI+yi Vs7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TIuxgsx3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rn4si4695767ejb.658.2020.07.26.07.17.52; Sun, 26 Jul 2020 07:18:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TIuxgsx3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726666AbgGZOQa (ORCPT + 99 others); Sun, 26 Jul 2020 10:16:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:49114 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725848AbgGZOQ3 (ORCPT ); Sun, 26 Jul 2020 10:16:29 -0400 Received: from quaco.ghostprotocols.net (unknown [179.97.37.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E8C08206D8; Sun, 26 Jul 2020 14:16:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595772989; bh=zVU7cccZJMSnC+aYNnB5KrF2gE1bqUAI8XDld2dEmf4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TIuxgsx3h/OlKyZDcEN0r33bghADU9tgUHQB73nP47orbJDBSZmy8Bn6VwvZHlKbJ HTTdnzDD+nssYQTgAti0MToWmNzAWAnYZkNQ4y0DE3k0i/t6RY2OXg6C/d3rTsWZf9 bHVaPs4i5r6bSfuak3Bwp8Gs9yhjpNBSLRggjaJ0= Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 65A33404B1; Sun, 26 Jul 2020 11:16:26 -0300 (-03) Date: Sun, 26 Jul 2020 11:16:26 -0300 From: Arnaldo Carvalho de Melo To: Josh Poimboeuf Cc: Davidlohr Bueso , Arnaldo Carvalho de Melo , Ingo Molnar , mgorman@techsingularity.net, linux-kernel@vger.kernel.org, Davidlohr Bueso , Namhyung Kim , Jiri Olsa Subject: Re: [PATCH] tools/perf-bench: Add basic syscall benchmark Message-ID: <20200726141626.GN77866@kernel.org> References: <20190307185253.28432-1-dave@stgolabs.net> <20190307191157.GB32240@kernel.org> <20190308181747.l36zqz2avtivrr3c@linux-r8p5> <20200514203942.v2dbjeqrdpuucx5h@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200514203942.v2dbjeqrdpuucx5h@treble> X-Url: http://acmel.wordpress.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Thu, May 14, 2020 at 03:39:42PM -0500, Josh Poimboeuf escreveu: > On Fri, Mar 08, 2019 at 10:17:47AM -0800, Davidlohr Bueso wrote: > > On Thu, 07 Mar 2019, Arnaldo Carvalho de Melo wrote: > > > You forgot to update tools/perf/Documentation/perf-bench.txt, and please > > > take a look at tools/perf/util/pmu.c convert_scale() to see how to save > > > the current locale, set the one you want, then restore the previous one, > > > so that at the end of this benchmark the environment is back to where it > > > was. > > > > Here's an updated version with the corresponding docs, but I removed the > > setlocale() - doesn't seem worth it; I hope Mel has no strong objection. > > > > Thanks. > > > > -------8<---------------------------------------------------------- > > [PATCH v2] tools/perf-bench: Add basic syscall benchmark > > > > The usefulness of having a standard way of testing syscall performance > > has come up from time to time[0]. Furthermore, some of our testing > > machinery (such as 'mmtests') already makes use of a simplified version > > of the microbenchmark. This patch mainly takes the same idea to measure > > syscall throughput compatible with 'perf-bench' via getppid(2), yet > > without any of the additional template stuff from Ingo's version (based > > on numa.c). The code is identical to what mmtests uses. > > > > [0] https://lore.kernel.org/lkml/20160201074156.GA27156@gmail.com/ > > > > Signed-off-by: Davidlohr Bueso > > It would be nice to see this merged. I posted something very similar > back in 2016. So, I took this as an Acked-by: Josh, and the previous "no objection" from Mel as well, its now in my tmp.perf/core branch while it, together with other stuff goes thru build tests + 'perf test'. Sorry for the long delay in processing it, I shoudl've noticed that my review comments were addressed in v2. - Arnaldo