Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp243008rwn; Fri, 16 Sep 2022 19:30:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5B++z5OAaEZG6Q9NbzCEqUABshpCXqdTloUt+KXYMKTtDOeOBY6eq7XvQOIsGTTeeZbR7T X-Received: by 2002:a17:907:2724:b0:779:7545:5df6 with SMTP id d4-20020a170907272400b0077975455df6mr5473463ejl.325.1663381851152; Fri, 16 Sep 2022 19:30:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663381851; cv=none; d=google.com; s=arc-20160816; b=E+SudZjGjtvJ8q4soBPSXsHipIVFwKZ/dIL1TUZe2ZqZ61456Z2BklA81KEA+YbFKe ACG3SCyoMt4MPRpZ18foRU21WNqZpbRSht4HQx45lK8nO6SILtcdnzI8EOGPsvNn9C3L vLBKlzpjcAZq1YYCvsf4bhhk/hGXRatZQEElizyhh1aTirP63ydMmbDiCIG1Lwsr2HYE g/XKH3F2V4sTSgj7zTOXH8WtwKkp2u+MWDb52HrpxL6GRAxNB7hd9ZRF6eZEBET0vYlb M6wbXMP4/ouYcLX4OfDv+0TnbWEd2eT9WhtsFPNXmYs7+UM1g0z5qf9NE3w5CpJWRhg1 8ABg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=MK+Xpq/YXkYG2r+Cqec0QiuW4AhP/bQoEFkwhUDBFYU=; b=hQR670v5I7/eKJ37UbgWadNUwFjWJZ905ESFNb5PW/pW2+xzmLkHrKW+xvM1/WJ9YT BvfBjjqrHGu2MociwR0De6Px8DmjnO+WOv8b3GRd9CUxhXeLllFmWqswk5bvbD0RWbhN ILWEJ4HCLn4vPhwB9KkqsCbrMSKP4RpGt+XzC6c2Is+yNsk7Zjv9hg9+wUzcnqKddanp m0TLTJxBULGHno2Wyi7o8Hvo6eIW0FW+WgIkGBibnpoScNSRwSahZdT52yZrGVWLAwD5 oJTzS0fIwgZeqS8ToXuu+6Y7NU+g1AbUfx6CTzZayR6h/s5vwEgWVPDVyiqg+f6ZZNtV PpXw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g15-20020a1709065d0f00b0077f92be81aasi13382745ejt.379.2022.09.16.19.30.24; Fri, 16 Sep 2022 19:30:51 -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; 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229889AbiIQB7i (ORCPT + 99 others); Fri, 16 Sep 2022 21:59:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229570AbiIQB7c (ORCPT ); Fri, 16 Sep 2022 21:59:32 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C726E43; Fri, 16 Sep 2022 18:59:30 -0700 (PDT) Received: from dggpemm500022.china.huawei.com (unknown [172.30.72.57]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4MTvFv11TLzBsMr; Sat, 17 Sep 2022 09:57:23 +0800 (CST) Received: from dggpemm500016.china.huawei.com (7.185.36.25) by dggpemm500022.china.huawei.com (7.185.36.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Sat, 17 Sep 2022 09:59:28 +0800 Received: from huawei.com (10.67.175.41) by dggpemm500016.china.huawei.com (7.185.36.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Sat, 17 Sep 2022 09:59:27 +0800 From: Yipeng Zou To: , , , , , , , , , , , , , , , , , , , , , CC: , , Subject: [PATCH 0/2] make weak attributes in {k,u}probes Date: Sat, 17 Sep 2022 09:55:20 +0800 Message-ID: <20220917015522.44583-1-zouyipeng@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.175.41] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemm500016.china.huawei.com (7.185.36.25) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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 We have some function implementation under some arch does nothing. We can mark it with weak attributes to improve. 1. arch_init_kprobes in kprobes 2. arch_uprobe_exception_notify in uprobes Yipeng Zou (2): kprobes: make arch_init_kprobes as weak uprobes: make arch_uprobe_exception_notify as weak arch/arm/probes/uprobes/core.c | 6 ------ arch/arm64/kernel/probes/uprobes.c | 6 ------ arch/csky/kernel/probes/kprobes.c | 5 ----- arch/csky/kernel/probes/uprobes.c | 6 ------ arch/riscv/kernel/probes/kprobes.c | 5 ----- arch/riscv/kernel/probes/uprobes.c | 6 ------ arch/s390/kernel/kprobes.c | 5 ----- arch/x86/kernel/kprobes/core.c | 5 ----- kernel/events/uprobes.c | 6 ++++++ kernel/kprobes.c | 5 +++++ 10 files changed, 11 insertions(+), 44 deletions(-) -- 2.17.1