#include <libxml/xmlwriter.h>#include "pmm_model.h"#include "pmm_load.h"#include "pmm_interval.h"Go to the source code of this file.
Functions | |
| int | parse_config (struct pmm_config *cfg) |
| int | parse_history (struct pmm_loadhistory *h) |
| int | parse_model (struct pmm_model *m) |
| int | parse_models (struct pmm_config *c) |
| int | write_loadhistory (struct pmm_loadhistory *h) |
| int | write_loadhistory_xtwp (xmlTextWriterPtr writer, struct pmm_loadhistory *h) |
| int | write_models (struct pmm_config *cfg) |
| int | write_model (struct pmm_model *m) |
| int | write_model_xtwp (xmlTextWriterPtr writer, struct pmm_model *m) |
| int | write_bench_list_xtwp (xmlTextWriterPtr writer, struct pmm_bench_list *bench_list) |
| int | write_benchmark_xtwp (xmlTextWriterPtr writer, struct pmm_benchmark *b) |
| int | write_paramdef_set_xtwp (xmlTextWriterPtr writer, struct pmm_paramdef_set *pd_set) |
| int | write_paramdef_xtwp (xmlTextWriterPtr writer, struct pmm_paramdef *pd) |
| int | write_parameter_array_xtwp (xmlTextWriterPtr writer, int *p, int n) |
| int | write_interval_xtwp (xmlTextWriterPtr writer, struct pmm_interval *i) |
| int | write_timeval_xtwp (xmlTextWriterPtr writer, struct timeval *t) |
| void | xmlparser_init () |
| void | xmlparser_cleanup () |
| int parse_config | ( | struct pmm_config * | cfg | ) |
Parse xml config file into config structure.
| cfg | pointer to config structure to store parsed data |
Definition at line 613 of file pmm_cfgparser.c.
| int parse_history | ( | struct pmm_loadhistory * | h | ) |
Parse the load history file.
| h | pointer to a load history structure, already populated with config data (i.e. the load history file path) |
Definition at line 1267 of file pmm_cfgparser.c.
| int parse_model | ( | struct pmm_model * | m | ) |
Parses a model from an xml file. The model structure is expected to have the path of the file already stored.
| m | pointer to the model |
Definition at line 1522 of file pmm_cfgparser.c.
| int parse_models | ( | struct pmm_config * | c | ) |
Parse models of routines listed in the config structure.
| c | pointer to the config with all routine details |
Definition at line 1732 of file pmm_cfgparser.c.
| int write_bench_list_xtwp | ( | xmlTextWriterPtr | writer, |
| struct pmm_bench_list * | bench_list | ||
| ) |
Write a benchmark list to an xmlTextWriterPtr object
| writer | xmlTextWriter pointer |
| bench_list | pointer to the benchmark list |
Definition at line 2693 of file pmm_cfgparser.c.
| int write_benchmark_xtwp | ( | xmlTextWriterPtr | writer, |
| struct pmm_benchmark * | b | ||
| ) |
Write a benchmark to an xmlTextWriterPtr object
| writer | xmlTextWriter pointer |
| b | pointer to the benchmark |
Definition at line 2984 of file pmm_cfgparser.c.
| int write_interval_xtwp | ( | xmlTextWriterPtr | writer, |
| struct pmm_interval * | i | ||
| ) |
write an interval structure to disk in xml
| writer | xmlTextWriterPtr to use to write with |
| i | pointer to interval structure to write to disk |
Definition at line 1776 of file pmm_cfgparser.c.
| int write_loadhistory | ( | struct pmm_loadhistory * | h | ) |
write the load history to file
opens an xmlTextWriter and writes the history to the file specified in the history structure
| h | pointer to the load history |
Definition at line 1956 of file pmm_cfgparser.c.
| int write_loadhistory_xtwp | ( | xmlTextWriterPtr | writer, |
| struct pmm_loadhistory * | h | ||
| ) |
Write load history to the xmlTextWriterPtr
| writer | an xmlTextWriter pointer |
| h | pointer to load load history structure |
Definition at line 2145 of file pmm_cfgparser.c.
| int write_model | ( | struct pmm_model * | m | ) |
write an individual model to disk
| m | pointer to the model |
Definition at line 2315 of file pmm_cfgparser.c.
| int write_model_xtwp | ( | xmlTextWriterPtr | writer, |
| struct pmm_model * | m | ||
| ) |
Write a model list to an xmlTextWriterPtr object
| writer | xmlTextWriter pointer |
| m | pointer to the model |
Definition at line 2591 of file pmm_cfgparser.c.
| int write_models | ( | struct pmm_config * | cfg | ) |
write all models in the configuration
| cfg | pointer to the configuration |
Definition at line 2288 of file pmm_cfgparser.c.
| int write_paramdef_set_xtwp | ( | xmlTextWriterPtr | writer, |
| struct pmm_paramdef_set * | pd_set | ||
| ) |
Write the parameter definition set to an xmlTextWriterPtr object
| writer | xmlTextWriter pointer |
| pd_set | pointer to the parameter defintion set |
Definition at line 2750 of file pmm_cfgparser.c.
| int write_paramdef_xtwp | ( | xmlTextWriterPtr | writer, |
| struct pmm_paramdef * | pd | ||
| ) |
Write a parameter definition to an xmlTextWriterPtr object
| writer | xmlTextWriter pointer |
| pd | pointer to the parameter definition to write |
Definition at line 2837 of file pmm_cfgparser.c.
| int write_parameter_array_xtwp | ( | xmlTextWriterPtr | writer, |
| int * | p, | ||
| int | n | ||
| ) |
Write a parameter array to an xmlTextWriterPtr object
In the form:
<parameter_array> <n_p>n</n_p> <parameter>p[0]</parameter> <parameter> .... </parameter_array>
| writer | writer to use |
| p | parameter array |
| n | number of parameters in array |
Definition at line 2933 of file pmm_cfgparser.c.
| int write_timeval_xtwp | ( | xmlTextWriterPtr | writer, |
| struct timeval * | t | ||
| ) |
Write a timeval to an xmlTextWriterPtr object
| writer | xmlTextWriter pointer |
| t | pointer to the timeval |
Definition at line 3076 of file pmm_cfgparser.c.
| void xmlparser_cleanup | ( | ) |
clean up libxml parser
Definition at line 3113 of file pmm_cfgparser.c.
| void xmlparser_init | ( | ) |
initialized libxml2 parser
Definition at line 3104 of file pmm_cfgparser.c.
1.8.1.2