From: Wang ShaoBo <bobo.shaobowang@huawei.com>
To: unlisted-recipients:; (no To-header on input)
Cc: <cj.chengjian@huawei.com>, <huawei.libin@huawei.com>,
<rostedt@goodmis.org>, <acme@redhat.com>,
<linux-kernel@vger.kernel.org>,
<linux-perf-users@vger.kernel.org>
Subject: [PATCH -next] tools lib traceevent: Remove process in finding plugin options
Date: Fri, 24 Jul 2020 17:59:57 +0800 [thread overview]
Message-ID: <20200724095957.48159-1-bobo.shaobowang@huawei.com> (raw)
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 <bobo.shaobowang@huawei.com>
---
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
reply other threads:[~2020-07-24 10:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200724095957.48159-1-bobo.shaobowang@huawei.com \
--to=bobo.shaobowang@huawei.com \
--cc=acme@redhat.com \
--cc=cj.chengjian@huawei.com \
--cc=huawei.libin@huawei.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=rostedt@goodmis.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®