mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 14:11:20 +00:00
tools lib traceevent: Rename struct plugin_list to struct tep_plugin_list
In order to make libtraceevent into a proper library, variables, data structures and functions require a unique prefix to prevent name space conflicts. That prefix will be "tep_". This renames struct plugin_list to struct tep_plugin_list Signed-off-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com> Cc: linux-trace-devel@vger.kernel.org Link: http://lkml.kernel.org/r/20180919185724.586889128@goodmis.org Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
9334c9616b
commit
785be0c98d
3 changed files with 15 additions and 15 deletions
|
@ -31,8 +31,8 @@ static struct trace_plugin_options {
|
|||
char *value;
|
||||
} *trace_plugin_options;
|
||||
|
||||
struct plugin_list {
|
||||
struct plugin_list *next;
|
||||
struct tep_plugin_list {
|
||||
struct tep_plugin_list *next;
|
||||
char *name;
|
||||
void *handle;
|
||||
};
|
||||
|
@ -259,7 +259,7 @@ void tep_plugin_remove_options(struct tep_plugin_option *options)
|
|||
*/
|
||||
void tep_print_plugins(struct trace_seq *s,
|
||||
const char *prefix, const char *suffix,
|
||||
const struct plugin_list *list)
|
||||
const struct tep_plugin_list *list)
|
||||
{
|
||||
while (list) {
|
||||
trace_seq_printf(s, "%s%s%s", prefix, list->name, suffix);
|
||||
|
@ -271,9 +271,9 @@ static void
|
|||
load_plugin(struct tep_handle *pevent, const char *path,
|
||||
const char *file, void *data)
|
||||
{
|
||||
struct plugin_list **plugin_list = data;
|
||||
struct tep_plugin_list **plugin_list = data;
|
||||
tep_plugin_load_func func;
|
||||
struct plugin_list *list;
|
||||
struct tep_plugin_list *list;
|
||||
const char *alias;
|
||||
char *plugin;
|
||||
void *handle;
|
||||
|
@ -417,20 +417,20 @@ load_plugins(struct tep_handle *pevent, const char *suffix,
|
|||
free(path);
|
||||
}
|
||||
|
||||
struct plugin_list*
|
||||
struct tep_plugin_list*
|
||||
tep_load_plugins(struct tep_handle *pevent)
|
||||
{
|
||||
struct plugin_list *list = NULL;
|
||||
struct tep_plugin_list *list = NULL;
|
||||
|
||||
load_plugins(pevent, ".so", load_plugin, &list);
|
||||
return list;
|
||||
}
|
||||
|
||||
void
|
||||
tep_unload_plugins(struct plugin_list *plugin_list, struct tep_handle *pevent)
|
||||
tep_unload_plugins(struct tep_plugin_list *plugin_list, struct tep_handle *pevent)
|
||||
{
|
||||
tep_plugin_unload_func func;
|
||||
struct plugin_list *list;
|
||||
struct tep_plugin_list *list;
|
||||
|
||||
while (plugin_list) {
|
||||
list = plugin_list;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue