#include <stdio.h>
#include <string.h>
#include "op_events.h"
#include "op_list.h"
#include "op_cpu_type.h"
#include "op_xml_out.h"
Go to the source code of this file.
Defines | |
#define | MAX_BUFFER 16384 |
Functions | |
void | open_xml_events (char const *title, char const *doc, op_cpu the_cpu_type) |
void | close_xml_events (void) |
static void | xml_do_arch_specific_event_help (struct op_event const *event, char *buffer, size_t size) |
void | xml_help_for_event (struct op_event const *event) |
Variables | |
static op_cpu | cpu_type |
static char | buffer [MAX_BUFFER] |
routines for generating event files in XML
Definition in file op_xml_events.c.
#define MAX_BUFFER 16384 |
Definition at line 19 of file op_xml_events.c.
Referenced by close_xml_events(), open_xml_events(), and xml_help_for_event().
void close_xml_events | ( | void | ) |
Definition at line 38 of file op_xml_events.c.
References buffer, close_xml_element(), HELP_EVENTS, and MAX_BUFFER.
Referenced by main().
void open_xml_events | ( | char const * | title, | |
char const * | doc, | |||
op_cpu | the_cpu_type | |||
) |
Definition at line 22 of file op_xml_events.c.
References buffer, close_xml_element(), HELP_DOC, HELP_EVENTS, HELP_HEADER, HELP_TITLE, init_xml_str_attr(), MAX_BUFFER, NONE, open_xml_element(), and SCHEMA_VERSION.
Referenced by main().
static void xml_do_arch_specific_event_help | ( | struct op_event const * | event, | |
char * | buffer, | |||
size_t | size | |||
) | [static] |
Definition at line 45 of file op_xml_events.c.
References CPU_PPC64_CELL, HELP_EVENT_GROUP, init_xml_int_attr(), and op_event::val.
Referenced by xml_help_for_event().
void xml_help_for_event | ( | struct op_event const * | event | ) |
Definition at line 59 of file op_xml_events.c.
References buffer, close_xml_element(), op_event::counter_mask, op_unit_mask::default_mask, op_unit_mask::op_described_um::desc, op_event::desc, op_event::ext, op_unit_mask::op_described_um::extra, HELP_COUNTER_MASK, HELP_DEFAULT_MASK, HELP_EVENT, HELP_EVENT_DESC, HELP_EVENT_NAME, HELP_EXT, HELP_MIN_COUNT, HELP_UNIT_EXTRA_VALUE, HELP_UNIT_MASK, HELP_UNIT_MASK_DESC, HELP_UNIT_MASK_VALUE, HELP_UNIT_MASKS, HELP_UNIT_MASKS_CATEGORY, init_xml_int_attr(), init_xml_str_attr(), MAX_BUFFER, op_event::min_count, op_event::name, op_unit_mask::name, NONE, open_xml_element(), op_unit_mask::um, op_event::unit, op_unit_mask::unit_type_mask, utm_bitmask, utm_exclusive, utm_mandatory, op_unit_mask::op_described_um::value, and xml_do_arch_specific_event_help().
Referenced by main().
char buffer[MAX_BUFFER] [static] |
Definition at line 20 of file op_xml_events.c.
Referenced by close_xml_events(), opd_do_samples(), open_xml_events(), and xml_help_for_event().
Definition at line 18 of file op_xml_events.c.