00001
00011 #ifndef OP_XML_OUT_H
00012 #define OP_XML_OUT_H
00013
00014 #ifdef __cplusplus
00015 extern "C" {
00016 #endif
00017
00018 typedef enum {
00019 NONE=0, TABLE_ID, PROFILE,
00020 PROCESSOR, CPU_NAME, TITLE, SCHEMA_VERSION, MHZ,
00021 SETUP,
00022 TIMER_SETUP, RTC_INTERRUPTS,
00023 EVENT_SETUP, EVENT_NAME, UNIT_MASK, SETUP_COUNT, SEPARATED_CPUS,
00024 OPTIONS, SESSION, DEBUG_INFO, DETAILS, EXCLUDE_DEPENDENT, EXCLUDE_SYMBOLS,
00025 IMAGE_PATH, INCLUDE_SYMBOLS, MERGE,
00026 CLASSES,
00027 CLASS,
00028 CPU_NUM,
00029 EVENT_NUM,
00030 EVENT_MASK,
00031 PROCESS, PROC_ID,
00032 THREAD, THREAD_ID,
00033 BINARY,
00034 MODULE, NAME,
00035 CALLERS, CALLEES,
00036 SYMBOL, ID_REF, SELFREF, DETAIL_LO, DETAIL_HI,
00037 SYMBOL_TABLE,
00038 SYMBOL_DATA, STARTING_ADDR,
00039 SOURCE_FILE, SOURCE_LINE, CODE_LENGTH,
00040 SUMMARY, SAMPLE,
00041 COUNT,
00042 DETAIL_TABLE, SYMBOL_DETAILS, DETAIL_DATA, VMA,
00043 BYTES_TABLE, BYTES,
00044 HELP_EVENTS,
00045 HELP_HEADER,
00046 HELP_TITLE,
00047 HELP_DOC,
00048 HELP_EVENT,
00049 HELP_EVENT_NAME,
00050 HELP_EVENT_GROUP,
00051 HELP_EVENT_DESC,
00052 HELP_COUNTER_MASK,
00053 HELP_MIN_COUNT,
00054 HELP_EXT,
00055 HELP_UNIT_MASKS,
00056 HELP_DEFAULT_MASK,
00057 HELP_UNIT_MASKS_CATEGORY,
00058 HELP_UNIT_MASK,
00059 HELP_UNIT_MASK_VALUE,
00060 HELP_UNIT_MASK_DESC,
00061 HELP_UNIT_EXTRA_VALUE,
00062 } tag_t;
00063
00064 char const * xml_tag_name(tag_t tag);
00065 void open_xml_element(tag_t tag, int with_attrs, char *buffer, size_t size);
00066 void close_xml_element(tag_t tag, int has_nested, char *buffer, size_t size);
00067 void init_xml_int_attr(tag_t attr, int value, char *buffer, size_t size);
00068 void init_xml_dbl_attr(tag_t attr, double value, char *buffer, size_t size);
00069 void init_xml_str_attr(tag_t attr, char const *str, char *buffer, size_t size);
00070
00071 #ifdef __cplusplus
00072 }
00073 #endif
00074
00075 #endif