6 tep_load_plugins, tep_unload_plugins - Load / unload traceevent plugins.
12 *#include <event-parse.h>*
14 struct tep_plugin_list pass:[*]*tep_load_plugins*(struct tep_handle pass:[*]_tep_);
15 void *tep_unload_plugins*(struct tep_plugin_list pass:[*]_plugin_list_, struct tep_handle pass:[*]_tep_);
20 The _tep_load_plugins()_ function loads all plugins, located in the plugin
21 directories. The _tep_ argument is trace event parser context.
22 The plugin directories are :
25 - System's plugin directory, defined at the library compile time. It
26 depends on the library installation prefix and usually is
27 _(install_preffix)/lib/traceevent/plugins_
28 - Directory, defined by the environment variable _TRACEEVENT_PLUGIN_DIR_
29 - User's plugin directory, located at _~/.local/lib/traceevent/plugins_
31 Loading of plugins can be controlled by the _tep_flags_, using the
35 _TEP_DISABLE_SYS_PLUGINS_ - do not load plugins, located in
36 the system's plugin directory.
37 _TEP_DISABLE_PLUGINS_ - do not load any plugins.
39 The _tep_set_flag()_ API needs to be called before _tep_load_plugins()_, if
40 loading of all plugins is not the desired case.
42 The _tep_unload_plugins()_ function unloads the plugins, previously loaded by
43 _tep_load_plugins()_. The _tep_ argument is trace event parser context. The
44 _plugin_list_ is the list of loaded plugins, returned by
45 the _tep_load_plugins()_ function.
49 The _tep_load_plugins()_ function returns a list of successfully loaded plugins,
50 or NULL in case no plugins are loaded.
56 #include <event-parse.h>
58 struct tep_handle *tep = tep_alloc();
60 struct tep_plugin_list *plugins = tep_load_plugins(tep);
61 if (plugins == NULL) {
62 /* no plugins are loaded */
65 tep_unload_plugins(plugins, tep);
73 Header file to include in order to have access to the library APIs.
75 Linker switch to add when building a program that uses the library.
80 _libtraceevent(3)_, _trace-cmd(1)_, _tep_set_flag(3)_
86 *Steven Rostedt* <rostedt@goodmis.org>, author of *libtraceevent*.
87 *Tzvetomir Stoyanov* <tz.stoyanov@gmail.com>, author of this man page.
91 Report bugs to <linux-trace-devel@vger.kernel.org>
95 libtraceevent is Free Software licensed under the GNU LGPL 2.1
99 https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git