Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp5036214rwb; Wed, 21 Sep 2022 02:10:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4HjOdzld5mnlsBfWp6pyDIxzjMnu7Sz/e/u+S6QOPJ1fNtNGQcQ5OEAfdzuszQH+Ey4k7W X-Received: by 2002:a17:906:4fc9:b0:780:da33:2e95 with SMTP id i9-20020a1709064fc900b00780da332e95mr15097794ejw.682.1663751422796; Wed, 21 Sep 2022 02:10:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663751422; cv=none; d=google.com; s=arc-20160816; b=rRI3H16kujeK0vppWjYRsQJuxmDbxTF1HN7xC00mL6o16riR+BpWjFhXrsT86Kt0Ht BD85R2xH8B4aKFUUvUTNH4PS3F4BRdKAF/6WiivPcLkAlXJyHaXLnTLG1QZfpkib9/Yz 3m702WzD+xxwB3A9746WwLC+klyBkbOOs+YI4UcU299k5/ERGKvy1fH5b4tzUCkYvlgD wRi4WxWcualzg/IePYiuBbsnf+ZXZAO+iktpbR5gq37v75B2Y3cHOuS6mdqfc+5vU+fR SY+owigioluwlXck6QdvYJZ5hKU5jrlw7fJJD/dFTvYouZWQaR4y4BPMQd6egYMkTSrY Kl0w== 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=N+sWBwv5MxF+6L51ydEyB/jrgY323m4Yuf+2/IegXt4=; b=Jm1R46EAX+Z7MxMeiguKvkCQbd63oor5ObvhDHpXlfEY449EUXJH72VakFaaB602K8 Z4ZEQKkpaaK3RfFR7m4pwGsIfYbDt32/YFQrXr/nyBJwauPMJfiHeJ+KReBGu0RJ2mLw Yj7AOJPILtsI8tQfUIwKC9dRQET9Z1vGmXiXShQ5BJDm8OMumb+wZiCuUuHfeuaw6Q0i cCEQ8gE+BKIjvU1LAbIfEkKaHF/ts7RPBcEkFtrgkt/ICcNf015jOoXZ8oMT4hV+JRYY wrOwV65qlx+BIbiXmqVmIKb/oYp5swlEvAu6su6Oo2KLB14er1QHmxDe8/54xxvOwpSw 0knQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=O7cVp4Vi; 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 cs10-20020a170906dc8a00b00775de3ca64bsi2137531ejc.92.2022.09.21.02.09.56; Wed, 21 Sep 2022 02:10:22 -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=O7cVp4Vi; 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 S230380AbiIUI1H (ORCPT + 99 others); Wed, 21 Sep 2022 04:27:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230030AbiIUI0h (ORCPT ); Wed, 21 Sep 2022 04:26:37 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F05162C4; Wed, 21 Sep 2022 01:25:57 -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=N+sWBwv5MxF+6L51ydEyB/jrgY323m4Yuf+2/IegXt4=; b=O7cVp4ViyjbDED2MT57s8CArTF J7kYu9tRk1fnkzTktLGQXVs586llVSIWhD/yW4lryR7aPAkol4HRjkMiV1t+Nfz9hueTNgekkURIO z+yUMSQ4OFaWQ49/SUgLunFG49kuif1zJp57EW1uIukdqKgKpI9GO4fpdunpOPVTBXTrTBQGnwGsf 9bAE3n5MrZFnNnLHrJSJcljwllDRsasEoah/KhT0pzpT2pyRAq40XdRB+k90yJo5u67lLd/SZYvLE ii/M9BMy5W8s49SjqmvD/EfTCTVa7WuFktvF8/eE5sreUcEjbU8lWm+6fGBXDyYtVxJinG5S6czIU wYN6zxEA==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1oav2u-0069Vh-1E; Wed, 21 Sep 2022 08:25:28 +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 948DD300074; Wed, 21 Sep 2022 10:25:23 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 775192BB085DD; Wed, 21 Sep 2022 10:25:23 +0200 (CEST) Date: Wed, 21 Sep 2022 10:25:23 +0200 From: Peter Zijlstra To: "Naveen N. Rao" Cc: anil.s.keshavamurthy@intel.com, borntraeger@linux.ibm.com, catalin.marinas@arm.com, dave.hansen@linux.intel.com, gor@linux.ibm.com, guoren@kernel.org, hca@linux.ibm.com, hpa@zytor.com, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, mark.rutland@arm.com, mhiramat@kernel.org, namit@vmware.com, palmer@dabbelt.com, paul.walmsley@sifive.com, x86@kernel.org, Yipeng Zou , chris.zjh@huawei.com, liaochang1@huawei.com Subject: Re: [PATCH 0/2] make weak attributes in {k,u}probes Message-ID: References: <20220917015522.44583-1-zouyipeng@huawei.com> <1663692878.h3l8c563n8.naveen@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1663692878.h3l8c563n8.naveen@linux.ibm.com> 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 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 Tue, Sep 20, 2022 at 10:32:46PM +0530, Naveen N. Rao wrote: > Yipeng Zou wrote: > > We have some function implementation under some arch does nothing. > > We can mark it with weak attributes to improve. > > That's not always an improvement. See [1] for an example, among many other > patches to reduce use of __weak functions in the kernel. More weak 'fun': https://lkml.kernel.org/r/20220419203807.655552918@infradead.org