Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp442314iol; Thu, 9 Jun 2022 06:59:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMlQ68N8v+MeTw1Sgn2UTRZYCOep28aD0eQgpuaRboSJXtYDy9K6BgZApLEC2WWFINFsHm X-Received: by 2002:a17:907:3d8a:b0:70e:76f2:eedd with SMTP id he10-20020a1709073d8a00b0070e76f2eeddmr30380013ejc.485.1654783179877; Thu, 09 Jun 2022 06:59:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654783179; cv=none; d=google.com; s=arc-20160816; b=C9476MUcS7ZOT4uSThQNZvo6e9w2SYcKsIxcToAAlLgZGZ4JCWVkolsIIgbiqulcgY esCZQs3EKeE05BtT9gpQrVEkKTu5yOvrJZLPhZgFoeQsOR1dgsqYTPzgkN65zQ8szr/h 9lyTnRd5stsH3GKrzl41QrO1TGgqoVS/OCwP3FT43os1+S1BACeYNoDCOPFxEysGiDCF 8igtkBObX9nNHtus0HViHf4dhMkQEJWbx8fQ3IdDjYMUEKJzXGCVvS/5mY2mv5d0nDp6 yGP1ymjPeP4CpqgwOoHXnKcXB25ZRGiZrvQF9hYtyANrj01MSQPpRvldMvvBHAnBe1+5 sX9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=RDnJZHWmp+ysb0h5kWT0rkgoVabhczhnKUMjH+r+EEo=; b=KfXm+5BQjUVoD0SZcwXv4WlKoHH1McxVkVT69iPcxD2XD7ArMEfbIcokerWhlYuPSF xqL9IIbIgdFZHKyPA0KMUh8tonkRIviXP7u/NLfj4UpzucFLnm8cC0CrHoT1lOGDIE2u d54RIkGkLEmKIHA8ejkgovVMQU5FGTVQnN0vKt+jN6AHGj8QQx+d4d/e1CimCr1W7uv5 b/5ZXb6GoD/TnakN6pytzgUb29l8+xAJ04OEfcwngB5Z4s3cPGDY6Uwn6XLIgiK+w05K DPFEEGXB8wYDbUHd1u40Uk/HeensEHdlX9mdWZb2oWjxHz1leDE11IbmqOerMILFuW/g +cbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=ZTuTdisB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w5-20020a1709061f0500b006efe41f067asi20029222ejj.234.2022.06.09.06.59.12; Thu, 09 Jun 2022 06:59:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=ZTuTdisB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245281AbiFINZb (ORCPT + 99 others); Thu, 9 Jun 2022 09:25:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236244AbiFINZa (ORCPT ); Thu, 9 Jun 2022 09:25:30 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48CBF4F9F2; Thu, 9 Jun 2022 06:25:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=RDnJZHWmp+ysb0h5kWT0rkgoVabhczhnKUMjH+r+EEo=; b=ZTuTdisB3u3GkBMB77eCqdbWc9 jJwUF3E2AQOHtgrIGRBaWTeBCUxmIl+lpTEnfIJT0qWeI+nHi82g2bLqQg3/i1ScT9/dGn68T6+Gk 4ATEfi1FcP5b1jSoPwi2aTPnD4MjbxOfvNFqWajswCCdaDsF/KMBMH/Q1gcXXT5R7zd1a5dVxK1/S 81AMFfHWq68ZGRrYsEZkmFsL8HreTNO88cox0geSEr2XtHRkxQLBDlru+VbstBq10bGeHdVbstIxI ns+uXQwcqnlSYsaXEB5HUc0oRHcjd67oTmT4AWTk4Tb3N7qaizDsHMAIYOUc1e4Ltl3awT2358oiF XjOPqY2Q==; Received: from dhcp-077-249-017-003.chello.nl ([77.249.17.3] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nzI9u-00DZzb-Gd; Thu, 09 Jun 2022 13:25:10 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 3096930017D; Thu, 9 Jun 2022 15:25:08 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 16C59200ECBB2; Thu, 9 Jun 2022 15:25:08 +0200 (CEST) Date: Thu, 9 Jun 2022 15:25:08 +0200 From: Peter Zijlstra To: Dmitry Vyukov Cc: Marco Elver , Frederic Weisbecker , Ingo Molnar , Thomas Gleixner , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-perf-users@vger.kernel.org, x86@kernel.org, linux-sh@vger.kernel.org, kasan-dev@googlegroups.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/8] perf/hw_breakpoint: Make hw_breakpoint_weight() inlinable Message-ID: References: <20220609113046.780504-1-elver@google.com> <20220609113046.780504-5-elver@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 09, 2022 at 02:03:12PM +0200, Dmitry Vyukov wrote: > > -__weak int hw_breakpoint_weight(struct perf_event *bp) > > Humm... this was added in 2010 and never actually used to return > anything other than 1 since then (?). Looks like over-design. Maybe we > drop "#ifndef" and add a comment instead? Frederic, you have any recollection what this was supposed to go do?