op_xml_out.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  tag_t {
  NONE = 0, TABLE_ID, PROFILE, PROCESSOR,
  CPU_NAME, TITLE, SCHEMA_VERSION, MHZ,
  SETUP, TIMER_SETUP, RTC_INTERRUPTS, EVENT_SETUP,
  EVENT_NAME, UNIT_MASK, SETUP_COUNT, SEPARATED_CPUS,
  OPTIONS, SESSION, DEBUG_INFO, DETAILS,
  EXCLUDE_DEPENDENT, EXCLUDE_SYMBOLS, IMAGE_PATH, INCLUDE_SYMBOLS,
  MERGE, CLASSES, CLASS, CPU_NUM,
  EVENT_NUM, EVENT_MASK, PROCESS, PROC_ID,
  THREAD, THREAD_ID, BINARY, MODULE,
  NAME, CALLERS, CALLEES, SYMBOL,
  ID_REF, SELFREF, DETAIL_LO, DETAIL_HI,
  SYMBOL_TABLE, SYMBOL_DATA, STARTING_ADDR, SOURCE_FILE,
  SOURCE_LINE, CODE_LENGTH, SUMMARY, SAMPLE,
  COUNT, DETAIL_TABLE, SYMBOL_DETAILS, DETAIL_DATA,
  VMA, BYTES_TABLE, BYTES, HELP_EVENTS,
  HELP_HEADER, HELP_TITLE, HELP_DOC, HELP_EVENT,
  HELP_EVENT_NAME, HELP_EVENT_GROUP, HELP_EVENT_DESC, HELP_COUNTER_MASK,
  HELP_MIN_COUNT, HELP_EXT, HELP_UNIT_MASKS, HELP_DEFAULT_MASK,
  HELP_UNIT_MASKS_CATEGORY, HELP_UNIT_MASK, HELP_UNIT_MASK_VALUE, HELP_UNIT_MASK_DESC,
  HELP_UNIT_EXTRA_VALUE
}

Functions

char const * xml_tag_name (tag_t tag)
void open_xml_element (tag_t tag, int with_attrs, char *buffer, size_t size)
void close_xml_element (tag_t tag, int has_nested, char *buffer, size_t size)
void init_xml_int_attr (tag_t attr, int value, char *buffer, size_t size)
void init_xml_dbl_attr (tag_t attr, double value, char *buffer, size_t size)
void init_xml_str_attr (tag_t attr, char const *str, char *buffer, size_t size)

Detailed Description

utility routines for writing XML

Remarks:
Copyright 2008 OProfile authors
Read the file COPYING
Author:
Dave Nomura

Definition in file op_xml_out.h.


Enumeration Type Documentation

enum tag_t
Enumerator:
NONE 
TABLE_ID 
PROFILE 
PROCESSOR 
CPU_NAME 
TITLE 
SCHEMA_VERSION 
MHZ 
SETUP 
TIMER_SETUP 
RTC_INTERRUPTS 
EVENT_SETUP 
EVENT_NAME 
UNIT_MASK 
SETUP_COUNT 
SEPARATED_CPUS 
OPTIONS 
SESSION 
DEBUG_INFO 
DETAILS 
EXCLUDE_DEPENDENT 
EXCLUDE_SYMBOLS 
IMAGE_PATH 
INCLUDE_SYMBOLS 
MERGE 
CLASSES 
CLASS 
CPU_NUM 
EVENT_NUM 
EVENT_MASK 
PROCESS 
PROC_ID 
THREAD 
THREAD_ID 
BINARY 
MODULE 
NAME 
CALLERS 
CALLEES 
SYMBOL 
ID_REF 
SELFREF 
DETAIL_LO 
DETAIL_HI 
SYMBOL_TABLE 
SYMBOL_DATA 
STARTING_ADDR 
SOURCE_FILE 
SOURCE_LINE 
CODE_LENGTH 
SUMMARY 
SAMPLE 
COUNT 
DETAIL_TABLE 
SYMBOL_DETAILS 
DETAIL_DATA 
VMA 
BYTES_TABLE 
BYTES 
HELP_EVENTS 
HELP_HEADER 
HELP_TITLE 
HELP_DOC 
HELP_EVENT 
HELP_EVENT_NAME 
HELP_EVENT_GROUP 
HELP_EVENT_DESC 
HELP_COUNTER_MASK 
HELP_MIN_COUNT 
HELP_EXT 
HELP_UNIT_MASKS 
HELP_DEFAULT_MASK 
HELP_UNIT_MASKS_CATEGORY 
HELP_UNIT_MASK 
HELP_UNIT_MASK_VALUE 
HELP_UNIT_MASK_DESC 
HELP_UNIT_EXTRA_VALUE 

Definition at line 18 of file op_xml_out.h.


Function Documentation

void close_xml_element ( tag_t  tag,
int  has_nested,
char *  buffer,
size_t  size 
)

Definition at line 117 of file op_xml_out.c.

References buf, NONE, and xml_tag_name().

Referenced by close_element(), close_xml_events(), open_xml_events(), and xml_help_for_event().

Here is the call graph for this function:

Here is the caller graph for this function:

void init_xml_dbl_attr ( tag_t  attr,
double  value,
char *  buffer,
size_t  size 
)

Definition at line 158 of file op_xml_out.c.

References buf, and xml_tag_name().

Referenced by init_attr().

Here is the call graph for this function:

Here is the caller graph for this function:

void init_xml_int_attr ( tag_t  attr,
int  value,
char *  buffer,
size_t  size 
)

Definition at line 139 of file op_xml_out.c.

References buf, and xml_tag_name().

Referenced by init_attr(), xml_do_arch_specific_event_help(), and xml_help_for_event().

Here is the call graph for this function:

Here is the caller graph for this function:

void init_xml_str_attr ( tag_t  attr,
char const *  str,
char *  buffer,
size_t  size 
)

Definition at line 244 of file op_xml_out.c.

References buf, xml_quote(), and xml_tag_name().

Referenced by init_attr(), open_xml_events(), and xml_help_for_event().

Here is the call graph for this function:

Here is the caller graph for this function:

void open_xml_element ( tag_t  tag,
int  with_attrs,
char *  buffer,
size_t  size 
)

Definition at line 97 of file op_xml_out.c.

References buf, and xml_tag_name().

Referenced by open_element(), open_xml_events(), and xml_help_for_event().

Here is the call graph for this function:

Here is the caller graph for this function:

char const* xml_tag_name ( tag_t  tag  ) 

Definition at line 91 of file op_xml_out.c.

References xml_tag_map.

Referenced by close_xml_element(), init_xml_dbl_attr(), init_xml_int_attr(), init_xml_str_attr(), open_xml_element(), and tag_name().

Here is the caller graph for this function:


Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1