aboutsummaryrefslogtreecommitdiffstats
path: root/plugin_python.c
Commit message (Collapse)AuthorAge
* trace-cmd: quote path definitionsJohannes Berg2010-06-07
| | | | | | | | | Rather than using MAKE_STR(), quote path definitions on the command line so that the preprocessor sees a string already. This avoids problems with path names that aren't valid expressions. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* python plugin: modify sys.path only onceJohannes Berg2010-06-07
| | | | | | | | Rather than appending to sys.path for every loaded plugin, do it only once when initializing. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* trace-cmd: Add PLYTHON_DIR to search path for the python pluginsSteven Rostedt2010-06-07
| | | | | | | Automate the loading of the PYTHON_DIR to tell the plugins where to load the trace-cmd specific modules. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* trace-cmd: unify plugin loadingJohannes Berg2010-06-02
| | | | | | | | | | | | | | | | | Introduce a new externally visible function trace_util_load_plugins that takes a callback to load a given plugin, and use it in both the core to load .so plugins, and the python plugin to load .py plugins. Note that this changes the location from which python plugins are loaded. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> [ cleaned up whitespace damage ] Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* python pluginJohannes Berg2010-05-25
This adds a python plugin that can in turn load plugins written in python. To make it work, trace-cmd needs to load plugin modules with RTLD_GLOBAL so that the python interpreter's symbols will be available to python C extension modules. Signed-off-by: Johannes Berg <johannes@sipsolutions.net>