#include <sys/mman.h>
#include <unistd.h>
#include <sys/syscall.h>
#include <stdint.h>
#include <poll.h>
#include <string>
#include <vector>
#include <map>
#include <stdexcept>
#include <limits.h>
#include <istream>
#include <fstream>
#include "operf_event.h"
#include "op_cpu_type.h"
#include "operf_utils.h"
Go to the source code of this file.
Data Structures | |
class | operf_counter |
class | operf_record |
class | operf_read |
Defines | |
#define | OP_BASIC_SAMPLE_FORMAT |
#define | OP_PERF_HANDLED_ERROR -101 |
Functions | |
static int | op_perf_event_open (struct perf_event_attr *attr, pid_t pid, int cpu, int group_fd, unsigned long flags) |
Variables | |
char * | start_time_human_readable |
#define OP_BASIC_SAMPLE_FORMAT |
(PERF_SAMPLE_ID | PERF_SAMPLE_IP \ | PERF_SAMPLE_TID)
Definition at line 41 of file operf_counter.h.
Referenced by operf_counter::operf_counter().
#define OP_PERF_HANDLED_ERROR -101 |
Definition at line 53 of file operf_counter.h.
Referenced by operf_read::_read_header_info_with_ifstream(), operf_read::_read_perf_header_from_file(), operf_read::_read_perf_header_from_pipe(), convert_sample_data(), operf_counter::perf_event_open(), operf_record::prepareToRecord(), and operf_record::setup().
static int op_perf_event_open | ( | struct perf_event_attr * | attr, | |
pid_t | pid, | |||
int | cpu, | |||
int | group_fd, | |||
unsigned long | flags | |||
) | [inline, static] |
Definition at line 45 of file operf_counter.h.
Referenced by operf_counter::perf_event_open().
Definition at line 73 of file operf.cpp.
Referenced by operf_read::convertPerfData(), and start_profiling().