op_mangle.h File Reference

#include <sys/types.h>
Include dependency graph for op_mangle.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  mangle_values

Enumerations

enum  mangle_flags {
  MANGLE_NONE = 0, MANGLE_CPU = (1 << 0), MANGLE_TGID = (1 << 1), MANGLE_TID = (1 << 2),
  MANGLE_KERNEL = (1 << 3), MANGLE_CALLGRAPH = (1 << 4), MANGLE_ANON = (1 << 5), MANGLE_CG_ANON = (1 << 6)
}

Functions

char * op_mangle_filename (struct mangle_values const *values)

Detailed Description

Mangling of sample file names

Remarks:
Copyright 2002 OProfile authors
Read the file COPYING
Author:
John Levon
Philippe Elie

Definition in file op_mangle.h.


Enumeration Type Documentation

Enumerator:
MANGLE_NONE 
MANGLE_CPU 
MANGLE_TGID 
MANGLE_TID 
MANGLE_KERNEL 
MANGLE_CALLGRAPH 
MANGLE_ANON 
MANGLE_CG_ANON 

Definition at line 21 of file op_mangle.h.


Function Documentation

char* op_mangle_filename ( struct mangle_values const *  values  ) 

op_mangle_filename - mangle a sample filename

Parameters:
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().

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1