Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3665436ybb; Mon, 23 Mar 2020 05:30:16 -0700 (PDT) X-Google-Smtp-Source: ADFU+vshVwkJQVTjU/j7V8ByGvhx5yn8UmOr4ugiM9TNGWJxxhNh2tHZAPaRTUZx2I+KWhCbu/fB X-Received: by 2002:aca:4a08:: with SMTP id x8mr17257614oia.158.1584966616476; Mon, 23 Mar 2020 05:30:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584966616; cv=none; d=google.com; s=arc-20160816; b=sxyNpYbgYU/Uei47jUZKNIsBDki9rBNcboYsdWQGcU+z2adePoNJyIl56h2VAW9EHQ 12tJfUK4JWF3oCO8kH4odaeBVsH3/OxBJZ6AHrGxLbLeXO6W9zZUGuGs0rA0DJnUYCx3 rfXDCEru+es4lKxRRoD/XoPluk1LKcG+i96WnnE6q4s7TJtFgfUMyMohphy6iwh8n9Um kPzTieRsvZrVpGYR8IU8rhdV847y7ifn3er++kxMNNR7ShQz15IEyyMmvwjRbUdX2Dpk Mn+/fAqYi4zjeCocsdemYoaaWPY06QyLW2rk8zfcEVQci997gpioSb5TBtg7YZBLDicj BUZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=x2GYiYbIlLLJAd/cDAIRQqv1UKwDNeF6qS0RKGALnxs=; b=NZgzBETaVMpdWEzkFk3EnxhMKWJcCkCnF+eo4712esMhP7yo7cyVt3Nqy+fUEjUa/k Lup8u32WWx/r+v5CmUSjU09T4gTE7Qj5NFDynnpVfw41kOQ3B7o26fRZc/Q/QahSSDWJ VjM+LGWaLVZqZTlAXg9jZbtVsT44EH+27K6ADCWF1cJcLDSeI4vmwN/46HxFj/K+wo+x O7KqFq/tFqp7McznUEY4j8kpkWQAu5gQubPzl691g4BjFeo3j+AufuWwcEvzArpC2Jyu HCn1gJvvsl4kL+FO8sdJ4+mFCrwAU/4zH/BmzwUQkBpFjYjnRFCEy/F/H5cqOcfdCpCs Xr0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ahWQT4oR; 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 q6si7906434otg.84.2020.03.23.05.30.03; Mon, 23 Mar 2020 05:30:16 -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; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ahWQT4oR; 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 S1728018AbgCWM3c (ORCPT + 99 others); Mon, 23 Mar 2020 08:29:32 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:34704 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727126AbgCWM3c (ORCPT ); Mon, 23 Mar 2020 08:29:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=x2GYiYbIlLLJAd/cDAIRQqv1UKwDNeF6qS0RKGALnxs=; b=ahWQT4oRunLOQfWx+/YgU7BuKf r2STLJjPL8AJuAece++T+Ran8pvzOsr1R3KPx/HrXqrAkyFJRZGl2q+ZiLn9FN3AJzaXEwVsHFNlf OGh2ONFrC43Q/x65YarB/rclZuXPiGEFjQ05zr0Qo7ADv1GUE6lnN/Ou5xFkqcikB0wDvn+pRytPh dGorFvFJK7rPc82mffHuc7WA/ZjmzDksPSUb4iPLIJmVG9lzJ61HUQEOEvXa45vwF3trnsj9Jbumn rKdNxUgBVNTBAiFheYS/JXGH9pr2eZH7742vl2NV0N43a+eHi7HsoQiF22EvjxRrsyesYZbSNKcRK HoBZfSbg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jGMCt-00052M-Rr; Mon, 23 Mar 2020 12:29:28 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 41683983504; Mon, 23 Mar 2020 13:29:25 +0100 (CET) Date: Mon, 23 Mar 2020 13:29:25 +0100 From: Peter Zijlstra To: Andi Kleen Cc: Ian Rogers , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Kan Liang , linux-kernel@vger.kernel.org, Stephane Eranian Subject: Re: [PATCH v2] perf test x86: address multiplexing in rdpmc test Message-ID: <20200323122925.GH2452@worktop.programming.kicks-ass.net> References: <20200321173710.127770-1-irogers@google.com> <20200322101848.GF2452@worktop.programming.kicks-ass.net> <20200322231820.GB267978@tassilo.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200322231820.GB267978@tassilo.jf.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 22, 2020 at 04:18:20PM -0700, Andi Kleen wrote: > > Here's something a little better. Much of it copied from linux/math64.h > > and asm/div64.h. > > Not sure what the point is of micro optimizing a unit test? > > This is never run in production. People might use it as an example of how to use the stuff.. and then copy horrendous crap code.