* [PATCH -next] tools lib traceevent: Remove process in finding plugin options
@ 2020-07-24 9:59 ` Wang ShaoBo
0 siblings, 0 replies; 2+ messages in thread
From: Wang ShaoBo @ 2020-07-24 9:59 UTC (permalink / raw)
Cc: cj.chengjian, huawei.libin, rostedt, acme, linux-kernel,
linux-perf-users
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH -next] tools lib traceevent: Remove process in finding plugin options
@ 2020-07-24 9:59 ` Wang ShaoBo
0 siblings, 0 replies; 2+ messages in thread
From: Wang ShaoBo @ 2020-07-24 9:59 UTC (permalink / raw)
Cc: cj.chengjian, huawei.libin, rostedt, acme, linux-kernel,
linux-perf-users
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-07-24 10:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-24 9:59 [PATCH -next] tools lib traceevent: Remove process in finding plugin options Wang ShaoBo
2020-07-24 9:59 ` Wang ShaoBo
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.