operf_read Class Reference

#include <operf_counter.h>

Collaboration diagram for operf_read:
Collaboration graph
[legend]

Public Member Functions

 operf_read (void)
void init (int sample_data_pipe_fd, std::string input_filename, std::string samples_dir, op_cpu cputype, std::vector< operf_event_t > &evts, bool systemwide)
 ~operf_read ()
int readPerfHeader (void)
int convertPerfData (void)
bool is_valid (void)
int get_eventnum_by_perf_event_id (u64 id) const
const operf_event_tget_event_by_counter (u32 counter)

Private Member Functions

int _get_one_perf_event (event_t *)
int _read_header_info_with_ifstream (void)
int _read_perf_header_from_file (void)
int _read_perf_header_from_pipe (void)

Private Attributes

int sample_data_fd
std::string inputFname
std::string sampledir
std::ifstream istrm
struct OP_header opHeader
std::vector< operf_event_tevts
bool valid
bool syswide
op_cpu cpu_type

Detailed Description

Definition at line 119 of file operf_counter.h.


Constructor & Destructor Documentation

operf_read::operf_read ( void   )  [inline]

Definition at line 121 of file operf_counter.h.

References syswide, and valid.

operf_read::~operf_read (  ) 

Definition at line 617 of file operf_counter.cpp.

References evts.


Member Function Documentation

int operf_read::_get_one_perf_event ( event_t  )  [private]
int operf_read::_read_header_info_with_ifstream ( void   )  [private]
int operf_read::_read_perf_header_from_file ( void   )  [private]

Definition at line 686 of file operf_counter.cpp.

References _read_header_info_with_ifstream(), cverb, OP_header::data_size, inputFname, istrm, OP_PERF_HANDLED_ERROR, opHeader, valid, and vconvert.

Referenced by readPerfHeader().

Here is the call graph for this function:

Here is the caller graph for this function:

int operf_read::_read_perf_header_from_pipe ( void   )  [private]
int operf_read::convertPerfData ( void   ) 
const operf_event_t* operf_read::get_event_by_counter ( u32  counter  )  [inline]

Definition at line 129 of file operf_counter.h.

References evts.

Referenced by __handle_sample_event(), fill_header(), and mangle_filename().

Here is the caller graph for this function:

int operf_read::get_eventnum_by_perf_event_id ( u64  id  )  const

Definition at line 788 of file operf_counter.cpp.

References evts, OP_header::h_attrs, op_header_evt_info::ids, and opHeader.

Referenced by __handle_sample_event().

Here is the caller graph for this function:

void operf_read::init ( int  sample_data_pipe_fd,
std::string  input_filename,
std::string  samples_dir,
op_cpu  cputype,
std::vector< operf_event_t > &  evts,
bool  systemwide 
)

Referenced by convert_sample_data().

Here is the caller graph for this function:

bool operf_read::is_valid ( void   )  [inline]

Definition at line 127 of file operf_counter.h.

References valid.

Referenced by convert_sample_data().

Here is the caller graph for this function:

int operf_read::readPerfHeader ( void   ) 

Definition at line 780 of file operf_counter.cpp.

References _read_perf_header_from_file(), _read_perf_header_from_pipe(), and inputFname.

Referenced by convert_sample_data().

Here is the call graph for this function:

Here is the caller graph for this function:


Field Documentation

Definition at line 140 of file operf_counter.h.

std::vector<operf_event_t> operf_read::evts [private]
std::string operf_read::inputFname [private]
std::ifstream operf_read::istrm [private]
struct OP_header operf_read::opHeader [read, private]

Definition at line 132 of file operf_counter.h.

Referenced by _read_perf_header_from_pipe(), and convertPerfData().

std::string operf_read::sampledir [private]

Definition at line 134 of file operf_counter.h.

bool operf_read::syswide [private]

Definition at line 139 of file operf_counter.h.

Referenced by convertPerfData(), and operf_read().

bool operf_read::valid [private]

The documentation for this class was generated from the following files:

Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1