#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"
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 |
various free function acting on a sample file header
Definition in file op_header.cpp.
| 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().


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

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

| 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.
Referenced by op_bfd::add_symbols(), op_bfd::get_symbol_range(), and op_bfd::has_debug_info().
1.6.1