Lines Matching defs:tep
443 load_plugin(struct tep_handle *tep, const char *path,
501 func(tep);
509 load_plugins_dir(struct tep_handle *tep, const char *suffix,
511 void (*load_plugin)(struct tep_handle *tep,
544 load_plugin(tep, path, name, data);
552 * @tep: handler to traceevent context
559 * - Directories, specified in @tep->plugins_dir and priority TEP_PLUGIN_FIRST
563 * - Directories, specified in @tep->plugins_dir and priority TEP_PLUGIN_LAST
566 void tep_load_plugins_hook(struct tep_handle *tep, const char *suffix,
567 void (*load_plugin)(struct tep_handle *tep,
579 if (tep && tep->flags & TEP_DISABLE_PLUGINS)
582 if (tep)
583 dir = tep->plugins_dir;
586 load_plugins_dir(tep, suffix, dir->path,
596 if (!tep || !(tep->flags & TEP_DISABLE_SYS_PLUGINS))
597 load_plugins_dir(tep, suffix, PLUGIN_DIR,
607 load_plugins_dir(tep, suffix, envdir, load_plugin, data);
623 load_plugins_dir(tep, suffix, path, load_plugin, data);
625 if (tep)
626 dir = tep->plugins_dir;
629 load_plugins_dir(tep, suffix, dir->path,
638 tep_load_plugins(struct tep_handle *tep)
642 tep_load_plugins_hook(tep, ".so", load_plugin, &list);
648 * @tep: Trace event handler.
655 int tep_add_plugin_path(struct tep_handle *tep, char *path,
660 if (!tep || !path)
673 dir->next = tep->plugins_dir;
674 tep->plugins_dir = dir;
679 __hidden void free_tep_plugin_paths(struct tep_handle *tep)
683 if (!tep)
686 dir = tep->plugins_dir;
688 tep->plugins_dir = tep->plugins_dir->next;
691 dir = tep->plugins_dir;
696 tep_unload_plugins(struct tep_plugin_list *plugin_list, struct tep_handle *tep)
706 func(tep);