diff --git a/exp/ptql.c b/exp/ptql.c new file mode 100644 index 00000000..bb07dabf --- /dev/null +++ b/exp/ptql.c @@ -0,0 +1,56 @@ +#include +#include "sigar.h" +#include "sigar_ptql.h" + +int ptql_test(sigar_t *sigar, char *ptql) { + int status, i; + sigar_proc_list_t proclist; + sigar_ptql_query_t *query; + + status = + sigar_proc_list_get(sigar, &proclist); + + if (status != SIGAR_OK) { + return status; + } + + status = + sigar_ptql_query_create(sigar, &query, ptql); + + if (status != SIGAR_OK) { + return status; + } + + for (i=0; i