#include "op_mangle.h"
#include <string.h>
#include <stdio.h>
#include "op_libiberty.h"
#include "op_sample_file.h"
#include "op_config.h"
Go to the source code of this file.
Functions | |
static void | append_image (char *dest, int flags, int anon, char const *name, char const *anon_name) |
char * | op_mangle_filename (struct mangle_values const *values) |
Mangling of sample file names
Definition in file op_mangle.c.
static void append_image | ( | char * | dest, | |
int | flags, | |||
int | anon, | |||
char const * | name, | |||
char const * | anon_name | |||
) | [static] |
Definition at line 22 of file op_mangle.c.
References MANGLE_KERNEL.
Referenced by op_mangle_filename().
char* op_mangle_filename | ( | struct mangle_values const * | values | ) |
op_mangle_filename - mangle a sample filename
values | parameters to use as mangling input |
See also PP:3 for the encoding scheme
Returns a char* pointer to the mangled string. Caller is responsible for freeing this string.
Definition at line 38 of file op_mangle.c.
References mangle_values::anon_name, append_image(), mangle_values::cg_image_name, mangle_values::count, mangle_values::cpu, mangle_values::dep_name, mangle_values::event_name, mangle_values::flags, mangle_values::image_name, MANGLE_ANON, MANGLE_CALLGRAPH, MANGLE_CG_ANON, MANGLE_CPU, MANGLE_TGID, MANGLE_TID, op_samples_current_dir, mangle_values::tgid, mangle_values::tid, and mangle_values::unit_mask.
Referenced by main(), mangle_filename(), and opd_mangle_filename().