Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2549723rwb; Mon, 19 Sep 2022 06:46:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7sCtjvVHOgI/tXp8OJwWdT+gYUfFSAgqYbu6IJc9kkjDMaJYp7ghs2dq8V23Hcwt/VdOXL X-Received: by 2002:a17:907:2cf7:b0:77a:9707:bb5b with SMTP id hz23-20020a1709072cf700b0077a9707bb5bmr13068410ejc.655.1663595164189; Mon, 19 Sep 2022 06:46:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663595164; cv=none; d=google.com; s=arc-20160816; b=IwxYZz7+srhsqvjGdyU8mii6bgF3Y4KM5pL7G3K8XA0BFdYhSDoyunMavDpwZo0x9b qRsaSMyp1F5xBkh8zNMptssWh58QVS8qAi5Ns87ouB1rmrWbzOd1EOULIob3GFLnPpuk Og/46ekREopWUsr4bz3zgBJnl4BgzDZj+qKLDZAru2nAxTWKuBIXVn0UNiA44g7jHueE lvctNRiCRCNswicppO0WCfoeS3cfRnR7rKn3131H40rG766BgQ0Tw6oVDl0C7KJV/3hs TPBgiPfbeIKaMjenF1YMXEhvWF+TfnWS18Yhj133k/AcF9vE9Ngj+V/Uw8MeA7l4X6lI rGyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=QSHePY2GPFM13vR6ta6KkpTpjGFJvEvzQkuiy9N0rsg=; b=Pv+nKSk+viKPUshwqov0JciK/cvWuJx1hPb1oW3rl09qC1o3AfbJhOXeXoTp/CgGt9 fxyduUyUa7ZwlguozkiHgZ5jnPIPSefIZNlGQF7Z4Pa2pE9Uqx0Bb86kI64402YzaCD4 gZE+WIB3pvz82/0M4jyNP4OuXHysTxEQFgvPx89pQLiUm0UROEej7etJskDZSdMC0SVy 9zyYuyROAEd0IbeJyrdC3OqWQh4gmC6gVhqzv3rQkAfbGhjtu533vUE9boBQLLdWA9oL 1uU7ZtRQwldmS89RsvQvMqfaWUg/zwpw4jo0byrOtqLDO6oc9hgVNEio1mMRLAsHzW4Z U2cg== 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 q9-20020a50cc89000000b004480d6fefe4si8872598edi.239.2022.09.19.06.45.37; Mon, 19 Sep 2022 06:46:04 -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 S230308AbiISNB0 (ORCPT + 99 others); Mon, 19 Sep 2022 09:01:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230331AbiISNBS (ORCPT ); Mon, 19 Sep 2022 09:01:18 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 095902F3A1 for ; Mon, 19 Sep 2022 06:01:10 -0700 (PDT) Received: from dggpemm500021.china.huawei.com (unknown [172.30.72.54]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4MWPrP0qzVzHnxM; Mon, 19 Sep 2022 20:59:01 +0800 (CST) Received: from dggpemm500016.china.huawei.com (7.185.36.25) by dggpemm500021.china.huawei.com (7.185.36.109) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 19 Sep 2022 21:01:08 +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.31; Mon, 19 Sep 2022 21:01:08 +0800 From: Yipeng Zou To: , , , , , , , , , , CC: Subject: [PATCH 1/2] tracing: kprobe: fix kprobe event gen test module on exit Date: Mon, 19 Sep 2022 20:56:28 +0800 Message-ID: <20220919125629.238242-2-zouyipeng@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220919125629.238242-1-zouyipeng@huawei.com> References: <20220919125629.238242-1-zouyipeng@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.175.41] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) 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 Correct gen_kretprobe_test clr event para on module exit. This will make it can't to delete. Fixes: 64836248dda2 ("tracing: Add kprobe event command generation test module") Signed-off-by: Yipeng Zou --- kernel/trace/kprobe_event_gen_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trace/kprobe_event_gen_test.c b/kernel/trace/kprobe_event_gen_test.c index 18b0f1cbb947..e023154be0f8 100644 --- a/kernel/trace/kprobe_event_gen_test.c +++ b/kernel/trace/kprobe_event_gen_test.c @@ -206,7 +206,7 @@ static void __exit kprobe_event_gen_test_exit(void) WARN_ON(kprobe_event_delete("gen_kprobe_test")); /* Disable the event or you can't remove it */ - WARN_ON(trace_array_set_clr_event(gen_kprobe_test->tr, + WARN_ON(trace_array_set_clr_event(gen_kretprobe_test->tr, "kprobes", "gen_kretprobe_test", false)); -- 2.17.1