3
* Mangling of sample file names
5
* @remark Copyright 2002 OProfile authors
6
* @remark Read the file COPYING
9
* @author Philippe Elie
15
#include <sys/types.h>
23
MANGLE_CPU = (1 << 0),
24
MANGLE_TGID = (1 << 1),
25
MANGLE_TID = (1 << 2),
26
MANGLE_KERNEL = (1 << 3),
27
MANGLE_CALLGRAPH = (1 << 4),
28
MANGLE_ANON = (1 << 5),
29
MANGLE_CG_ANON = (1 << 6),
33
* Temporary structure for passing parameters to
36
struct mangle_values {
39
char const * image_name;
40
char const * anon_name;
41
char const * dep_name;
42
char const * cg_image_name;
43
char const * event_name;
45
unsigned int unit_mask;
52
* op_mangle_filename - mangle a sample filename
53
* @param values parameters to use as mangling input
55
* See also PP:3 for the encoding scheme
57
* Returns a char* pointer to the mangled string. Caller
58
* is responsible for freeing this string.
60
char * op_mangle_filename(struct mangle_values const * values);
66
#endif /* OP_MANGLE_H */