op_header.cpp File Reference

various free function acting on a sample file header More...

#include <cstring>
#include <iostream>
#include <cstdlib>
#include <iomanip>
#include <set>
#include <sstream>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include "op_config.h"
#include "op_exception.h"
#include "odb.h"
#include "op_cpu_type.h"
#include "op_file.h"
#include "op_header.h"
#include "op_events.h"
#include "string_manip.h"
#include "format_output.h"
#include "xml_utils.h"
#include "cverb.h"
Include dependency graph for op_header.cpp:

Functions

void op_check_header (opd_header const &h1, opd_header const &h2, string const &filename)
bool is_jit_sample (string const &filename)
void check_mtime (string const &file, opd_header const &header)
opd_header const read_header (string const &sample_filename)
string const describe_header (opd_header const &header)
 output a readable form of header, this don't include the cpu type and speed
string const describe_cpu (opd_header const &header)
 output a readable form of cpu type and speed

Variables

verbose vbfd

Detailed Description

various free function acting on a sample file header

Remarks:
Copyright 2004 OProfile authors
Read the file COPYING
Author:
John Levon
Philippe Elie Daniel Hansel

Function Documentation

void check_mtime ( string const &  file,
opd_header const &  header 
)
string const describe_cpu ( opd_header const &  header  ) 
string const describe_header ( opd_header const &  header  ) 

output a readable form of header, this don't include the cpu type and speed

References opd_header::cpu_type, opd_header::ctr_count, opd_header::ctr_event, opd_header::ctr_um, and want_xml.

bool is_jit_sample ( string const &  filename  ) 

Referenced by check_mtime().

void op_check_header ( opd_header const &  h1,
opd_header const &  h2,
string const &  filename 
)
opd_header const read_header ( string const &  sample_filename  ) 

References opd_header::magic, and OPD_MAGIC.


Variable Documentation


Generated on 29 Jul 2013 for oprofile by  doxygen 1.6.1