#include <sys/types.h>
#include "opd_mangling.h"
#include "opd_kernel.h"
#include "opd_cookie.h"
#include "opd_sfile.h"
#include "opd_anon.h"
#include "opd_printf.h"
#include "opd_events.h"
#include "oprofiled.h"
#include "op_file.h"
#include "op_sample_file.h"
#include "op_config.h"
#include "op_mangle.h"
#include "op_events.h"
#include "op_libiberty.h"
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
Go to the source code of this file.
Functions | |
static char const * | get_dep_name (struct sfile const *sf) |
static char * | mangle_anon (struct anon_mapping const *anon) |
static char * | mangle_filename (struct sfile *last, struct sfile const *sf, int counter, int cg) |
int | opd_open_sample_file (odb_t *file, struct sfile *last, struct sfile *sf, int counter, int cg) |
Mangling and opening of sample files
Definition in file opd_mangling.c.
static char const* get_dep_name | ( | struct sfile const * | sf | ) | [static] |
Definition at line 37 of file opd_mangling.c.
References sfile::anon, sfile::app_cookie, sfile::cookie, find_cookie(), sfile::kernel, separate_kernel, and separate_lib.
Referenced by mangle_filename().
static char* mangle_anon | ( | struct anon_mapping const * | anon | ) | [static] |
Definition at line 57 of file opd_mangling.c.
References anon_mapping::end, anon_mapping::start, and anon_mapping::tgid.
Referenced by mangle_filename().
static char* mangle_filename | ( | struct sfile * | last, | |
struct sfile const * | sf, | |||
int | counter, | |||
int | cg | |||
) | [static] |
Definition at line 69 of file opd_mangling.c.
References sfile::anon, mangle_values::anon_name, mangle_values::cg_image_name, sfile::cookie, mangle_values::count, sfile::cpu, mangle_values::cpu, mangle_values::dep_name, mangle_values::event_name, find_cookie(), find_counter_event(), mangle_values::flags, get_dep_name(), mangle_values::image_name, sfile::kernel, mangle_anon(), MANGLE_ANON, MANGLE_CALLGRAPH, MANGLE_CG_ANON, MANGLE_CPU, MANGLE_KERNEL, MANGLE_TGID, MANGLE_TID, anon_mapping::name, kernel_image::name, op_mangle_filename(), separate_cpu, separate_thread, sfile::tgid, mangle_values::tgid, sfile::tid, mangle_values::tid, and mangle_values::unit_mask.
Referenced by opd_open_sample_file().
int opd_open_sample_file | ( | odb_t * | file, | |
struct sfile * | last, | |||
struct sfile * | sf, | |||
int | counter, | |||
int | cg | |||
) |
Definition at line 141 of file opd_mangling.c.
References sfile::anon, sfile::cookie, create_path(), sfile::embedded_offset, fill_header(), find_cookie(), sfile::kernel, mangle_filename(), kernel_image::name, odb_get_data(), odb_open(), ODB_RDWR, op_get_mtime(), sfile_get(), sfile_lru_clear(), sfile_put(), anon_mapping::start, UNUSED_EMBEDDED_OFFSET, verbprintf, and vsfile.
Referenced by get_file(), and ibs_sfile_get().