operf_mangling.cpp File Reference

#include <sys/types.h>
#include <iostream>
#include "operf_utils.h"
#include "operf_mangling.h"
#include "operf_kernel.h"
#include "operf_sfile.h"
#include "operf_counter.h"
#include "op_file.h"
#include "op_sample_file.h"
#include "op_mangle.h"
#include "op_events.h"
#include "op_libiberty.h"
#include "cverb.h"
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
Include dependency graph for operf_mangling.cpp:

Go to the source code of this file.

Functions

static const char * mangle_anon (struct operf_sfile const *anon)
static char * mangle_filename (struct operf_sfile *last, struct operf_sfile const *sf, int counter, int cg)
static void fill_header (struct opd_header *header, unsigned long counter, vma_t anon_start, vma_t cg_to_anon_start, int is_kernel, int cg_to_is_kernel, int spu_samples, uint64_t embed_offset, time_t mtime)
int operf_open_sample_file (odb_t *file, struct operf_sfile *last, struct operf_sfile *sf, int counter, int cg)

Variables

operf_read operfRead
op_cpu cpu_type
double cpu_speed

Function Documentation

static void fill_header ( struct opd_header header,
unsigned long  counter,
vma_t  anon_start,
vma_t  cg_to_anon_start,
int  is_kernel,
int  cg_to_is_kernel,
int  spu_samples,
uint64_t  embed_offset,
time_t  mtime 
) [static]
static const char* mangle_anon ( struct operf_sfile const *  anon  )  [static]

Definition at line 41 of file operf_mangling.cpp.

References operf_sfile::end_addr, operf_kernel_image::name, operf_sfile::start_addr, and operf_sfile::tgid.

Referenced by mangle_filename().

Here is the caller graph for this function:

static char* mangle_filename ( struct operf_sfile last,
struct operf_sfile const *  sf,
int  counter,
int  cg 
) [static]
int operf_open_sample_file ( odb_t file,
struct operf_sfile last,
struct operf_sfile sf,
int  counter,
int  cg 
)

Variable Documentation

double cpu_speed

Definition at line 66 of file operf.cpp.

Definition at line 55 of file oprofiled.c.

Definition at line 64 of file operf.cpp.


Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1