This is necessary because swig recognizes the T *output, but not struct T *output as an output argument. --- python/src/perfmon_int.i | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/python/src/perfmon_int.i b/python/src/perfmon_int.i index db6f4c5..b34c6fe 100644 --- a/python/src/perfmon_int.i +++ b/python/src/perfmon_int.i @@ -99,7 +99,12 @@ ptr_argout(perf_event_attr_t); #pragma SWIG nowarn=451 %include <perfmon/pfmlib.h> /* OS specific library interface */ -%include <perfmon/pfmlib_perf_event.h> +extern pfm_err_t pfm_get_perf_event_encoding(const char *str, + int dfl_plm, + perf_event_attr_t *output, + char **fstr, + int *idx); + %init %{ libpfm_err = PyErr_NewException("perfmon.libpfmError", NULL, NULL); -- 1.7.4 ------------------------------------------------------------------------------ What You Don't Know About Data Connectivity CAN Hurt You This paper provides an overview of data connectivity, details its effect on application quality, and explores various alternative solutions. http://p.sf.net/sfu/progress-d2d _______________________________________________ perfmon2-devel mailing list perfmon2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perfmon2-devel