Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2043078ybh; Fri, 24 Jul 2020 03:03:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziJpEr/UGdgQZdYdDf1uyl5MjepgzuS8a/s+UW6E4Mx5SA2X7WySg6ZgIJvbJsxgViuRMn X-Received: by 2002:a17:906:34c9:: with SMTP id h9mr2007106ejb.341.1595584979932; Fri, 24 Jul 2020 03:02:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595584979; cv=none; d=google.com; s=arc-20160816; b=Zv2cw0dnCD3G2MfiQLt3OhVRRQJqhIWzMAUtSin9pNsytda+RVL4B3OL8VCuO1dzId yF+F9/xwDG8NucgWT50ai7UUjGWYdcqD3/Q+yATMECYGUEcodEWRe+oHU0Gpq5I+ogpM ap4goRSlxXiSdUk6Zm4FmCrw2ZMuzuC5hQ6PwElB5LMcnym2UVOPR7s9CYJBfcl6pzg+ MBWSOjKXnLQgYjdYWac8kY9IKoR5L/hrBcNXsr1v5HybqEGO1md2rB6VvHXsvgoE/F2K UOamNzx+wWaqkPq9p12DyyEhRqve77IZleG8Z0DfZQxO4RW3rpKjMJKFhS3bdBfiW3kS m+8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:mime-version:message-id:date:subject :cc:from; bh=GB/4YRjFSTiBmtF/II+weh+sq2r4MEdcxCo/KX/c1B0=; b=ZndQ5EkrQRpeoHsEjR+fmVwv1BYUWM6Y+LLLuI8YsRyWsN5nh6H5LdH6QryRZAGkAs rRwAMiR7osb1jcDYIi+O7w/XuxtBu/PqSbKMxOJAzDh4aT/fEQVlMWBkb2ZOr709oUa7 6EmoDUzXytD4ldmyjgf1hvT2E6jyx6TX6ZeEQiZzU9EGvEmCb5OCMqLc5l0RZFeftKPE fGnkEKAWTjP2x8p2mmiU8/4WUVwyB8+MQUayTSAy4Ux/qXJ+OOXF15t5xHdrmDBDyvKG sMZ+r7DHWN5K5yhn3qSQCI/2pYgsSuVq2FmrU226GBBd2YE7NZhULvFKgm//vkJq9/+U DJQg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bj4si274154ejb.540.2020.07.24.03.02.37; Fri, 24 Jul 2020 03:02:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726783AbgGXKAg (ORCPT + 99 others); Fri, 24 Jul 2020 06:00:36 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:51834 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726114AbgGXKAf (ORCPT ); Fri, 24 Jul 2020 06:00:35 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 82496F1AC66C4039B8E5; Fri, 24 Jul 2020 18:00:33 +0800 (CST) Received: from huawei.com (10.175.124.27) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Fri, 24 Jul 2020 18:00:26 +0800 From: Wang ShaoBo CC: , , , , , Subject: [PATCH -next] tools lib traceevent: Remove process in finding plugin options Date: Fri, 24 Jul 2020 17:59:57 +0800 Message-ID: <20200724095957.48159-1-bobo.shaobowang@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.124.27] X-CFilter-Loop: Reflected To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In function load_plugin, we get symbol loaded address from symbol name TEP_PLUGIN_LOADER_NAME, whereas the symbol name TEP_PLUGIN_ALIAS_NAME is optionally used for finding plugin options which is not used after. Signed-off-by: Wang ShaoBo --- tools/lib/traceevent/event-plugin.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tools/lib/traceevent/event-plugin.c b/tools/lib/traceevent/event-plugin.c index e1f7ddd5a6cf..c6435087b5b6 100644 --- a/tools/lib/traceevent/event-plugin.c +++ b/tools/lib/traceevent/event-plugin.c @@ -275,7 +275,6 @@ load_plugin(struct tep_handle *tep, const char *path, struct tep_plugin_list **plugin_list = data; tep_plugin_load_func func; struct tep_plugin_list *list; - const char *alias; char *plugin; void *handle; int ret; @@ -293,10 +292,6 @@ load_plugin(struct tep_handle *tep, const char *path, goto out_free; } - alias = dlsym(handle, TEP_PLUGIN_ALIAS_NAME); - if (!alias) - alias = file; - func = dlsym(handle, TEP_PLUGIN_LOADER_NAME); if (!func) { warning("could not find func '%s' in plugin '%s'\n%s\n", -- 2.17.1