OP_perf_utils Namespace Reference

Data Structures

struct  vmlinux_info

Typedefs

typedef struct
OP_perf_utils::vmlinux_info 
vmlinux_info_t

Functions

void op_record_kernel_info (std::string vmlinux_file, u64 start_addr, u64 end_addr, int output_fd, operf_record *pr)
void op_get_kernel_event_data (struct mmap_data *md, operf_record *pr)
void op_perfrecord_sigusr1_handler (int sig __attribute__((unused)), siginfo_t *siginfo __attribute__((unused)), void *u_context __attribute__((unused)))
void op_perfread_sigusr1_handler (int sig __attribute__((unused)), siginfo_t *siginfo __attribute__((unused)), void *u_context __attribute__((unused)))
int op_record_process_info (bool system_wide, pid_t pid, operf_record *pr, int output_fd)
int op_write_output (int output, void *buf, size_t size)
void op_write_event (event_t *event, u64 sample_type)
int op_read_from_stream (std::ifstream &is, char *buf, std::streamsize sz)
int op_mmap_trace_file (struct mmap_info &info, bool init)
int op_get_next_online_cpu (DIR *dir, struct dirent *entry)
bool op_convert_event_vals (std::vector< operf_event_t > *evt_vec)
void op_reprocess_unresolved_events (u64 sample_type)
void op_release_resources (void)

Typedef Documentation


Function Documentation

bool OP_perf_utils::op_convert_event_vals ( std::vector< operf_event_t > *  evt_vec  ) 

Referenced by _process_events_list(), and get_default_event().

Here is the caller graph for this function:

void OP_perf_utils::op_get_kernel_event_data ( struct mmap_data md,
operf_record pr 
)

Definition at line 1347 of file operf_utils.cpp.

References operf_record::add_to_total(), mmap_data::base, mmap_data::mask, op_write_output(), operf_record::out_fd(), pagesize, mmap_data::prev, and sample_reads.

Referenced by operf_record::recordPerfData().

Here is the call graph for this function:

Here is the caller graph for this function:

int OP_perf_utils::op_get_next_online_cpu ( DIR *  dir,
struct dirent *  entry 
)

Definition at line 1389 of file operf_utils.cpp.

References OFFLINE.

Referenced by operf_record::setup().

Here is the caller graph for this function:

int OP_perf_utils::op_mmap_trace_file ( struct mmap_info info,
bool  init 
)

Definition at line 990 of file operf_utils.cpp.

References __mmap_trace_file(), mmap_info::file_data_offset, mmap_info::file_data_size, mmap_info::head, mmap_size, MMAP_WINDOW_SZ, mmap_info::offset, and pg_sz.

Referenced by operf_read::convertPerfData().

Here is the call graph for this function:

Here is the caller graph for this function:

void OP_perf_utils::op_perfread_sigusr1_handler ( int sig   __attribute__(unused),
siginfo_t *siginfo   __attribute__(unused),
void *u_context   __attribute__(unused) 
)

Definition at line 949 of file operf_utils.cpp.

References read_quit.

void OP_perf_utils::op_perfrecord_sigusr1_handler ( int sig   __attribute__(unused),
siginfo_t *siginfo   __attribute__(unused),
void *u_context   __attribute__(unused) 
)

Definition at line 942 of file operf_utils.cpp.

References quit.

int OP_perf_utils::op_read_from_stream ( std::ifstream &  is,
char *  buf,
std::streamsize  sz 
)

Referenced by operf_read::_read_header_info_with_ifstream().

Here is the caller graph for this function:

void OP_perf_utils::op_record_kernel_info ( std::string  vmlinux_file,
u64  start_addr,
u64  end_addr,
int  output_fd,
operf_record pr 
)

Referenced by operf_record::recordPerfData().

Here is the caller graph for this function:

int OP_perf_utils::op_record_process_info ( bool  system_wide,
pid_t  pid,
operf_record pr,
int  output_fd 
)

Definition at line 1202 of file operf_utils.cpp.

References _record_one_process_info(), and cverb.

Referenced by operf_record::recordPerfData().

Here is the call graph for this function:

Here is the caller graph for this function:

void OP_perf_utils::op_release_resources ( void   ) 

Definition at line 924 of file operf_utils.cpp.

References all_images_map, operf_free_modules_list(), operf_sfile_close_files(), and process_map.

Referenced by operf_read::convertPerfData().

Here is the call graph for this function:

Here is the caller graph for this function:

void OP_perf_utils::op_reprocess_unresolved_events ( u64  sample_type  ) 

Definition at line 909 of file operf_utils.cpp.

References __handle_sample_event(), cverb, event_union::header, and unresolved_events.

Referenced by operf_read::convertPerfData().

Here is the call graph for this function:

Here is the caller graph for this function:

void OP_perf_utils::op_write_event ( event_t event,
u64  sample_type 
)

Definition at line 869 of file operf_utils.cpp.

References __handle_comm_event(), __handle_fork_event(), __handle_mmap_event(), __handle_sample_event(), cverb, event_union::header, OPERF_RECORD_LOST_SAMPLE, operf_sfile_init(), operf_stats, sfile_init_done, and throttled.

Referenced by operf_read::convertPerfData().

Here is the call graph for this function:

Here is the caller graph for this function:

int OP_perf_utils::op_write_output ( int  output,
void *  buf,
size_t  size 
)

Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1