op_header.cpp File Reference

#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:

Go to the source code of this file.

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)
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

Definition in file op_header.cpp.


Function Documentation

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

Definition at line 88 of file op_header.cpp.

References cverb, is_jit_sample(), opd_header::mtime, and op_get_mtime().

Referenced by populate_for_image().

Here is the call graph for this function:

Here is the caller graph for this function:

string const describe_cpu ( opd_header const &  header  ) 

output a readable form of cpu type and speed

Definition at line 246 of file op_header.cpp.

References opd_header::cpu_speed, opd_header::cpu_type, xml_utils::get_profile_header(), op_get_cpu_name(), op_get_cpu_type_str(), and want_xml.

Here is the call graph for this function:

string const describe_header ( opd_header const &  header  ) 

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

Definition at line 233 of file op_header.cpp.

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  ) 

Definition at line 74 of file op_header.cpp.

Referenced by check_mtime().

Here is the caller graph for this function:

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

Definition at line 42 of file op_header.cpp.

References opd_header::is_kernel, and opd_header::mtime.

opd_header const read_header ( string const &  sample_filename  ) 

Definition at line 130 of file op_header.cpp.

References opd_header::magic, and OPD_MAGIC.


Variable Documentation


Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1